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

Is it possible to filter rostopic echo by node?

asked 2019-10-23 09:31:20 -0500

rezenders gravatar image

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?

edit retag flag offensive close merge delete


Same trouble here t-t

matosinho gravatar image matosinho  ( 2019-10-23 09:34:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-23 09:46:05 -0500

gvdhoorn gravatar image

updated 2019-10-23 09:51:12 -0500

No, I don't believe that is currently supported (as of Kinetic/Melodic).

rostopic echo does support a --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.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-10-23 09:31:20 -0500

Seen: 1,124 times

Last updated: Oct 23 '19