Livox-SDK / livox_mapping

A mapping package for Livox LiDARs
Other
375 stars 112 forks source link

"TF_REPEATED_DATA ...." caused by “float” type of "timeLaserCloudCornerLast" #50

Closed WH30 closed 1 year ago

WH30 commented 1 year ago

The timestamp of tf ( camera_init 2 aft_mapped ) does not update correctly when running livox_mapping with HAP.

This problem is caused by "float" type of "timeLaserCloudCornerLast".My devices is PC ubuntu 20.04.

Just modifiy in Lasermapping.cpp

// float timeLaserCloudCornerLast = 0; 

// float timeLaserCloudSurfLast = 0; 

// float timeLaserCloudFullRes = 0; 

double timeLaserCloudCornerLast = 0; 

double timeLaserCloudSurfLast = 0; 

double timeLaserCloudFullRes = 0;