How to echo messages published on a particular topic by a node?
Let's say that we have 2 nodes named node_a
and node_b
. Let's assume that both the nodes are publishing on the topics - topic_1
, topic_2
, topic_3
and topic_4
. Is there a way to find out what the node_a
is publishing on the topic_1
?
Are you looking for something as simple as
rostopic echo \topic_a
or something more detailed? This will only work if your topic_a is sourced of course.I have edited the question. Does it make sense now?
I don't want to
echo
everything that is being published totopic_1
. I just want toecho
the messages being published bynode_a
ontopic_1
.