ros2 link node name to topic name [closed]

asked 2018-06-21 11:47:43 -0600

Sriram gravatar image

updated 2018-06-21 13:44:22 -0600

Hi,

I've a question on how to get some data from the ros2 graph.

For ex: with ros1,

if we run the command rosnode info /node_name, if gives us information about pubs, subs within the node.

But, with ros2 this does'nt seem to work. This is primarily because within ros2graph ,it does not create a map of node_name to topic_name.

And, it seems tricky as well to get this mapping. If we use the node_graph API's like get_node_names & get_topic_names_and_types.

When working with a global scope how do we get the mappings?

Please advice.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by mgruhler
close date 2018-06-22 03:31:58.896917

Comments

duplicate of #q294437

mgruhler gravatar image mgruhler  ( 2018-06-22 03:32:16 -0600 )edit