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

How to detect subscriber's queue is full (and messages are thrown away)

asked 2016-09-20 03:55:57 -0500

LWisteria gravatar image

updated 2016-09-22 10:30:04 -0500

sloretz gravatar image

I'm a newbie ros user.

According to tutorials, messages may disappear if the subscriber's queue is full.

I need to know if the message is lost. Is it possible?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-22 10:29:45 -0500

sloretz gravatar image

I see you linked to a roscpp tutorial.

If you want to see if a message is being dropped, you can set the subscribing node's logger level to DEBUG and look for the message "Incoming queue was full for topic"

I don't see a way to check that programmatically.

edit flag offensive delete link more


or you can add a piece of code in the callback function : to check whether the queue is full and print something.But that's just a double work.

alienmon gravatar image alienmon  ( 2016-09-22 20:42:52 -0500 )edit

Question Tools



Asked: 2016-09-20 03:52:14 -0500

Seen: 943 times

Last updated: Sep 22 '16