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

Two nodes on a distant system - do messages travel network?

asked 2014-03-29 03:42:24 -0600

Hendrik Wiese gravatar image

Hi folks,

just a short question regarding the communication between nodes. Assuming that there are two systems running ROS. System A runs the roscore service, nodes on system B connect to it via an appropriately set ROS_MASTER_URI. Furthermore there are two nodes running on system B. The first node is a publisher and the second is a subscriber of the same topic.

Question is now: do messages between these nodes on system B travel through system A to reach their destination (the respective other node on system B) or is ROS intelligent enough to determine when nodes run on the same system and let them talk to each other sort of in private?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-03-29 06:19:32 -0600

This is answered on the ROS Master wikipage:

"The ROS Master provides naming and registration services to the rest of the nodes in the ROS system. It tracks publishers and subscribers to topics as well as services. The role of the Master is to enable individual ROS nodes to locate one another. Once these nodes have located each other they communicate with each other peer-to-peer."

Thus, nodes will use the master to find each other, but actual message transfer is peer-to-peer (i.e. directly between two nodes).

edit flag offensive delete link more

Comments

Aaaah, I see. Wasn't able to find that by myself... somehow... well, thanks a lot, friend!

Hendrik Wiese gravatar image Hendrik Wiese  ( 2014-03-29 06:43:50 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-29 03:42:24 -0600

Seen: 198 times

Last updated: Mar 29 '14