Skip to content

Commit

Permalink
LiDAR3D sensor: generate per-point timestamp (constants)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Oct 26, 2024
1 parent 141b9e4 commit 30b6454
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/simulator/src/Sensors/Lidar3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,13 @@ void Lidar3D::simulateOn3DScene(mrpt::opengl::COpenGLScene& world3DScene)
d * (v - camModel.cy()) / camModel.fy(), d};
curPts.insertPoint(thisDepthSensorPoseWrtSensor.composePoint(pt_wrt_cam));

// Add "ring" field:
#if defined(HAVE_POINTS_XYZIRT)
// Add "ring" field:
curPtsPtr->getPointsBufferRef_ring()->push_back(j);

// Add "timestamp" field: all to zero since we are simulating an ideal "flash"
// lidar:
curPtsPtr->getPointsBufferRef_timestamp()->push_back(.0);
#endif
}
}
Expand Down

0 comments on commit 30b6454

Please sign in to comment.