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

ROS dies when wifi disconnects temporarily

asked 2015-07-31 12:41:15 -0600

robotSamir gravatar image

I'm using ROS across two machines: robot and workstation

When the wifi on the robot disconnects (might happen when switching AP's), the ros processes die.

I tried using for ROS_MASTER and ROS_HOSTNAME which solves the issue but my workstation cannot connect to the robot. I also tried using for ROS_MASTER and ROS_HOSTNAME but ROS doesn't like it.

I've also tried ssh port forwarding but ROS uses many ports.

The command that I run on the robot is:

roslaunch turtlebot_bringup minimal.launch and roslaunch turtlebot_navigation amcl_demo.launch map_file:=/tmp/my_map.yaml

The command that I run on the wokstation is roslaunch turtlebot_rviz_launchers view_navigation.launch

How to solve this issue ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2015-08-04 16:06:05 -0600

robotSamir gravatar image

I used openVPN to create tun0 and then used that interface for ROS.

edit flag offensive delete link more

answered 2015-08-02 11:30:21 -0600

updated 2015-08-02 11:30:38 -0600

you could install screen on the turtlebot, ssh in to it, run the launch file and then detach the screen so that if the wifi is disrupted then the processes do not die.

edit flag offensive delete link more


This is not the problem. The issue isn't that the terminal is closed; the issue is that the wlan0 interface loses its ip for a little bit. In other words, this behaviour happens even if i start the processes locally on the the robot.

robotSamir gravatar image robotSamir  ( 2015-08-03 13:51:36 -0600 )edit

Question Tools

1 follower


Asked: 2015-07-31 12:41:15 -0600

Seen: 331 times

Last updated: Aug 02 '15