Skip to content

Exit if dynamics can't be initialized - #25

Merged
kou merged 1 commit into
enactic:mainfrom
kou:dynamics-init-failure
Nov 16, 2026
Merged

kou merged 1 commit into
enactic:mainfrom
kou:dynamics-init-failure

Conversation

@kou

@kou kou commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

gravity_comp, unilateral_control and bilateral_control ignored the result of Dynamics::Init(). If the URDF didn't have the expected chain (for example, OpenArm 2.0 URDF doesn't have
openarm_{left,right}_hand link), they enabled motors, started control with empty dynamics and then crashed without disabling the motors.

Exit before touching any motor instead. Dynamics::Init() already reports why it failed. Add the URDF path and the chain to its Failed to get KDL chain message.

`gravity_comp`, `unilateral_control` and `bilateral_control` ignored
the result of `Dynamics::Init()`. If the URDF didn't have the expected
chain (for example, OpenArm 2.0 URDF doesn't have
`openarm_{left,right}_hand` link), they enabled motors, started
control with empty dynamics and then crashed without disabling the
motors.

Exit before touching any motor instead. `Dynamics::Init()` already
reports why it failed. Add the URDF path and the chain to its `Failed
to get KDL chain` message.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kou
kou merged commit b4fd84c into enactic:main Nov 16, 2026
2 checks passed
@kou
kou deleted the dynamics-init-failure branch November 16, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant