PJLab-ADG/Livox-Mapping

Timestamp problem

FengyuGuo opened this issue · 1 comments

laserCloudMsg.header.stamp.fromNSec(msg->timebase+msg->points.back().offset_time);

It seems that this line will introduce problem if the lidar is time synced with computer with ptp.

when pose estimation try to fetch imu message from queue the time stamp will be not matched.

[ INFO] [1695366188.427859228]: imu back time: 1678001245.552871, imu front time: 1678001244.927890, request start time: 136.299666, request end time: 136.399515

lidar is synced with computer follow the below link

https://github.com/Livox-SDK/Livox-SDK/wiki/livox-device-time-synchronization-manual

I did not notice this problem before...

This script is mainly brought from LIO_Livox, maybe you can open a new issue in their repo