mp2p_icp_filters
include
mp2p_icp_filters
FilterBoundingBox.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
15
#include <
mp2p_icp/metricmap.h
>
16
#include <
mp2p_icp_filters/FilterBase.h
>
17
18
namespace
mp2p_icp_filters
19
{
30
class
FilterBoundingBox
:
public
mp2p_icp_filters::FilterBase
31
{
32
DEFINE_MRPT_OBJECT(
FilterBoundingBox
,
mp2p_icp_filters
)
33
public
:
34
FilterBoundingBox
();
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
(
45
const
mrpt::containers::yaml& c,
FilterBoundingBox
& parent);
46
47
std::string
input_pointcloud_layer
=
48
mp2p_icp::metric_map_t::PT_LAYER_RAW
;
49
51
std::string
inside_pointcloud_layer
;
52
54
std::string
outside_pointcloud_layer
;
55
63
mrpt::math::TBoundingBoxf
bounding_box
= {
64
{-1.0f, -1.0f, -1.0f}, {1.0f, 1.0f, 1.0f}};
65
};
66
68
Parameters
params_
;
69
};
70
73
}
// namespace mp2p_icp_filters
mp2p_icp_filters::FilterBoundingBox::Parameters::inside_pointcloud_layer
std::string inside_pointcloud_layer
Definition:
FilterBoundingBox.h:51
mp2p_icp_filters::FilterBoundingBox::initialize
void initialize(const mrpt::containers::yaml &c) override
Definition:
FilterBoundingBox.cpp:59
mp2p_icp_filters::FilterBoundingBox::filter
void filter(mp2p_icp::metric_map_t &inOut) const override
Definition:
FilterBoundingBox.cpp:69
mp2p_icp_filters::FilterBoundingBox::Parameters::outside_pointcloud_layer
std::string outside_pointcloud_layer
Definition:
FilterBoundingBox.h:54
mp2p_icp::metric_map_t::PT_LAYER_RAW
constexpr static const char * PT_LAYER_RAW
Definition:
metricmap.h:58
testing::internal::string
::std::string string
Definition:
gtest.h:1979
mp2p_icp_filters::FilterBoundingBox::Parameters::load_from_yaml
void load_from_yaml(const mrpt::containers::yaml &c, FilterBoundingBox &parent)
Definition:
FilterBoundingBox.cpp:23
mp2p_icp_filters::FilterBase
Definition:
FilterBase.h:46
mp2p_icp_filters::FilterBoundingBox::Parameters::bounding_box
mrpt::math::TBoundingBoxf bounding_box
Definition:
FilterBoundingBox.h:63
mp2p_icp_filters::FilterBoundingBox::FilterBoundingBox
FilterBoundingBox()
Definition:
FilterBoundingBox.cpp:54
mp2p_icp_filters::FilterBoundingBox::Parameters
Definition:
FilterBoundingBox.h:42
FilterBase.h
Base virtual class for point cloud filters.
mp2p_icp_filters::FilterBoundingBox::params_
Parameters params_
Definition:
FilterBoundingBox.h:68
metricmap.h
Generic representation of pointcloud(s) and/or extracted features.
mp2p_icp::metric_map_t
Generic container of pointcloud(s), extracted features and other maps.
Definition:
metricmap.h:49
mp2p_icp_filters::FilterBoundingBox
Definition:
FilterBoundingBox.h:30
mp2p_icp_filters
Definition:
FilterAdjustTimestamps.h:19
mp2p_icp_filters::FilterBoundingBox::Parameters::input_pointcloud_layer
std::string input_pointcloud_layer
Definition:
FilterBoundingBox.h:47
mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:10