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

How to flush out subscribed messages??

asked 2013-08-07 06:38:29 -0600

updated 2014-01-28 17:17:35 -0600

ngrennan gravatar image

Is it possible to remove messages stored in subscriber queue. For example if I start a new iteration I would want to remove all the message stored in queue which are from previous iteration. Is it possible to do this using any message filters like cache or time sequencer??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-27 11:45:03 -0600

tfoote gravatar image

If you want to empty the queue you can simply have your callback short circuit and not do anything. If you want to do more advanced queuing it is recommended to build your own queue internally so that you have full control.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-07 06:38:29 -0600

Seen: 1,015 times

Last updated: Jan 27 '14