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++
Fetch robot, joint_state topic sometimes contains all joints, sometimes doesn't
"Are your messages built?" error from echoing that message (Groovy)
Can't get sonar data with rostopic echo
How to analyse the control and flow of data in a ROS node ?