PoseMedianFilter Class Reference

The MedianFilter class provides an implementation for a median for datafields of type float, int and double. More...

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

+ Inheritance diagram for PoseMedianFilter:

Public Member Functions

VariantBasePtr calculate (const Ice::Current &c) const override
 
ParameterTypeList getSupportedTypes (const Ice::Current &c) const override
 This filter supports: Vector3, FramedDirection, FramedPosition. More...
 
 PoseMedianFilter (int windowSize=11)
 
- Public Member Functions inherited from MedianFilter
VariantBasePtr calculate (const Ice::Current &c=Ice::emptyCurrent) const override
 
ParameterTypeList getSupportedTypes (const Ice::Current &c=Ice::emptyCurrent) const override
 This filter supports: Int, Long, Float, Double. More...
 
 MedianFilter (int windowSize=11)
 
- 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

- Static Public Member Functions inherited from MedianFilter
template<typename Type >
static std::vector< Type > SortVariants (const TimeVariantBaseMap &map)
 
- Protected Attributes inherited from DatafieldFilter
TimeVariantBaseMap dataHistory
 
std::mutex historyMutex
 

Detailed Description

The MedianFilter class provides an implementation for a median for datafields of type float, int and double.

Definition at line 40 of file PoseMedianFilter.h.

Constructor & Destructor Documentation

◆ PoseMedianFilter()

PoseMedianFilter ( int  windowSize = 11)

Definition at line 12 of file PoseMedianFilter.cpp.

Member Function Documentation

◆ calculate()

VariantBasePtr calculate ( const Ice::Current &  c) const
override

Definition at line 18 of file PoseMedianFilter.cpp.

+ Here is the call graph for this function:

◆ getSupportedTypes()

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

This filter supports: Vector3, FramedDirection, FramedPosition.

Returns
List of VariantTypes

Definition at line 103 of file PoseMedianFilter.cpp.

+ Here is the call graph for this function:

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