First experiences with ROS2 and joint states.
The Articulation I am setting up is made up of several references to a USD file that has, let’s assume, a revolute joint named “RevoluteJoint”. As it is referenced multiple times, I have multiple joints with the name “RevoluteJoint”. No problem so far, as they are unique when referenced with their full prim path.
But, when I publish their states using a RosJointState Prim, the published joint names do not include the full prim path. What I receive looks like this:
header:
stamp:
sec: 139
nanosec: 113041091
frame_id: ''
name:
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
- RevoluteJoint
position:
- 0.0019
- -0.065
- -1.3935
- -6.0396
- 3.9892
- -0.608
- 4.7822
- 1.9748
- -0.9219
- -2.6714
- 0.1388
- -1.9924
- -0.0229
- 0.0477
...
It seems, I cannot override the joint names in my master USD file. How can I distinguish the different joints on the ROS side?
Thanks
Bruno