ROS Node shuts down after WiFi connection has been lost
Several of the ROS node for some reason just exit/shut down whenever the WiFi interface loses connection to the WiFi.
So when WiFi interface is connected, the device has some IP address and also a private address:
10.0.1.10 and 172.17.0.1
Then, when the device goes to some dead zone with no WiFi connectivity and the IP address for that network disappears and only private IP address is shown (172.17.0.1) then some of the ROS nodes just shutdown.
I tried to set up the ROS_HOSTNAME to localhost and it works (ros nodes do not shutdown) but it means I won't be able to echo rostopics from that device from another machine which is required.
I am running ROS in Docker container with network mode being a host.
What could be the reason for such stange behaviour?