0
$\begingroup$

Rosanswers logo

Hi everyone,

is there any way to do something like "rostopic list" or "rostopic find <msg_type>" NOT in a command line but in a C++ code and get the corresponding topics?

Thank you in advance


Originally posted by nemo on ROS Answers with karma: 13 on 2013-01-24

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Yes, look at the Master API.

getPublishedTopics or getSystemState should do what you want.


Originally posted by dornhege with karma: 31395 on 2013-01-24

This answer was ACCEPTED on the original site

Post score: 4


Original comments

Comment by silgon on 2014-01-13:
do you have an c++ and/or python example for the command getPublishedTopics??????????

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.