ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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

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

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


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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 154 times

Last updated: Mar 29 '14