Ask Your Question
1

getting details of topics in a program(node)

asked 2014-03-16 03:50:49 -0500

Hamid Didari gravatar image

updated 2014-03-16 07:17:36 -0500

Hi guys

I want to get details about topics in a program(node) such as how many topic exists in ros or the list of topic's name or how many node that subscribes from a special topic..

I want to get these details in cpp file not in terminal ..

is there any way to get this details?

any suggestion about this?

Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-03-16 05:56:20 -0500

rosnode info [node name] has a lot of that info: http://wiki.ros.org/rosnode .

edit flag offensive delete link more

Comments

I want to get these details in cpp not in terminal ...

Hamid Didari gravatar image Hamid Didari  ( 2014-03-16 07:14:46 -0500 )edit
0

answered 2014-03-16 07:02:04 -0500

Wolf gravatar image

i think you are looking for rostopic list (gets you all topics) or rostopic find std_msg/String (gets you all topics of a specific message type, here std_msgs/String). rostopic info get you information on a specfic topic. See http://wiki.ros.org/rostopic

edit flag offensive delete link more

Comments

I want to get these details in cpp not in terminal ...

Hamid Didari gravatar image Hamid Didari  ( 2014-03-16 07:14:48 -0500 )edit

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

Stats

Asked: 2014-03-16 03:50:49 -0500

Seen: 274 times

Last updated: Mar 16 '14