Public Member Functions | Public Attributes | Private Member Functions
kelsey_sandbox.perception_monitor.PeriodicLogger Class Reference

Periodically logs the output of a callback function by calling it at a certain rate and gathering up the results into a list. More...

List of all members.

Public Member Functions

def __init__
 initializes the logger but doesn't start it
def get_ret_vals
 If max_calls sets to automatically terminate, return the ret vals.
def start
 begins the logger
def stop
 stops the monitor

Public Attributes

 args
 beg_time
 cb
 is_running
 max_calls
 num_calls
 rate
 ret
 thread

Private Member Functions

def _run

Detailed Description

Periodically logs the output of a callback function by calling it at a certain rate and gathering up the results into a list.

Definition at line 100 of file src/kelsey_sandbox/perception_monitor.py.


Constructor & Destructor Documentation

def kelsey_sandbox.perception_monitor.PeriodicLogger.__init__ (   self,
  callback,
  rate = 0.01,
  args = None 
)

initializes the logger but doesn't start it

Parameters:
callbackthe function to be called each time
ratethe rate in seconds at which to call the callback
argsthe function arguments to pass into the callback

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.


Member Function Documentation

Definition at line 131 of file src/kelsey_sandbox/perception_monitor.py.

If max_calls sets to automatically terminate, return the ret vals.

Definition at line 165 of file src/kelsey_sandbox/perception_monitor.py.

begins the logger

Parameters:
max_callsthe maximum number of times to call the callback

Definition at line 121 of file src/kelsey_sandbox/perception_monitor.py.

stops the monitor

Returns:
the result of the monitor

Definition at line 156 of file src/kelsey_sandbox/perception_monitor.py.


Member Data Documentation

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.

Definition at line 107 of file src/kelsey_sandbox/perception_monitor.py.


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


kelsey_sandbox
Author(s): kelsey
autogenerated on Wed Nov 27 2013 11:52:04