|
The RTFilterBase class is the base class for all real time capable filters. More...
#include <ArmarXCore/observers/filters/rtfilters/RTFilterBase.h>
Public Member Functions | |
virtual double | calculate ()=0 |
virtual RTFilterBasePtr | clone () const =0 |
double | getCurrentValue () const |
virtual void | reset () |
RTFilterBase (const RTFilterBase &other)=default | |
RTFilterBase (size_t historySize) | |
double | update (double deltaSec, double newValue) |
virtual double | update (IceUtil::Time const ×tamp, double newValue) |
virtual | ~RTFilterBase () |
Protected Attributes | |
double | currentValue = 0.0 |
boost::circular_buffer< std::pair< IceUtil::Time, double > > | dataHistory |
The RTFilterBase class is the base class for all real time capable filters.
Real Time capable means here that no heap memory allocation is done and no mutexes are locked during the update() function. Also the runtime must be the same during each call (e.g. no random searches).
Definition at line 40 of file RTFilterBase.h.
RTFilterBase | ( | size_t | historySize | ) |
Definition at line 29 of file RTFilterBase.cpp.
|
default |
|
inlinevirtual |
Definition at line 45 of file RTFilterBase.h.
|
pure virtual |
Implemented in MedianFilter, TimeWindowAverageFilter, ButterworthFilter, GaussianFilter, and AverageFilter.
|
pure virtual |
Implemented in TimeWindowAverageFilter, ButterworthFilter, MedianFilter, GaussianFilter, and AverageFilter.
double getCurrentValue | ( | ) | const |
Definition at line 47 of file RTFilterBase.cpp.
|
virtual |
Definition at line 34 of file RTFilterBase.cpp.
double update | ( | double | deltaSec, |
double | newValue | ||
) |
|
virtual |
Reimplemented in ButterworthFilter.
Definition at line 40 of file RTFilterBase.cpp.
|
protected |
Definition at line 55 of file RTFilterBase.h.
|
protected |
Definition at line 54 of file RTFilterBase.h.