#include <ThresholdFilter.hpp>
Public Member Functions | |
virtual bool | configure () |
ThresholdFilter () | |
virtual bool | update (const T &mapIn, T &mapOut) |
virtual | ~ThresholdFilter () |
Private Attributes | |
std::string | layer_ |
Layer the threshold should be applied to. | |
double | lowerThreshold_ |
Lower Threshold. | |
double | setTo_ |
If threshold triggered set to this value. | |
double | upperThreshold_ |
Upper Threshold. | |
bool | useLowerThreshold_ |
Booleans to decide which threshold should be used. | |
bool | useUpperThreshold_ |
Threshold filter class to set values below/above a threshold to a specified value.
Definition at line 23 of file ThresholdFilter.hpp.
grid_map::ThresholdFilter< T >::ThresholdFilter | ( | ) |
Constructor
Definition at line 19 of file ThresholdFilter.cpp.
grid_map::ThresholdFilter< T >::~ThresholdFilter | ( | ) | [virtual] |
Destructor.
Definition at line 29 of file ThresholdFilter.cpp.
bool grid_map::ThresholdFilter< T >::configure | ( | ) | [virtual] |
Configures the filter from parameters on the parameter server.
Implements filters::FilterBase< T >.
Definition at line 34 of file ThresholdFilter.cpp.
bool grid_map::ThresholdFilter< T >::update | ( | const T & | mapIn, |
T & | mapOut | ||
) | [virtual] |
Uses either an upper or lower threshold. If the threshold is exceeded the cell value is set to the predefined value setTo_.
mapIn | GridMap with the different layers to apply a threshold. |
mapOut | GridMap with the threshold applied to the layers. |
Implements filters::FilterBase< T >.
Definition at line 75 of file ThresholdFilter.cpp.
std::string grid_map::ThresholdFilter< T >::layer_ [private] |
Layer the threshold should be applied to.
Definition at line 53 of file ThresholdFilter.hpp.
double grid_map::ThresholdFilter< T >::lowerThreshold_ [private] |
Lower Threshold.
Definition at line 56 of file ThresholdFilter.hpp.
double grid_map::ThresholdFilter< T >::setTo_ [private] |
If threshold triggered set to this value.
Definition at line 62 of file ThresholdFilter.hpp.
double grid_map::ThresholdFilter< T >::upperThreshold_ [private] |
Upper Threshold.
Definition at line 59 of file ThresholdFilter.hpp.
bool grid_map::ThresholdFilter< T >::useLowerThreshold_ [private] |
Booleans to decide which threshold should be used.
Definition at line 65 of file ThresholdFilter.hpp.
bool grid_map::ThresholdFilter< T >::useUpperThreshold_ [private] |
Definition at line 65 of file ThresholdFilter.hpp.