Robotics StackExchange | Archived questions

Can you create a custom and Queue for Topic Subscribers so that its size can be inspected?

For testing my system, it is very important for me to know how many messages have not yet been read by a Subscriber. Unfortunately, there is no public size() function for this Queue and many of the hacks I've been trying might be too costly in the end.

Is there a way I can implement my own Queue for my Subscriber (with public access to its size)?

Asked by Toletum on 2013-07-13 19:37:33 UTC

Comments

Looks you opened a same question?

Asked by 130s on 2013-07-14 17:56:05 UTC

Answers