[ros-users] [Discourse.ros.org] [Next Generation ROS] Update time for get_node_names

karsten ros.discourse at gmail.com
Mon Aug 7 17:34:21 UTC 2017

Sorry for coming back on this so late. 

The `getParticipantNames` [function](https://github.com/ros2/rmw_fastrtps/blob/master/rmw_fastrtps_cpp/src/rmw_node_names.cpp#L56) has been added to FastRTPS to get going with exposing node names. It's clearly a one-directional implementation, saying that every time you ask for available nodes, you basically ask FastRTPS for available participants. I am not really familiar about the underlying specifics within FastRTPS to give qualified feedback on why it takes that long. There is no API currently for the rosgraph, notifying about node changes, only about topics (AFAIK).

I believe that FastRTPS has support for callbacks on node changes, but I have to look into it. For the time being, I would invite you to open a github issue for that particular scenario of yours, maybe posting your code snippet and we can pick it up from there.

[Visit Topic](https://discourse.ros.org/t/update-time-for-get-node-names/2333/4) or reply to this email to respond.

More information about the ros-users mailing list