Adding coupled joints urdf modification#46
Merged
Nicogene merged 5 commits intomesh-iit:masterfrom Mar 19, 2026
Merged
Conversation
Nicogene
reviewed
Mar 18, 2026
Member
Nicogene
left a comment
There was a problem hiding this comment.
Thanks @GabrieleGandolfi !
Maybe we could add this new feature to the README?
I knew that mimic was a proposal:
Has been integrated in the sdf format?
cc @traversaro
Contributor
I am not sure if it was integrated in the sdf format, but I guess this PR is relate to |
Contributor
Author
Yes! it's URDF related. |
Contributor
|
Great! In that case mimic is an "official" part of the URDF standard (see https://wiki.ros.org/urdf/XML/joint), even if its actual adoptions across software that support URDF is not universal. |
Nicogene
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The purpose of this PR is to add the possibility of adding joints coupling as a modification of an original urdf file.
The implementation leverages JointMimic from urchin and, given the joint to be coupled (the follower), requires the actuated joint from which the follower depends (the leader), the coupling coefficient, and an offset.
This can be particularly useful in urdf models of hands, where joint coupling between the phalanges is common in both human and robotic hands.
Example using a config file
In this example, in the case of a human-like hand, I would like to add this coupling instance:
Translated in a config file, this becomes:
The 'mimic' tag will be added to the target joint with those information.
The result is displayed visually here:
joints-coupling-modification.mp4