TixiaoShan / LIO-SAM

LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

processing 2 time stamps old point cloud

huzefablue opened this issue · comments

In imageProjection.cpp in the cachePointCloud() function, at the very start, the cloudQueue is not processed till it has 2 elements. And after that is processes the oldest element in time in the queue. Wouldn't this cause the odometry to always be outdated by two timestamps?

If the pose you accept comes from "lio_sam/odomTopic" in the yaml format configuration file, then its timestamp is almost current, because the function "IMUPreintegration::imuHandler" integrates it in real time and sends it out with this topic.
Of course, the imu's bias is two timestamps behind, but it doesn't matter.
I think setting the cloudQueue cache size to 0 will not affect the operation.

Set the cloudQueue cache size to 0 will lead bad result, why?