BeoSubSensor< T > Class Template Reference

Definition and access functions for a BeoSub sensor. More...

#include <BeoSub/BeoSubSensor.H>

Collaboration diagram for BeoSubSensor< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BeoSubSensor (const uint qlen=6, const double decay=1.0)
 Constructor.
 ~BeoSubSensor ()
 Destructor.
void newMeasurement (const T &val)
 Receive a new measurement value.
getValue () const
 Get current filtered value.
void reset ()
 Clear all past measurements.
bool check () const
 Check whether received values are well behaved.

Detailed Description

template<class T>
class BeoSubSensor< T >

Definition and access functions for a BeoSub sensor.

This class encapsulates a basic BeoSub sensor. Sensed data consists of streams of T (the template argument) values. Measurements received (e.g., through BeoChip events) are passed to the BeoSubSensor via the newMeasurement() function. Current filtered value is available via the getValue() function. The class is thread-safe.

Definition at line 53 of file BeoSubSensor.H.


Constructor & Destructor Documentation

template<class T >
BeoSubSensor< T >::BeoSubSensor ( const uint  qlen = 6,
const double  decay = 1.0 
) [inline]

Constructor.

Definition at line 45 of file BeoSubSensor.C.

template<class T >
BeoSubSensor< T >::~BeoSubSensor (  )  [inline]

Destructor.

Definition at line 53 of file BeoSubSensor.C.


Member Function Documentation

template<class T >
bool BeoSubSensor< T >::check (  )  const [inline]

Check whether received values are well behaved.

Definition at line 100 of file BeoSubSensor.C.

template<class T >
T BeoSubSensor< T >::getValue (  )  const [inline]

Get current filtered value.

Definition at line 71 of file BeoSubSensor.C.

References averageBeoSubSensorValue().

Referenced by BeoSubOneBal::updateCompass(), and BeoSubOneBal::updateDepth().

template<class T>
void BeoSubSensor< T >::newMeasurement ( const T &  val  )  [inline]

Receive a new measurement value.

Definition at line 60 of file BeoSubSensor.C.

Referenced by BeoSubOneBal::updateCompass(), BeoSubOneBal::updateDepth(), and BeoSubSim::updateDepth().

template<class T >
void BeoSubSensor< T >::reset (  )  [inline]

Clear all past measurements.

Definition at line 90 of file BeoSubSensor.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:07 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3