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

Clarity on ROS Master

asked 2012-04-25 04:27:21 -0600

kmaroney gravatar image

I have been intrigued by an aspect of the ROS Master that is not clear to me..

From ros.org

  "The ROS Master provides naming and registration servicesto 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."

There is also a great picture here:

image description

My Question is:

I understand the ROS Master to be a very lightweight tool for the naming and coordination between ROS Nodes / Topics / Services etc.. The pictures and descriptions seem to entail that when information is given to a viewer or subscriber that the connection is there on only a peer-to-peer connection, where does the ROS Master fit into the peer-to-peer connection in order to know if the connection persists or even connected in the first place?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-25 08:46:06 -0600

kwc gravatar image

The ROS Master has no knowledge of actual connections between nodes. It is akin to DNS, which has no idea of what hosts are connected, but merely enables hosts to find each other.

edit flag offensive delete link more

Comments

So simply by querying the ros master for a specific topic, the ros master assumes connection for the duration of a node? This does not seems like the most intelligent way to me. I can ask you where the grocery store is but is it fair for you to assume I went there, or am still there?

kmaroney gravatar image kmaroney  ( 2012-04-25 10:02:38 -0600 )edit

Does a node notify the master when it goes offline also? How does 'rosnode list' work if the ros master is not continuously polling the nodes for activity / connections?

kmaroney gravatar image kmaroney  ( 2012-04-25 10:07:55 -0600 )edit
1

There are some updates when shutting down etc. Also nodes will notify the master of unsubscribing and unadvertizing. But sometimes state does get stale on the master, such as if a node crashes hard.

tfoote gravatar image tfoote  ( 2012-05-27 06:47:59 -0600 )edit

Question Tools

Stats

Asked: 2012-04-25 04:27:21 -0600

Seen: 522 times

Last updated: Apr 25 '12