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

I need to put several subscribers of different topics in one .cpp code

asked 2014-11-26 13:53:25 -0500

leobber gravatar image

I need to put several subscribers of different topics in one .cpp code, in short'm starting to Subscribe all topics that provide information relating to TurtleBot2 and also like to know the topics with information that should really relaventes Subscribe, I'm using / odom bringing x , y, theta wanted to bring the covariance matrix also if someone tell me how to do it, and using cmd_vel to bring the x, y, what other topics related to sensors can Subscribe and how.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-26 17:10:28 -0500

bvbdort gravatar image

Check available topics using

rostopic list

And use rostopic info topic_name and rostopic type topic_name commands to know details about topic which you need to write subscriber.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-26 13:53:25 -0500

Seen: 105 times

Last updated: Nov 26 '14