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

Add ability to restrict IK to certain dofs. #53

Merged
merged 3 commits into from
Mar 2, 2025
Merged

Add ability to restrict IK to certain dofs. #53

merged 3 commits into from
Mar 2, 2025

Conversation

kevinzakka
Copy link
Owner

No description provided.

)
if joint_id == -1:
raise exceptions.InvalidJointName(joint_name, model)
dof_ids.append(model.jnt_dofadr[joint_id])

Choose a reason for hiding this comment

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

should this be something like

dof_ids.append(model.jnt_dofadr[joint_id]:model.jnt_dofadr[joint_id] + model.jnt_dofnum[joint_id])

?

I mean, I don't know if you support ball or free joints...

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good catch, thanks @yuvaltassa!

@kevinzakka kevinzakka merged commit c2a1f49 into main Mar 2, 2025
9 checks passed
@kevinzakka kevinzakka deleted the dof-subset branch March 2, 2025 19:04
kevinzakka added a commit that referenced this pull request Mar 3, 2025
kevinzakka added a commit that referenced this pull request Mar 3, 2025
kevinzakka added a commit that referenced this pull request Mar 3, 2025
kevinzakka added a commit that referenced this pull request Mar 3, 2025
* Teleop example with G1.

* Revert "Add ability to restrict IK to certain dofs. (#53)"

This reverts commit c2a1f49.

* Add changelog entry.

* Change model in posture task.
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.

2 participants