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

ROS dies when wifi disconnects temporarily

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

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 127.0.0.1 for ROS_MASTER and ROS_HOSTNAME which solves the issue but my workstation cannot connect to the robot. I also tried using 0.0.0.0 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
0

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

robotSamir gravatar image

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

edit flag offensive delete link more
1

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

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

you could install screen https://help.ubuntu.com/community/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

Comments

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 354 times

Last updated: Aug 02 '15