show topic list without active node

asked 2017-03-19 20:45:45 -0600

apanda gravatar image

I mean before I run the ros node, I want know the topic list and services list of the node, how could I do with this case? Thanks

edit retag flag offensive close merge delete

Comments

The node could subscribe to any topic (e.g. reading a topic name from a parameter or creating a publisher for a time-dependent name) so I'd say it is impossible to solve your task.

NEngelhard gravatar image NEngelhard  ( 2017-03-20 02:42:26 -0600 )edit

@NEngelhard, so how did rqt_publisher work, why it could list all topics before the node running?

apanda gravatar image apanda  ( 2017-03-21 03:19:18 -0600 )edit

I do not think that it can do it. Could describe your observations?

NEngelhard gravatar image NEngelhard  ( 2017-03-21 06:03:53 -0600 )edit
1

@NEngelhard my mistake, the rqt_publisher could show the topics because it keep the caches list, because i opened the node before. althought the node is not running, rqt_publisher could show some topics which will not in "rostopic list". Thanks.

apanda gravatar image apanda  ( 2017-03-22 00:46:41 -0600 )edit