Skip to content

Improved logging and bugfix related control-takeover reliability - #50

Merged
cpr-bar merged 6 commits into
CommonplaceRobotics:masterfrom
JuBiotech:control-debugging
Nov 12, 2026
Merged

cpr-bar merged 6 commits into
CommonplaceRobotics:masterfrom
JuBiotech:control-debugging

Conversation

@michaelosthege

@michaelosthege michaelosthege commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
  • 🐛 Logging the actual error when wait_for_kinematics_ready times out
  • 🛡️ Logging incoming STATUS messages too, but to a dedicated logger so it's easier to filter them (out).
  • 🧹 Fixed docstrings of wait_for_kinematics_ready which does not return False anymore, but only raises on failure.
  • ❓ New CRIConnector.control(auto_reset=...) option to reset errors before attempting to enable(). This helps to avoid encoder errors that happen from small movements during the enable/disable action.

@michaelosthege
michaelosthege force-pushed the control-debugging branch 3 times, most recently from e5832ca to 2e81958 Compare October 29, 2026 11:31
@michaelosthege michaelosthege changed the title Draft: Debugging of control-takeover reliability Improved logging and bugfix related control-takeover reliability Oct 30, 2026
@michaelosthege

Copy link
Copy Markdown
Contributor Author

The auto-reset helped a lot to increase reliability, but ideally there should be a more granular discrimination of error severity.

What do you think, @cpr-bar ?

@cpr-bar

cpr-bar commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

I think it is fine like this.

We just don't have enough information to do an automatic discrimination whether an automatic reset should be performed. For example, an encoder error can be caused by a reset but also by a broken or missaligned encoder.

An automatic reset will not do any harm. If the error persists it will just raise again.

@cpr-bar cpr-bar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelosthege can you please correct the formatting to pass the ruff-format pre-commit? I can't push to this PR. Thanks

@michaelosthege

Copy link
Copy Markdown
Contributor Author

@cpr-bar I rebased on latest master and fixed the pre-commit.

@cpr-bar

cpr-bar commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Thank you again for your contributions! I will merge the PR now.

@cpr-bar
cpr-bar merged commit 9841bfa into CommonplaceRobotics:master Nov 12, 2026
5 checks passed
@michaelosthege
michaelosthege deleted the control-debugging branch November 12, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants