GeneratorEdgesFromCurvature.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-2024 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
13 #pragma once
14 
16 
17 namespace mp2p_icp_filters
18 {
26 {
28 
29  public:
30  GeneratorEdgesFromCurvature() = default;
31 
35  // See derived class docs
36  void initialize(const mrpt::containers::yaml& cfg_block) override;
37 
39  {
40  void load_from_yaml(
41  const mrpt::containers::yaml& c,
43 
44  float max_cosine = 0.5f;
45  float min_point_clearance = 0.10f;
46  };
47 
49 
50  bool process(
51  const mrpt::obs::CObservation& input_raw, mp2p_icp::metric_map_t& inOut,
52  const std::optional<mrpt::poses::CPose3D>& robotPose =
53  std::nullopt) const override;
54 
57  protected:
58  // To be overrided in derived classes, if implemented:
59  bool filterRotatingScan(
60  const mrpt::obs::CObservationRotatingScan& pc,
62  const std::optional<mrpt::poses::CPose3D>& robotPose =
63  std::nullopt) const override;
64 };
65 
68 } // namespace mp2p_icp_filters
mp2p_icp_filters::GeneratorEdgesFromCurvature::filterRotatingScan
bool filterRotatingScan(const mrpt::obs::CObservationRotatingScan &pc, mp2p_icp::metric_map_t &out, const std::optional< mrpt::poses::CPose3D > &robotPose=std::nullopt) const override
Definition: GeneratorEdgesFromCurvature.cpp:100
mp2p_icp_filters::GeneratorEdgesFromCurvature::process
bool process(const mrpt::obs::CObservation &input_raw, mp2p_icp::metric_map_t &inOut, const std::optional< mrpt::poses::CPose3D > &robotPose=std::nullopt) const override
Definition: GeneratorEdgesFromCurvature.cpp:41
mp2p_icp_filters::Generator
Definition: Generator.h:71
mp2p_icp_filters::GeneratorEdgesFromCurvature::paramsEdges_
ParametersEdges paramsEdges_
Definition: GeneratorEdgesFromCurvature.h:48
mp2p_icp_filters::GeneratorEdgesFromCurvature::ParametersEdges::max_cosine
float max_cosine
Definition: GeneratorEdgesFromCurvature.h:44
mp2p_icp_filters::GeneratorEdgesFromCurvature
Definition: GeneratorEdgesFromCurvature.h:25
Generator.h
Base virtual class for point cloud filters.
kitti-batch-convert.out
string out
Definition: kitti-batch-convert.py:7
mp2p_icp_filters::GeneratorEdgesFromCurvature::ParametersEdges::load_from_yaml
void load_from_yaml(const mrpt::containers::yaml &c, GeneratorEdgesFromCurvature &parent)
Definition: GeneratorEdgesFromCurvature.cpp:26
mp2p_icp_filters::GeneratorEdgesFromCurvature::initialize
void initialize(const mrpt::containers::yaml &cfg_block) override
Definition: GeneratorEdgesFromCurvature.cpp:33
mp2p_icp_filters::GeneratorEdgesFromCurvature::ParametersEdges::min_point_clearance
float min_point_clearance
Definition: GeneratorEdgesFromCurvature.h:45
mp2p_icp::metric_map_t
Generic container of pointcloud(s), extracted features and other maps.
Definition: metricmap.h:49
mp2p_icp_filters::GeneratorEdgesFromCurvature::ParametersEdges
Definition: GeneratorEdgesFromCurvature.h:38
mp2p_icp_filters::GeneratorEdgesFromCurvature::GeneratorEdgesFromCurvature
GeneratorEdgesFromCurvature()=default
mp2p_icp_filters
Definition: FilterAdjustTimestamps.h:19


mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:45:58