Is it possible to filter rostopic echo by node?
Lets suppose that node A and B are publishing to a topic T, is it possible to use rostopic echo to show only what node B is publishing?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Lets suppose that node A and B are publishing to a topic T, is it possible to use rostopic echo to show only what node B is publishing?
No, I don't believe that is currently supported (as of Kinetic/Melodic).
rostopic echo
does support a --filter
expression:
--filter=FILTER-EXPRESSION
Python expression to filter messages that are printed.
Expression can use Python builtins as well as m (the
message) and topic (the topic name).
However I don't believe that has access to message metadata (as opposed to the message data itself) which is what you would need.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2019-10-23 09:31:20 -0500
Seen: 1,059 times
Last updated: Oct 23 '19
Same trouble here t-t