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

if ROS master is running in another machine, does it get all topics stream?

asked 2019-11-30 01:09:12 -0600

When you have a rosmaster running in a different machine other than where you are running most of the nodes, I wonder if the stream of all topics are sent to the rosmaster machine or only to the ones is subscribed to?

Best,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2019-11-30 02:08:19 -0600

gvdhoorn gravatar image

updated 2019-11-30 02:09:28 -0600

If ROS master is running in another machine, does it get all topics stream?

No, it doesn't.

But that is also the case for a single-machine setup: the master is not involved in topic or service data exchange at all, so it never receives or sends any of that data. No matter where it is running.

As explained on wiki/Master, it only provides naming and registration services. All data exchange between nodes is peer-to-peer and does not pass through the master.

I wonder if the stream of all topics are sent to the rosmaster machine or only to the ones is subscribed to?

Nodes running on different machines will only send data to other machines if those nodes have subscribed to those topics.

If you have a 100 machines, each with a single node, but no subscriptions between them, no data will be transmitted.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-30 01:09:12 -0600

Seen: 515 times

Last updated: Nov 30 '19