#include <ThresholdFilter.hpp>
Public Member Functions | |
virtual bool | configure () |
ThresholdFilter () | |
virtual bool | update (const T &mapIn, T &mapOut) |
virtual | ~ThresholdFilter () |
Public Member Functions inherited from filters::FilterBase< T > | |
bool | configure (const std::string ¶m_name, ros::NodeHandle node_handle=ros::NodeHandle()) |
bool | configure (XmlRpc::XmlRpcValue &config) |
FilterBase () | |
const std::string & | getName () |
std::string | getType () |
virtual | ~FilterBase () |
Private Attributes | |
std::string | conditionLayer_ |
Layer the threshold will be evaluated. More... | |
double | lowerThreshold_ |
Lower Threshold. More... | |
std::string | outputLayer_ |
Layer the threshold should be applied to. More... | |
double | setTo_ |
If threshold triggered set to this value. More... | |
double | upperThreshold_ |
Upper Threshold. More... | |
bool | useLowerThreshold_ |
Booleans to decide which threshold should be used. More... | |
bool | useUpperThreshold_ |
Additional Inherited Members | |
Protected Member Functions inherited from filters::FilterBase< T > | |
bool | getParam (const std::string &name, std::string &value) |
bool | getParam (const std::string &name, XmlRpc::XmlRpcValue &value) |
bool | getParam (const std::string &name, double &value) |
bool | getParam (const std::string &name, std::vector< double > &value) |
bool | getParam (const std::string &name, unsigned int &value) |
bool | getParam (const std::string &name, int &value) |
bool | getParam (const std::string &name, std::vector< std::string > &value) |
bool | getParam (const std::string &name, bool &value) |
bool | loadConfiguration (XmlRpc::XmlRpcValue &config) |
Protected Attributes inherited from filters::FilterBase< T > | |
bool | configured_ |
std::string | filter_name_ |
std::string | filter_type_ |
string_map_t | params_ |
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.
|
virtual |
Destructor.
Definition at line 29 of file ThresholdFilter.cpp.
|
virtual |
Configures the filter from parameters on the parameter server.
Implements filters::FilterBase< T >.
Definition at line 34 of file ThresholdFilter.cpp.
|
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 80 of file ThresholdFilter.cpp.
|
private |
Layer the threshold will be evaluated.
Definition at line 53 of file ThresholdFilter.hpp.
|
private |
Lower Threshold.
Definition at line 59 of file ThresholdFilter.hpp.
|
private |
Layer the threshold should be applied to.
Definition at line 56 of file ThresholdFilter.hpp.
|
private |
If threshold triggered set to this value.
Definition at line 68 of file ThresholdFilter.hpp.
|
private |
Upper Threshold.
Definition at line 62 of file ThresholdFilter.hpp.
|
private |
Booleans to decide which threshold should be used.
Definition at line 65 of file ThresholdFilter.hpp.
|
private |
Definition at line 65 of file ThresholdFilter.hpp.