Skip to content

Commit

Permalink
FIX: missing robotPose
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jun 11, 2024
1 parent d8066db commit 5e93326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/maps/src/maps/CPointsMapXYZIRT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ bool CPointsMapXYZIRT::internal_insertObservation(

for (size_t i = 0; i < n; i++)
{
insertPointFast(pc.x[i], pc.y[i], pc.z[i]);
const auto gp = robotPose3D.composePoint(mrpt::math::TPoint3D(pc.x[i], pc.y[i], pc.z[i]));
insertPointFast(gp.x, gp.y, gp.z);
this->insertPointField_Intensity(mrpt::u8tof(pc.intensity[i]));
this->insertPointField_Ring(pc.laser_id[i]);
this->insertPointField_Timestamp(ts[i]);
Expand Down

0 comments on commit 5e93326

Please sign in to comment.