Gazebo | Ignition | Community
Ask Your Question

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

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

nkoenig gravatar image

Here is the code behind gz topic -l:

Is that what you are looking for?

edit flag offensive delete link more


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

Basti gravatar imageBasti ( 2021-11-15 03:16:52 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 220 times

Last updated: Oct 31 '18