If your robot loses connection to the base station it will navigate to a configurable home.
- Install:
$ sudo apt-get install ros-kinetic-lost-comms-recovery
- Launch node:
$ roslaunch lost_comms_recovery lost_comms_recovery.launch
- Normal output:
$ roslaunch lost_comms_recovery lost_comms_recovery.launch ips_to_monitor:=192.168.190.136
[INFO] Monitoring base station on IP(s): 192.168.190.136.
[INFO] Connected to base station.
[INFO] Connected to base station.
...
[ERROR] No connection to base station.
[INFO] Connected to move_base.
[INFO] Executing move_base goal to position (x,y) 0.0, 0.0.
[INFO] Inital goal status: PENDING
[INFO] This goal has been accepted by the simple action server
[INFO] Final goal status: SUCCEEDED
[INFO] Goal reached.
Full documentation on wiki: http://wiki.ros.org/lost_comms_recovery