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

Export Ros over WiFi and Ethernet

asked 2018-05-07 10:08:57 -0600

skynet gravatar image

Hello, I am running ROS 16.04 over an Ethernet network consisting of a network switch, a BBB(Master) and two Intel NUCs. My problem arrises when I add an android phone running rosjava over WiFi connected to the BeagleBone Black. On boot, a service file executes a script that starts rosmaster on the BBB and exports it over ethernet.

#! /bin/sh
. /home/astrobotics/ros_code/devel/setup.sh
#export ROS_IP=localhost
export ROS_MASTER_URI=http://10.0.1.30:11311
export ROS_IP=10.0.1.35
roslaunch autonomous_control autonomous.launch

This works fine for ethernet and fine for WiFi when I change to

export ROS_MASTER_URI=http://10.0.0.30:11311

But it's one or the other. How would I export the Master URI so both networks can use it? Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-05-07 15:39:39 -0600

duck-development gravatar image

You have to bridge both interfaces. The wifi and the Ethernet so both have excess to ethch other.

https://wiki.debian.org/BridgeNetwork...

Greet

edit flag offensive delete link more
0

answered 2018-05-07 15:07:49 -0600

Gayan Brahmanage gravatar image

Hi There, I would recommend you to refer following article.

Multi-master ROS systems

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-05-07 10:08:57 -0600

Seen: 1,046 times

Last updated: May 07 '18