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

Revision history [back]

click to hide/show revision 1
initial version

It is not clear from your description, but I assume you are talking about a situation where multiple nodes are publishing on the same topic. If this is the case, there is no way to find who is the owner of the message, since the publishing system is "fire-and-forget"

I think you should change the design of your connection to avoid this situation, especially if you end up in an N-to-N (multiple nodes on both sides of a topic) situation. However, a workaround is to define an extra field on the message to add an ID to identify the source.

It is not clear from your description, but I assume you are talking about a situation where multiple nodes are publishing on the same topic. If this is the case, there is no way to find who is the owner of the message, since the publishing system is "fire-and-forget""fire-and-forget". (Apparently this is not true)

I think you should change the design of your connection to avoid this situation, especially if you end up in an N-to-N (multiple nodes on both sides of a topic) situation. However, a workaround is to define an extra field on the message to add an ID to identify the source.