Find which node published in a topic in ros2
I have a program where multiple nodes publish to the same topic. Is there a way to know which Node write which message? Or is there a way to echo just the messages sent by a certain node?
Example: Node1, Node2 and Node3 publish to Topic. How I can just read the messages written by Node1 in Topic (without reading the ones sent by Node 2 and Node3)