Can you check how many messages are in a subscriber's Queue?
For testing purposes, I want to plot the number of messages waiting in a subscriber's topic Queue over time.
Having too many old messages is undesirable since up to date information is critical. However, I don't want to arbitrarily shorten the Queue since one size will definitely not fit all in my situation.
So, is there a simple way I can get the current number of messages in the Queue? I can't seem to find anything in the Subscriber documentation http://www.ros.org/doc/api/roscpp/html/classros_1_1Subscriber.html.
Thank you.