ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

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?

asked 2022-06-19 20:57:43 -0500

fury.nerd gravatar image

updated 2023-02-20 02:26:55 -0500

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

edit retag flag offensive close merge delete

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

fury.nerd gravatar image fury.nerd  ( 2022-06-19 21:10:47 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-02-20 02:48:20 -0500

ljaniec gravatar image

This one is interesting and potentially useful:

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

edit flag offensive delete link more

Comments

thanks very much, quite helpful links

fury.nerd gravatar image fury.nerd  ( 2023-02-20 02:59:20 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-06-19 03:54:50 -0500

Seen: 92 times

Last updated: Feb 20 '23