NormalVectorsFilter.hpp
Go to the documentation of this file.
1 /*
2  * NormalVectorsFilter.hpp
3  *
4  * Created on: May 05, 2015
5  * Author: Peter Fankhauser, Martin Wermelinger
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
11 #include <filters/filter_base.h>
13 
14 #include <Eigen/Core>
15 #include <string>
16 
17 namespace grid_map {
18 
22 template<typename T>
24 {
25 
26  public:
31 
35  virtual ~NormalVectorsFilter();
36 
40  virtual bool configure();
41 
48  virtual bool update(const T& mapIn, T& mapOut);
49 
50  private:
51 
52  void computeWithArea(GridMap& map, const std::string& inputLayer, const std::string& outputLayersPrefix);
53  void computeWithRaster(GridMap& map, const std::string& inputLayer, const std::string& outputLayersPrefix);
54 
55  enum class Method {
56  Area,
57  Raster
58  };
59 
61 
64 
66  Eigen::Vector3d normalVectorPositiveAxis_;
67 
69  std::string inputLayer_;
70 
72  std::string outputLayersPrefix_;
73 };
74 
75 } /* namespace */
void computeWithRaster(GridMap &map, const std::string &inputLayer, const std::string &outputLayersPrefix)
std::string outputLayersPrefix_
Output layer name.
virtual bool update(const T &mapIn, T &mapOut)
std::string inputLayer_
Input layer name.
Eigen::Vector3d normalVectorPositiveAxis_
Normal vector positive axis.
double estimationRadius_
Radius of submap for normal vector estimation.
void computeWithArea(GridMap &map, const std::string &inputLayer, const std::string &outputLayersPrefix)


grid_map_filters
Author(s): Péter Fankhauser , Martin Wermelinger
autogenerated on Tue Jun 25 2019 20:02:22