Robotics StackExchange | Archived questions

how to check if a ros2 node is local(after get node list by `ros2 node list`)? or get IP info of a remote node?

hi, is there a way to check if a ros node is local? i.e. when i get a node list after ros2 node list, how do i know this node is local or remote?

or even more details, e.g. get the ip info of a remote node? like which ip is the node located at (running on which server)?

i have found ROS_LOCALHOST_ONLY is a relevant env variable, but looks like it can not help to solve the above question.

thx for any advice

Asked by fury.nerd on 2022-06-19 03:54:50 UTC

Comments

the suitation here is i got a group of target machines in local-network, different nodes are (dynamicly) deployed on different machines by different developers, these nodes work togather in collaboration. As a admin, i need to investage the potential conflict, so it is quite helpful if i could figure out which node is deployed on which machine(or IP). thx

Asked by fury.nerd on 2022-06-19 21:10:47 UTC

Answers

This one is interesting and potentially useful:

You could check it through the configuration YAML file (eProsima):

Asked by ljaniec on 2023-02-20 03:48:20 UTC

Comments

thanks very much, quite helpful links

Asked by fury.nerd on 2023-02-20 03:59:20 UTC