PclLoaderParameters.hpp
Go to the documentation of this file.
1 /*
2  * PclLoaderParameters.hpp
3  *
4  * Created on: Nov 7, 2019
5  * Author: Edo Jelavic
6  * Institute: ETH Zurich, Robotic Systems Lab
7  */
8 
9 #pragma once
10 
11 #include <yaml-cpp/yaml.h>
12 #include <Eigen/Dense>
13 #include <memory>
14 #include <string>
15 
16 namespace grid_map {
17 
18 class GridMapPclLoader;
19 
20 namespace grid_map_pcl {
21 
22 class PointcloudProcessor;
23 
26  Eigen::Vector3d voxelSize_{0.05, 0.05, 0.05};
27  bool isDownsampleCloud_ = false;
28  };
29 
31  double clusterTolerance_ = 0.3;
32  unsigned int minNumPoints_ = 2;
33  unsigned int maxNumPoints_ = 1000000;
35  };
37  bool isRemoveOutliers_ = false;
38  int meanK_ = 10;
39  double stddevThreshold_ = 1.0;
40  };
42  Eigen::Vector3d translation_{0.0, 0.0, 0.0};
43  Eigen::Vector3d rpyIntrinsic_{0.0, 0.0, 0.0}; // intrinsic rotation (opposite from the ROS convention), order X-Y-Z
44  };
45 
47  double resolution_ = 0.1;
48  unsigned int minCloudPointsPerCell_ = 2;
49  };
50 
51  struct Parameters {
52  unsigned int numThreads_ = 4;
58  };
59 
62 
63  public:
64  PclLoaderParameters() = default;
65  ~PclLoaderParameters() = default;
66 
67  private:
73  bool loadParameters(const std::string& filename);
74 
79  void handleYamlNode(const YAML::Node& yamlNode);
80 
86  const Parameters& get() const;
87 
88  // Parameters for the GridMapPclLoader class.
90 };
91 
92 } /* namespace grid_map_pcl*/
93 
94 } /* namespace grid_map */
bool loadParameters(const std::string &filename)
void handleYamlNode(const YAML::Node &yamlNode)


grid_map_pcl
Author(s): Dominic Jud , Edo Jelavic
autogenerated on Tue Jun 1 2021 02:13:43