ros2 node name to topic name mapping

asked 2018-06-18 12:57:29 -0600

Sriram gravatar image

updated 2018-06-21 13:50:02 -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 close merge delete

Comments

Short answer is there's no way to do that right now. Longer answer to follow is how we might do that in the future.

William gravatar image William  ( 2018-06-22 12:32:01 -0600 )edit

@William Thank you. Waiting for the longer answer.

Sriram gravatar image Sriram  ( 2018-06-22 13:04:13 -0600 )edit

@William Just reminding you for the comment. Could you help on this?

Sriram gravatar image Sriram  ( 2018-07-02 11:23:09 -0600 )edit