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

Dynamixel & joint_state_publisher

asked 2013-10-15 06:22:04 -0600

autonomy gravatar image

I am trying to set up a pan/tilt base with two Dynamixel servos and I would like to use joint_state_publisher with robot_state_publisher to publish the transforms (and maybe even control the joints via joint_state_publisher's GUI).

The problem is that the dynamixel_controllers stack publishes dynamixel_msgs/JointState messages while joint_state_publisher expects sensor_msgs/JointState messages, and the two are incompatible.

My Google-Fu failed to turn up any existing conversion between dynamixel_msgs and sensor_msgs JointState messages - but I have seen out there Dynamixel-based robots visualized in Rviz. Are my only options to publish my own transforms with the Dynamixels or write my own conversion between the two different JointState messages? Maybe someone can suggest an existing open-source solution?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-10-22 03:43:24 -0600

autonomy gravatar image

After a lot of digging, I was lead to a solution by reading this tutorial:

What's needed is the file, a copy can be found here. This file replaces joint_state_publisher and will connect your dynamixels to robot_state_publisher when configured correctly.

For that to happen, you will need a correct URDF model of your joints. More importantly, you will need to set the dynamixels param (read by the dynamixel_joint_publisher script) to a list of your joint names like this:

<rosparam param="dynamixels">[joint1 joint2 joint3]</rosparam>

These joint names have to correspond to what's in the URDF file and your dynamixel launch files. Then, you will have to make sure the namespaces are compatible. You won't need to publish static transforms if your URDF model correctly specifies the links and the joints.

edit flag offensive delete link more


@autonomy I have difficulty to move my two servos see here I checked the visual tracking part, but I failed, I am using arbotix so nothing to do with right ??

Abdu gravatar image Abdu  ( 2017-10-21 09:27:42 -0600 )edit

answered 2014-04-22 12:39:34 -0600

Slavik gravatar image

I have just completed my humanoid with URDF model binding.

link text

I hope it will help you kick start.

edit flag offensive delete link more

answered 2013-10-15 07:11:30 -0600

dornhege gravatar image

The second version would be best: Determine a sensor_msgs/JointState from the dynamixel message, publish that and use robot_state_publisher to come up with transforms given the urdf.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-10-15 06:22:04 -0600

Seen: 2,077 times

Last updated: Apr 22 '14