How to comunicate two ROS machine

In this day, I have try to communicate two ROS, ARM linux board on robot with ROS on pc.

The official guide on website “Running ROS across multiple machines” doesn’t explain correct order to configure ROS systems, in fact if we send a packet using rostopic this doesn’t work.

On answer ROS I have found the correct order to configure ROS.

For ROS master:

$ ssh master
$ roscore
$ export ROS_MASTER_URI=http://MASTER_IP:11311
$ rosrun ...

For ROS slave:

$ ssh slave
$ export ROS_MASTER_URI=http://MASTER_IP:11311
$ export ROS_IP=SLAVE_IP
$ rosrun ...

Other information about Environment Variables.

Copyright © 2013. All Rights Reserved.

Leave a Reply