20 : useLowerThreshold_(false),
21 useUpperThreshold_(false),
51 "ThresholdFilter did not find parameter 'lower_threshold' or 'upper_threshold',");
57 "Set either 'lower_threshold' or 'upper_threshold'! Only one threshold can be used!");
62 ROS_ERROR(
"ThresholdFilter did not find parameter 'set_to'.");
67 ROS_ERROR(
"ThresholdFilter did not find parameter 'layer'.");
80 if (!mapOut.exists(
layer_)) {
81 ROS_ERROR(
"Check your threshold types! Type %s does not exist",
layer_.c_str());
86 auto& data = mapOut[
layer_];
88 if (!mapOut.isValid(*iterator,
layer_))
continue;
89 const size_t i = iterator.getLinearIndex();
90 float& value = data(i);
virtual bool update(const T &mapIn, T &mapOut)
std::string layer_
Layer the threshold should be applied to.
virtual ~ThresholdFilter()
double setTo_
If threshold triggered set to this value.
double upperThreshold_
Upper Threshold.
double lowerThreshold_
Lower Threshold.
bool useLowerThreshold_
Booleans to decide which threshold should be used.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)