ros2 node name to topic name mapping
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.
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 Thank you. Waiting for the longer answer.
@William Just reminding you for the comment. Could you help on this?