FilterEdgesPlanes.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * A repertory of multi primitive-to-primitive (MP2P) ICP algorithms in C++
3  * Copyright (C) 2018-2021 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
13 #pragma once
14 
15 #include <mp2p_icp/metricmap.h>
18 #include <mrpt/maps/CPointsMap.h>
19 
20 namespace mp2p_icp_filters
21 {
31 {
32  DEFINE_MRPT_OBJECT(FilterEdgesPlanes, mp2p_icp_filters)
33  public:
35 
36  // See docs in base class.
37  void initialize(const mrpt::containers::yaml& c) override;
38 
39  // See docs in FilterBase
40  void filter(mp2p_icp::metric_map_t& inOut) const override;
41 
42  struct Parameters
43  {
44  void load_from_yaml(const mrpt::containers::yaml& c);
45 
48 
49  unsigned int full_pointcloud_decimation = 20;
50 
52  double voxel_filter_resolution = .5; // [m]
53 
54  unsigned int voxel_filter_decimation = 1;
55  float voxel_filter_max_e2_e0 = 30.f;
56  float voxel_filter_max_e1_e0 = 30.f;
57  float voxel_filter_min_e2_e0 = 100.f;
58  float voxel_filter_min_e1_e0 = 100.f;
59  float voxel_filter_min_e1 = .0f;
60 
61  float init_extension_min_x = -10.0f;
62  float init_extension_min_y = -10.0f;
63  float init_extension_min_z = -10.0f;
64  float init_extension_max_x = 10.0f;
65  float init_extension_max_y = 10.0f;
66  float init_extension_max_z = 10.0f;
67  };
68 
71 
72  private:
74 };
75 
78 } // namespace mp2p_icp_filters
Generic container of pointcloud(s), extracted features and other maps.
Definition: metricmap.h:47
Base virtual class for point cloud filters.
::std::string string
Definition: gtest.h:1979
void load_from_yaml(const mrpt::containers::yaml &c)
Generic representation of pointcloud(s) and/or extracted features.
static constexpr const char * PT_LAYER_RAW
Definition: metricmap.h:56
void filter(mp2p_icp::metric_map_t &inOut) const override
void initialize(const mrpt::containers::yaml &c) override
Makes an index of a point cloud using a voxel grid.


mrpt_local_obstacles
Author(s): Jose-Luis Blanco-Claraco
autogenerated on Thu Jun 1 2023 03:05:10