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

Combining JointState messages from several topics

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

aecins gravatar image

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

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
4

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

aecins gravatar image

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

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

Stats

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

Seen: 2,412 times

Last updated: Apr 17 '12