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

Revision history [back]

As you said, the topic is the channel where nodes are subscribed for to read messages or where the nodes publish those messages. The topic can be seen as a tag of certain type of data, and the message is the data itself, previously defined. Also, another reason for the difference between topic and message is that could be two topics that share the same type of messages.

For Example:

Topics: Front_Laser_data, Rear_Laser_data Message: int readings[]

As you said, the topic is the channel where nodes are subscribed for to read messages or where the nodes publish those messages. The topic can be seen as a tag of certain type of data, and the message is the data itself, previously defined. Also, another reason for the difference between topic and message is that could be you can use two topics that share the same type of messages.

For Example:

Topics: Front_Laser_data, Rear_Laser_data Message: int readings[]

As you said, the topic is the channel where nodes are subscribed for to read messages or where the nodes publish those messages. The topic can be seen as a tag of certain type of data, and the message is the data itself, previously defined. Also, another reason for the difference between topic and message is that you can use two topics that share the same type of messages.

For Example:

Topics: Front_Laser_data, Rear_Laser_data Rear_Laser_data

Message: int readings[]