The OffsetFilter class returns values relative to value from the first call of the filter. E.g. this is useful for Forces which should be nulled at a specific moment. More...

#include <RobotAPI/libraries/core/observerfilters/OffsetFilter.h>

+ Inheritance diagram for OffsetFilter:

Public Member Functions

VariantBasePtr calculate (const Ice::Current &=Ice::emptyCurrent) const override
 
ParameterTypeList getSupportedTypes (const Ice::Current &) const override
 
 OffsetFilter ()
 
void update (Ice::Long timestamp, const VariantBasePtr &value, const Ice::Current &c) 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. More...
 
 DatafieldFilter ()
 
 DatafieldFilter (DatafieldFilter const &filter)
 
const TimeVariantBaseMapgetDataHistory () 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. More...
 
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. More...
 

Additional Inherited Members

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

Detailed Description

The OffsetFilter class returns values relative to value from the first call of the filter. E.g. this is useful for Forces which should be nulled at a specific moment.

Definition at line 41 of file OffsetFilter.h.

Constructor & Destructor Documentation

◆ OffsetFilter()

Definition at line 12 of file OffsetFilter.cpp.

Member Function Documentation

◆ calculate()

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

Definition at line 19 of file OffsetFilter.cpp.

+ Here is the call graph for this function:

◆ getSupportedTypes()

ParameterTypeList getSupportedTypes ( const Ice::Current &  ) const
override

Definition at line 84 of file OffsetFilter.cpp.

◆ update()

void update ( Ice::Long  timestamp,
const VariantBasePtr value,
const Ice::Current &  c 
)
override

Definition at line 97 of file OffsetFilter.cpp.

+ Here is the call graph for this function:

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