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

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

Comments

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
2

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:

  --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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 1,212 times

Last updated: Oct 23 '19