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

Combining JointState messages from several topics

asked 2012-04-16 14:10:55 -0500

aecins gravatar image

updated 2012-04-17 12:00:44 -0500

Hello everyone,

I am using ptu46 driver. It publishes pan and tilt joints to the /ptu/state topic using sensor_msgs/JointState. There are other nodes in my system that publish joint states to /joint_states topic. I want robot_state_publisher to listen to both /joint_states and /ptu/state topics and publish a transform tree. The reason I don't want the PTU driver to publish to /joint_states directly is that there is an action server node that listens to /ptu/state and allows controlling the PTU. Is there a way to get around this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-04-17 11:59:16 -0500

aecins gravatar image

updated 2012-04-17 12:01:20 -0500

Ok, I have found a solution. You can aggregate JointState messages from several topics into a single /joint_states topic using the source list parameter of joint_state_publisher. You have to make sure that your urdf model has the joint names corresponding to those published in your JointState sources.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-04-16 14:10:55 -0500

Seen: 2,262 times

Last updated: Apr 17 '12