8 #include <mrpt/core/get_env.h>
9 #include <mrpt/serialization/CArchive.h>
10 #include <mrpt/serialization/stl_serialization.h>
11 #include <mrpt/version.h>
20 mrpt::get_env<bool>(
"MP2P_ICP_GENERATE_DEBUG_FILES",
false);
23 uint8_t Parameters::serializeGetVersion()
const {
return 2; }
24 void Parameters::serializeTo(mrpt::serialization::CArchive&
out)
const
32 void Parameters::serializeFrom(
33 mrpt::serialization::CArchive& in, uint8_t version)
52 MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(version);
70 if (p.has(
"quality_checkpoints"))
73 p[
"quality_checkpoints"].isSequence() &&
74 #
if MRPT_VERSION >= 0x020d00
75 !p[
"quality_checkpoints"].asSequenceRange().empty()
77 !p[
"quality_checkpoints"].asSequence().empty()
82 #if MRPT_VERSION >= 0x020d00
83 for (
const auto& e : p[
"quality_checkpoints"].asSequenceRange())
85 for (
const auto& e : p[
"quality_checkpoints"].asSequence())
91 "Entries within 'quality_checkpoints' must be a Map. See "
92 "mp2p_icp::Parameters docs.");
95 e.asMap().at(
"iteration").as<
size_t>(),
96 e.asMap().at(
"minimum_quality").as<
double>());