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

Hi, I would like to ask this question also. I believe I have good reason to know the identity of the sender node, but maybe there is another way to resolve my problem and in that case I will be glad if someone can advise me.

My problem is: sometime, two nodes are running on the same computer or network segment and posting same topic. This is not exactly intentional, but it simply happens, just because i forget to terminate some node or some other user start his instance of some node. In this case, receiver of the topic gets mixed messages from both nodes, which causes problems due to data inconsistency. I need to detect that I receive messages from different nodes. There is no strict need to identify the source nodes, but I suppose it might help debugging a bit.

I would also add that topic namespaces do not solve my problem (consider topic names are fixed).

Thank you for any advice :)

Oh, I forgot to mention that I use ROS2.