Gazebo | Ignition | Community
Ask Your Question
0

get all topic names in C++ API

asked 2018-10-31 09:45:28 -0600

Gaurav gravatar image

updated 2018-10-31 09:53:34 -0600

I am able to get advertised topics with std::list<std::string> topics; topics = gazebo::transport::getAdvertisedTopics(""); How to get all topics which are present but not advertised/published ( like ~\unit_box\link\wrench , etc. ) is C++ API ? These topics are visible with gz topic -l but how to access in C++ API

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2018-10-31 12:08:44 -0600

nkoenig gravatar image

Here is the code behind gz topic -l: https://bitbucket.org/osrf/gazebo/src...

Is that what you are looking for?

edit flag offensive delete link more

Comments

Yes. It works. Thanks.

Gaurav gravatar imageGaurav ( 2018-10-31 23:17:52 -0600 )edit

Answer is still valid, but the link is dead. Use https://github.com/arpg/Gazebo/blob/m...

Basti gravatar imageBasti ( 2021-11-15 03:16:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-31 09:45:28 -0600

Seen: 311 times

Last updated: Oct 31 '18