fkie / multimaster_fkie

ROS stack with FKIE packages for multi-robot (discovering, synchronizing and management GUI)
BSD 3-Clause "New" or "Revised" License
267 stars 107 forks source link

Using IP address instead of hostname to sync masters #183

Closed mariocorsanici closed 1 year ago

mariocorsanici commented 1 year ago

Hello,

I am trying to run multimaster in a docker container and I want to automate the sync procedure between the masters without modifying the /etc/hosts file, since it's a system file. Is it possible to use the IP address instead of the hostname to communicate with the masters?

atiderko commented 1 year ago

Hi, you have to set the ROS_IP environment variable before starting the roscore and other ROS nodes. This should be enough.

mariocorsanici commented 1 year ago

Thank you so much, it worked.