ROSTopics: Only advertiser can publish? [closed]
This is a simple question about the ROS communication between nodes.
Only the node that advertises a topic can publish to it?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
This is a simple question about the ROS communication between nodes.
Only the node that advertises a topic can publish to it?
Yes and no :-)
A node needs to create a publisher, which advertises a topic, in order to send anything. So "yes": a node can't send anything on a topic if it doesn't advertise it.
However, multiple nodes can advertise the same topic and publish on it (as well as multiple subscribers can listen). So "no": not only the first node that advertises a topic is allowed to publish on a given topic name.
Asked: 2013-05-26 06:15:27 -0500
Seen: 350 times
Last updated: May 26 '13
Publisher and synchronous connection
Create Topic using an existing library C++
rostopic echo does not work with Gazebo topics and my own topics
How to analyse the control and flow of data in a ROS node ?
how to turn my robot with different controllers?
Sending start command vs starting node.
plot/print rpy from quaternion
How does ROS Topic data transfer work with large data streams?