ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure you understand the concept of topics and messages quite correctly. It might help you to go through the main tutorials again, this one and this one in particular.
Messages are always broadcast on topics. To create a topic, one node needs to advertise that they will broadcast messages on that topic. Then another node subscribes to that topic and receives all messages broadcast on that topic.
2 | No.2 Revision |
I'm not sure you understand the concept of topics and messages quite correctly. It might help you to go through the main tutorials again, in particular this oneUnderstandingTopics and this oneWritingPublisherSubscriber(c++) in particular..
Messages are always broadcast on topics. To create a topic, one node needs to advertise that they will broadcast messages on that topic. Then another node subscribes to that topic and receives all messages broadcast on that topic.