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

network pub/sub or messaging example, or documentation?

asked 2011-03-12 07:06:26 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Is there a simple example anywhere of two nodes on separate physical hardware exchanging data (messages or pub/sub data) via network protocols? Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2011-03-12 07:31:04 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

This is transparently handled by ros. You just need to set the ROS_MASTER_URI environment variable on both machines to point to the one where you start the roscore.

edit flag offensive delete link more

Comments

Fantastic, thanks!
nzc gravatar image nzc  ( 2011-03-12 07:46:24 -0500 )edit
2

answered 2011-03-12 15:39:30 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

This tutorial walks through running a single ROS computational graph over multiple machines: http://www.ros.org/wiki/ROS/Tutorials/MultipleMachines

You may also be interested in the tutorial on advanced usage of roslaunch (which might help if you frequently bring up nodes on several machines) http://www.ros.org/wiki/ROS/Tutorials/Roslaunch%20tips%20for%20larger%20projects

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-12 07:06:26 -0500

Seen: 495 times

Last updated: Mar 13 '11