fkie / multimaster_fkie

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

Running 2 Masters with ROS_MASTER_URI of localhost #93

Closed Gil401 closed 5 years ago

Gil401 commented 5 years ago

Hi Guys,

So I am trying to have 2 masters on 2 different machines (one master on every device) so that once I have a connectivity failure / loss on a device, the master will keep running with it's local nodes (without communicating with the other master). I was thinking to achieve this by setting the ROS_MASTER_URI on both devices to localhost, however, it seems that it does not work.

Is there a way to achieve it? Thanks,

atiderko commented 5 years ago

Hi Gil401,

you have to set the ROS_MASTER_URI to the public hostname of your machine. localhost in ROS_MASTER_URI is only for one host systems, see http://wiki.ros.org/ROS/EnvironmentVariables#ROS_MASTER_URI

regards

Gil401 commented 5 years ago

Hi @atiderko, thank you for the response.

Is there a way to workaround it or a different way to achieve what I am looking for?

atiderko commented 5 years ago

can you use external WiFi receiver, which is connected to your machine by Ethernet? So that your network adapter does not shutdown, restart or removes the IP on connection failure. We use external receiver. Perhaps it works with a network bridge, but we did not tested it.

atiderko commented 5 years ago

I hope you found a solution. If you have further questions about this topic, you can reopen this issue!

nikv96 commented 5 years ago

Hi @atiderko, do you have any suggestions for external WiFi receivers that you've tested? I am facing the same trouble and can't seem to find a work around.

atiderko commented 5 years ago

Hi @nikv96, we use Ubiquiti Bullet for WiFi as one cheap solution. Other solutions we tested are more expensive. But we are still searching for a good mesh solution for WiFi!