Package rospy :: Package impl :: Module statistics :: Class SubscriberStatisticsLogger

Class SubscriberStatisticsLogger

source code

Class that monitors each subscriber.

this class basically just keeps a collection of ConnectionStatisticsLogger.

Instance Methods
 
__init__(self, subscriber) source code
 
read_parameters(self)
Fetch window parameters from parameter server
source code
 
callback(self, msg, publisher, stat_bytes)
This method is called for every message that has been received.
source code
 
shutdown(self) source code
Class Methods
 
is_enabled(cls) source code
Method Details

callback(self, msg, publisher, stat_bytes)

source code 

This method is called for every message that has been received.

Parameters:
  • msg - The message received.
  • publisher - The name of the publisher node that sent the msg
  • stat_bytes - A counter, how many bytes have been moved across this connection since it exists.

    This method just looks up the ConnectionStatisticsLogger for the specific connection between publisher and subscriber and delegates to statistics logging to that instance.