ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to integrate transmission into RobotHW

asked 2015-02-03 08:13:34 -0600

Michael Stoll gravatar image

We have migrated our robot base driver to use ros_control.

That works well, execpt for the transmissions. There are transmissions in the URDF Model:

<transmission name="wheel_left_trans">
  <joint name="wheel_left_joint">
  <actuator name="left_motor">

Is there a common practice on how to use this in the RobotHW?

The only example I know of is this tutorial. But there the transmission is not read from the URDF model.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-03 11:04:54 -0600

Adolfo Rodriguez T gravatar image

Is there a common practice on how to use this in the RobotHW?

Yes. Typically you would somehow populate the actuator interfaces when initializing your RobotHW specialization, and then use the TransmissionInterfaceLoader class to automatically populate your joint interfaces from the URDF + the actuator interfaces.

I thought there were no code examples available, but it turns out that I did write some doc back in the day. It's just not very visible. Please see the TransmissionInterfaceLoader class code API.

The above only deals with populating interfaces. You would then need to actually propagate the transmissions in the read/write methods of your RobotHW. Please refer to the main transmission_interface Doxygen page for examples.

edit flag offensive delete link more


Thanks, TransmissionInterfaceLoader is great. @All: You only need the propagation from the tranmission_interface example. The wrapping is handled by TransmissionInterfaceLoader!

Michael Stoll gravatar image Michael Stoll  ( 2015-02-04 02:30:59 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-03 08:13:34 -0600

Seen: 464 times

Last updated: Feb 03 '15