ButterworthFilter Class Reference

#include <ArmarXCore/observers/filters/ButterworthFilter.h>

+ Inheritance diagram for ButterworthFilter:

Public Member Functions

 ButterworthFilter (double frequency, int sampleRate, PassType passType, double resonance)
 
VariantBasePtr calculate (const Ice::Current &=Ice::emptyCurrent) const override
 
StringFloatDictionary getProperties (const Ice::Current &) const override
 
double getRawValue () const
 
ParameterTypeList getSupportedTypes (const Ice::Current &=Ice::emptyCurrent) const override
 This filter supports: Int, Long, Float, Double.
 
VariantBasePtr getValue (const Ice::Current &=Ice::emptyCurrent) const override
 
void reset (double frequency, int sampleRate, PassType passType, double resonance)
 
void setInitialValue (double value)
 
void setProperties (const StringFloatDictionary &values, const Ice::Current &) override
 
void update (double newInput)
 
void update (Ice::Long, const VariantBasePtr &value, const Ice::Current &=Ice::emptyCurrent) override
 
- Public Member Functions inherited from DatafieldFilter
bool checkTypeSupport (VariantTypeId variantType, const Ice::Current &c=Ice::emptyCurrent) const override
 Checks whether the given type is supported.
 
 DatafieldFilter ()
 
 DatafieldFilter (DatafieldFilter const &filter)
 
const TimeVariantBaseMap & getDataHistory () const
 
armarx::StringFloatDictionary getProperties (const Ice::Current &c=Ice::emptyCurrent) const override
 
VariantBasePtr getValue (const Ice::Current &c=Ice::emptyCurrent) const override
 Retrieves the current, filtered value.
 
void setProperties (const armarx::StringFloatDictionary &newValues, const Ice::Current &c=Ice::emptyCurrent) override
 
void update (Ice::Long timestamp, const VariantBasePtr &value, const Ice::Current &c=Ice::emptyCurrent) override
 Adds the given value to the data map, erases old values if maximum size was reached, and calculates the new filtered value.
 

Protected Member Functions

 ButterworthFilter ()
 

Friends

template<class BaseClass, class VariantClass>
class ::armarx::GenericFactory
 

Additional Inherited Members

- Protected Attributes inherited from DatafieldFilter
TimeVariantBaseMap dataHistory
 
std::mutex historyMutex
 

Constructor & Destructor Documentation

◆ ButterworthFilter() [1/2]

ButterworthFilter ( )
protected

◆ ButterworthFilter() [2/2]

ButterworthFilter ( double frequency,
int sampleRate,
PassType passType,
double resonance )

Member Function Documentation

◆ calculate()

armarx::VariantBasePtr calculate ( const Ice::Current & = Ice::emptyCurrent) const
override

◆ getProperties()

StringFloatDictionary getProperties ( const Ice::Current & ) const
override

◆ getRawValue()

double getRawValue ( ) const

◆ getSupportedTypes()

armarx::ParameterTypeList getSupportedTypes ( const Ice::Current & = Ice::emptyCurrent) const
override

This filter supports: Int, Long, Float, Double.

Returns
List of VariantTypes

◆ getValue()

armarx::VariantBasePtr getValue ( const Ice::Current & = Ice::emptyCurrent) const
override

◆ reset()

void reset ( double frequency,
int sampleRate,
PassType passType,
double resonance )

◆ setInitialValue()

void setInitialValue ( double value)

◆ setProperties()

void setProperties ( const StringFloatDictionary & values,
const Ice::Current &  )
override

◆ update() [1/2]

void update ( double newInput)

◆ update() [2/2]

void update ( Ice::Long ,
const VariantBasePtr & value,
const Ice::Current & = Ice::emptyCurrent )
override

Friends And Related Symbol Documentation

◆ ::armarx::GenericFactory

template<class BaseClass, class VariantClass>
friend class ::armarx::GenericFactory
friend

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