Skip to content

Detect the leaf link from URDF - #28

Merged
kou merged 1 commit into
enactic:mainfrom
kou:detect-leaf-link
Nov 16, 2026
Merged

kou merged 1 commit into
enactic:mainfrom
kou:detect-leaf-link

Conversation

@kou

@kou kou commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

gravity_comp, unilateral_control and bilateral_control used openarm_{left,right}_hand as the leaf link of the arm. OpenArm 2.0 URDF doesn't have it. The corresponding link in OpenArm 2.0 URDF is openarm_{left,right}_ee_base_link. So they couldn't be used with OpenArm 2.0 URDF.

Dynamics accepts candidates of the end link now and uses the first one that exists in the URDF:

  1. openarm_{left,right}_ee_base_link (OpenArm 2.0)
  2. openarm_{left,right}_hand (OpenArm 1.0)

It's detected for each URDF. So users don't need to specify the OpenArm version of leader and follower for this.

The selected link is shown as [Dynamics] End link: ... instead of
Leaf link : .... If no candidate exists, Dynamics::Init() fails
with Failed to find end link: ${URDF}: ${CANDIDATES}.

`gravity_comp`, `unilateral_control` and `bilateral_control` used
`openarm_{left,right}_hand` as the leaf link of the arm. OpenArm 2.0
URDF doesn't have it. The corresponding link in OpenArm 2.0 URDF is
`openarm_{left,right}_ee_base_link`. So they couldn't be used with
OpenArm 2.0 URDF.

`Dynamics` accepts candidates of the end link now and uses the first
one that exists in the URDF:

1. `openarm_{left,right}_ee_base_link` (OpenArm 2.0)
2. `openarm_{left,right}_hand` (OpenArm 1.0)

It's detected for each URDF. So users don't need to specify the
OpenArm version of leader and follower for this.

The selected link is shown as `[Dynamics] End link: ...` instead of
`Leaf link : ...`. If no candidate exists, `Dynamics::Init()` fails
with `Failed to find end link: ${URDF}: ${CANDIDATES}`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kou
kou merged commit 6a71d33 into enactic:main Nov 16, 2026
2 checks passed
@kou
kou deleted the detect-leaf-link branch November 16, 2026 08:23
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