15 #include <mrpt/containers/yaml.h>
16 #include <mrpt/maps/CSimplePointsMap.h>
17 #include <mrpt/math/TPose3D.h>
18 #include <mrpt/obs/CObservationPointCloud.h>
30 if (c.has(
"robot_pose"))
32 ASSERT_(c[
"robot_pose"].isSequence() && c[
"robot_pose"].asSequence().size() == 6);
34 auto cc = c[
"robot_pose"].asSequence();
36 for (
int i = 0; i < 6; i++)
47 MRPT_LOG_DEBUG_STREAM(
"Loading these params:\n" << c);
70 "Input point cloud layer '%s' could not be converted into a "
71 "point cloud (class='%s')",
83 mrpt::obs::CObservationPointCloud obs;
84 auto pts = mrpt::maps::CSimplePointsMap::Create();
92 pts->insertAnotherMap(pcPtr, mrpt::poses::CPose3D::Identity());
96 const auto invRobotPose = -robotPose;
97 pts->insertAnotherMap(pcPtr, invRobotPose);
101 out->insertObservation(obs, robotPose);