ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 91 times

Last updated: Nov 26 '14