Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "build_serial_chain_from_urdf()" #21

Open
66Lau opened this issue Aug 8, 2024 · 0 comments
Open

Problem with "build_serial_chain_from_urdf()" #21

66Lau opened this issue Aug 8, 2024 · 0 comments

Comments

@66Lau
Copy link

66Lau commented Aug 8, 2024

Thanks for your work!

I found problem in build_serial_chain_from_urdf(). Specifically, my urdf is about humanoid, which should have for serial chain(left hand, right hand, left leg, right leg).

pelvis_frame
├──── left_hip_roll_link_frame
│ └──── left_hip_yaw_link_frame
│ └──── left_hip_pitch_link_frame
│ └──── left_knee_link_frame
│ └──── left_ankle_link_frame
├──── right_hip_roll_link_frame
│ └──── right_hip_yaw_link_frame
│ └──── right_hip_pitch_link_frame
│ └──── right_knee_link_frame
│ └──── right_ankle_link_frame
└──── torso_link_frame
├──── left_shoulder_pitch_link_frame
│ └──── left_shoulder_roll_link_frame
│ └──── left_shoulder_yaw_link_frame
│ └──── left_elbow_link_frame
└──── right_shoulder_pitch_link_frame
└──── right_shoulder_roll_link_frame
└──── right_shoulder_yaw_link_frame
└──── right_elbow_link_frame

When I trying to load serial chain such as from pelvis_frame to left_ankle_link_frame using
chain_leg = kp.build_serial_chain_from_urdf(urdf_data, "left_ankle_link", "pelvis"), . It still output the whole body tree same as above.

If I replace it with chain_leg = kp.build_serial_chain_from_urdf(urdf_data, "left_ankle_link", "left_hip_roll_link"), it works.
left_hip_roll_link_frame
└──── left_hip_yaw_link_frame
└──── left_hip_pitch_link_frame
└──── left_knee_link_frame
└──── left_ankle_link_frame

Therefore, I guess there are some problems in build_serial_chain_from_urdf function that can not handle multiple child node correctly.

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

No branches or pull requests

1 participant