ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
3

Know if you are dropping messages from a subscriber queue?

asked 2011-08-24 06:21:51 -0500

Chad Rockey gravatar image

Is there a way to know when or how many messages are being dropped from a subscriber queue?

I'm mostly interested in occasionally reporting that node foo has dropped N packets since execution began.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-08-24 07:41:58 -0500

For messages that have a header field, I would think you could check that header.seq increments by only 1 for each message received. This is assuming all the messages are coming from a single publisher--there might also be some other wrinkles that don't spring immediately to mind.

edit flag offensive delete link more

Comments

1
Actually, I was wondering if I had to use the header sequence for exactly this reason. I was avoiding putting the header in since the rest of the information isn't useful. I suppose you could always just add and set your own seq integer if you didn't want to use the full header.
Chad Rockey gravatar image Chad Rockey  ( 2011-08-24 07:44:51 -0500 )edit

Checking the header field could work if you have only one publisher, but breaks down if more than one node is publishing messages on a topic.

bkx gravatar image bkx  ( 2012-03-28 05:01:30 -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

1 follower

Stats

Asked: 2011-08-24 06:21:51 -0500

Seen: 1,552 times

Last updated: Aug 24 '11