First time here? Check out the FAQ!


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

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

asked Sep 20 '16

LWisteria gravatar image

updated Sep 22 '16

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Sep 22 '16

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.

Preview: (hide)

Comments

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  ( Sep 23 '16 )edit

Question Tools

3 followers

Stats

Asked: Sep 20 '16

Seen: 982 times

Last updated: Sep 22 '16