Ask Your Question
0

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
0

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

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  ( 2016-09-22 20:42:52 -0500 )edit

Your Answer

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

Add Answer

Question Tools

3 followers

Stats

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

Seen: 421 times

Last updated: Sep 22 '16