.. _program_listing_file__tmp_ws_src_grid_map_grid_map_filters_include_grid_map_filters_ThresholdFilter.hpp: Program Listing for File ThresholdFilter.hpp ============================================ |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/grid_map/grid_map_filters/include/grid_map_filters/ThresholdFilter.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * ThresholdFilter.hpp * * Created on: Mar 16, 2015 * Author: Martin Wermelinger, Peter Fankhauser * Institute: ETH Zurich, ANYbotics */ #ifndef GRID_MAP_FILTERS__THRESHOLDFILTER_HPP_ #define GRID_MAP_FILTERS__THRESHOLDFILTER_HPP_ #include #include #include namespace grid_map { template class ThresholdFilter : public filters::FilterBase { public: ThresholdFilter(); virtual ~ThresholdFilter(); bool configure() override; bool update(const T & mapIn, T & mapOut) override; private: std::string layer_; double lowerThreshold_; double upperThreshold_; double setTo_; bool useLowerThreshold_, useUpperThreshold_; }; } // namespace grid_map #endif // GRID_MAP_FILTERS__THRESHOLDFILTER_HPP_