16 #include <mrpt/maps/CSimplePointsMap.h>
20 auto pts = mrpt::maps::CSimplePointsMap::Create();
22 for (
int i = 0; i < 10; i++) pts->insertPoint(i * 0.01f, 5.0f, .0f);
23 for (
int i = 0; i < 10; i++) pts->insertPoint(10.0f, i * 0.01f, 1.0f);
30 auto pts = mrpt::maps::CSimplePointsMap::Create();
32 pts->insertPointFast(0.
f, 0.
f, 0.
f);
33 pts->insertPointFast(2.
f, 0.
f, 0.
f);
38 int main([[maybe_unused]]
int argc, [[maybe_unused]]
char** argv)
52 mrpt::containers::yaml p;
53 p[
"threshold"] = 1.05;
54 p[
"thresholdAngularDeg"] = .001;
66 m.
match(pcGlobal, pcLocal, {0, 0, 0, 0, 0, 0}, {}, ms, pairs);
67 ASSERT_(pairs.
empty());
76 m.
match(pcGlobal, pcLocal, {0, 5, 0, 0, 0, 0}, {}, ms, pairs);
77 ASSERT_EQUAL_(pairs.
size(), 1);
86 m.
match(pcGlobal, pcLocal, {-2, 5, 0, 0, 0, 0}, {}, ms, pairs);
87 ASSERT_EQUAL_(pairs.
size(), 1);
98 {8.5, -1.0, 1, mrpt::DEG2RAD(45.0
f), 0, 0}, {}, ms, pairs);
99 ASSERT_EQUAL_(pairs.
size(), 1);
105 catch (std::exception& e)
107 std::cerr << mrpt::exception_to_str(e) <<
"\n";