Ask Your Question
1

Is it possible to filter rostopic echo by node?

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

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 imagematosinho ( 2019-10-23 09:34:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

gvdhoorn gravatar image

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 27 times

Last updated: Oct 23