ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have not done this myself.. It's on the list though... I think that the closest tutorial out there to a what you'd like to do (right now) is the control_model tutorial. (The animate_joint tutorial does something a little different.) You also should take a look at how the simple_arm.model is set up. You'd to add the logic to subscribe to the topic(s) that have the control information.

The essence of what you're asking has been done (in urdf not sdf) in the sr_hand package, so I would also take a look at their tutorials, and their source code.

click to hide/show revision 2
Found a much better answer than mine!

Better answer found to this question

I have not done this myself.. It's on the list though... I think that the closest tutorial out there to a what you'd like to do (right now) is the control_model tutorial. (The animate_joint tutorial does something a little different.) You also should take a look at how the simple_arm.model is set up. You'd to add the logic to subscribe to the topic(s) that have the control information.

The essence of what you're asking has been done (in urdf not sdf) in the sr_hand package, so I would also take a look at their tutorials, and their source code.