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

Dynamixel & joint_state_publisher

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

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
0

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

autonomy gravatar image

After a lot of digging, I was lead to a solution by reading this tutorial: http://www.pirobot.org/blog/0023/

What's needed is the file dynamixel_joint_state_publisher.py, 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

Comments

@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 dynamixel_joint_stat_publisher.py right ??

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

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

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
0

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

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

Stats

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

Seen: 2,094 times

Last updated: Apr 22 '14