Public Member Functions | Public Attributes | Private Member Functions
hrl_lib.rutils.RateListener Class Reference

Class for registering as a subscriber to a specified topic, where the messages are of a given type. More...

List of all members.

Public Member Functions

def __init__
def get_num_connections
def unregister

Public Attributes

 callback
 lasttime
 rate
 sub

Private Member Functions

def _process_msg

Detailed Description

Class for registering as a subscriber to a specified topic, where the messages are of a given type.

Only calls the callback at a prescribed rate.

Definition at line 445 of file rutils.py.


Constructor & Destructor Documentation

def hrl_lib.rutils.RateListener.__init__ (   self,
  rate,
  name,
  data_class,
  callback = None,
  callback_args = None,
  queue_size = None,
  buff_size = DEFAULT_BUFF_SIZE,
  tcp_nodelay = False 
)

Definition at line 489 of file rutils.py.


Member Function Documentation

def hrl_lib.rutils.RateListener._process_msg (   self,
  data,
  callback_args = None 
) [private]

Definition at line 497 of file rutils.py.

Definition at line 509 of file rutils.py.

Definition at line 506 of file rutils.py.


Member Data Documentation

Definition at line 489 of file rutils.py.

Definition at line 489 of file rutils.py.

Definition at line 489 of file rutils.py.

Definition at line 489 of file rutils.py.


The documentation for this class was generated from the following file:


hrl_lib
Author(s): Cressel Anderson, Travis Deyle, Advait Jain, Hai Nguyen, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:34:06