mp2p_icp_filters
include
mp2p_icp_filters
FilterAdjustTimestamps.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
#include <mrpt/typemeta/TEnumType.h>
18
19
namespace
mp2p_icp_filters
20
{
26
enum class
TimestampAdjustMethod
: uint8_t
27
{
30
EarliestIsZero
= 0,
33
MiddleIsZero
,
35
Normalize
,
36
};
37
46
class
FilterAdjustTimestamps
:
public
mp2p_icp_filters::FilterBase
47
{
48
DEFINE_MRPT_OBJECT(
FilterAdjustTimestamps
,
mp2p_icp_filters
)
49
public
:
50
FilterAdjustTimestamps
();
51
52
// See docs in base class.
53
void
initialize
(
const
mrpt::containers::yaml& c)
override
;
54
55
// See docs in FilterBase
56
void
filter
(
mp2p_icp::metric_map_t
& inOut)
const override
;
57
58
struct
Parameters
59
{
60
void
load_from_yaml
(
61
const
mrpt::containers::yaml& c,
FilterAdjustTimestamps
& parent);
62
63
std::string
pointcloud_layer
;
64
68
bool
silently_ignore_no_timestamps
=
false
;
69
71
double
time_offset
= .0;
72
74
TimestampAdjustMethod
method
=
TimestampAdjustMethod::MiddleIsZero
;
75
};
76
78
Parameters
params_
;
79
};
80
82
}
// namespace mp2p_icp_filters
83
84
MRPT_ENUM_TYPE_BEGIN_NAMESPACE(
85
mp2p_icp_filters
,
mp2p_icp_filters::TimestampAdjustMethod
)
86
MRPT_FILL_ENUM
(TimestampAdjustMethod::EarliestIsZero);
87
MRPT_FILL_ENUM
(TimestampAdjustMethod::MiddleIsZero);
88
MRPT_FILL_ENUM
(TimestampAdjustMethod::Normalize);
89
MRPT_ENUM_TYPE_END()
mp2p_icp_filters::FilterAdjustTimestamps::params_
Parameters params_
Definition:
FilterAdjustTimestamps.h:78
MRPT_FILL_ENUM
MRPT_ENUM_TYPE_BEGIN_NAMESPACE(mp2p_icp_filters, mp2p_icp_filters::TimestampAdjustMethod) MRPT_FILL_ENUM(TimestampAdjustMethod MRPT_FILL_ENUM(TimestampAdjustMethod::MiddleIsZero)
mp2p_icp_filters::FilterAdjustTimestamps::filter
void filter(mp2p_icp::metric_map_t &inOut) const override
Definition:
FilterAdjustTimestamps.cpp:48
mp2p_icp_filters::TimestampAdjustMethod::Normalize
@ Normalize
mp2p_icp_filters::FilterAdjustTimestamps::Parameters::silently_ignore_no_timestamps
bool silently_ignore_no_timestamps
Definition:
FilterAdjustTimestamps.h:68
mp2p_icp_filters::FilterAdjustTimestamps::FilterAdjustTimestamps
FilterAdjustTimestamps()
Definition:
FilterAdjustTimestamps.cpp:33
mp2p_icp_filters::FilterAdjustTimestamps::Parameters::load_from_yaml
void load_from_yaml(const mrpt::containers::yaml &c, FilterAdjustTimestamps &parent)
Definition:
FilterAdjustTimestamps.cpp:23
testing::internal::string
::std::string string
Definition:
gtest.h:1979
mp2p_icp_filters::FilterAdjustTimestamps::Parameters
Definition:
FilterAdjustTimestamps.h:58
mp2p_icp_filters::FilterAdjustTimestamps::initialize
void initialize(const mrpt::containers::yaml &c) override
Definition:
FilterAdjustTimestamps.cpp:38
mp2p_icp_filters::FilterBase
Definition:
FilterBase.h:46
mp2p_icp_filters::FilterAdjustTimestamps
Definition:
FilterAdjustTimestamps.h:46
mp2p_icp_filters::FilterAdjustTimestamps::Parameters::pointcloud_layer
std::string pointcloud_layer
Definition:
FilterAdjustTimestamps.h:63
mp2p_icp_filters::TimestampAdjustMethod
TimestampAdjustMethod
Definition:
FilterAdjustTimestamps.h:26
FilterBase.h
Base virtual class for point cloud filters.
mp2p_icp_filters::TimestampAdjustMethod::EarliestIsZero
@ EarliestIsZero
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::FilterAdjustTimestamps::Parameters::method
TimestampAdjustMethod method
Definition:
FilterAdjustTimestamps.h:74
mp2p_icp_filters::TimestampAdjustMethod::MiddleIsZero
@ MiddleIsZero
mp2p_icp_filters
Definition:
FilterAdjustTimestamps.h:19
mp2p_icp_filters::FilterAdjustTimestamps::Parameters::time_offset
double time_offset
Definition:
FilterAdjustTimestamps.h:71
mp2p_icp
Author(s):
autogenerated on Thu Dec 26 2024 03:48:10