Replies: 4 comments
-
@sven1904 you can either create a utility function or a utility class that does that programmatically when the robot is loaded in or compare the ....Something like that as far as I remember |
Beta Was this translation helpful? Give feedback.
-
hello @rohit-kumar-j, thanks for your suggestion. yes, for the joints there is the method maybe a short example for explanation: this is why i asked if there is already a functionality (without editing the model) to find out which link index refers to which link name. |
Beta Was this translation helpful? Give feedback.
-
after having a look here, i'm wondering if the child link always has the same index as the joint to which it is appended. @erwincoumans as the author, can you confirm that this is the case? |
Beta Was this translation helpful? Give feedback.
-
@sven1904 I simply color the links with I had created constraints here: https://youtu.be/0hfkm7vv5o8 Also See: #3924 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Am I right that there's no way to programmatically find out the link index by the link name used in the URDF?
Something like
pybullet.getLinkIndex('urdf_link_name')
or vice versapybullet.getLinkName(1)
Background:
I'm trying to setup some contact constraints between links, but I don't have a clue how bullet introduces link indices since they do not always match the order in the URDF file.
For example, if you load this model, the resulting link index->name map is this:
although the URDF order is different for the last two elements and the URDFParser goes through the file link by link.
Any information would be appreciated.
PS: I know that the gazebo tags are ignored in the URDF file, it is only an example file from the web.
Beta Was this translation helpful? Give feedback.
All reactions