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

PR2 submechanism for one arm only #619

Closed
dhruvms opened this issue Apr 28, 2021 · 1 comment · Fixed by #621
Closed

PR2 submechanism for one arm only #619

dhruvms opened this issue Apr 28, 2021 · 1 comment · Fixed by #621

Comments

@dhruvms
Copy link

dhruvms commented Apr 28, 2021

The PR2 URDF that I am using has a 45-dimensional joint configuration vector. For my application, I only care about 7 of those joints in the right arm. The first of those (r_shoulder_pan_joint) joins torso_lift_link and r_shoulder_pan_link, but torso_lift_link has three other child branches that I do not care about. I have tried:

  1. Using submechanism
    • Rooting it at torso_lift_link brings the three child branches that I do not care about into the mechanism.
    • Rooting it at r_shoulder_pan_link means I lose r_shoulder_pan_joint in my mechanism.
  2. Using remove_joint!
    • For this URDF at least, any call that I have tried to make to remove_joint! gives me a "Graph is not connected." error.

Is there a way to work with a partial chain from a URDF?

@tkoolen
Copy link
Collaborator

tkoolen commented May 1, 2021

You should be able to use the remove_subtree! function I just added to do this. Let me know if there's any trouble.

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 a pull request may close this issue.

2 participants