ThresholdFilter.hpp
Go to the documentation of this file.
00001 /*
00002  * ThresholdFilter.hpp
00003  *
00004  *  Created on: Mar 16, 2015
00005  *      Author: Martin Wermelinger, Peter Fankhauser
00006  *   Institute: ETH Zurich, Autonomous Systems Lab
00007  */
00008 
00009 #pragma once
00010 
00011 #include <filters/filter_base.h>
00012 
00013 #include <string>
00014 #include <vector>
00015 
00016 namespace grid_map {
00017 
00022 template<typename T>
00023 class ThresholdFilter : public filters::FilterBase<T>
00024 {
00025 
00026  public:
00030   ThresholdFilter();
00031 
00035   virtual ~ThresholdFilter();
00036 
00040   virtual bool configure();
00041 
00048   virtual bool update(const T& mapIn, T& mapOut);
00049 
00050  private:
00051 
00053   std::string layer_;
00054 
00056   double lowerThreshold_;
00057 
00059   double upperThreshold_;
00060 
00062   double setTo_;
00063 
00065   bool useLowerThreshold_, useUpperThreshold_;
00066 };
00067 
00068 } /* namespace */


grid_map_filters
Author(s): Péter Fankhauser , Martin Wermelinger
autogenerated on Mon Oct 9 2017 03:09:30