chennuo0125-HIT / lidar_imu_calib

automatic calibration of 3D lidar and IMU extrinsics
496 stars 113 forks source link

no valid lidar frame. #20

Open Minsu-Kim1822 opened 2 years ago

Minsu-Kim1822 commented 2 years ago

Hi, I tried to use this repo for LIO_SAM

In my case, I use LIVOX MID-70 LiDAR, and WIT motion WT901CTTL 9DOF IMU.

First, I checked my lidar messages detected well in src/lib/calibExRLidar2Imu.cpp, before codeline 350, all the messages are detected well.

but, in linenumber 352, there is a if condition like below.

if (invalid_lidar_it != lidar_buffer_.begin()) lidar_buffer_.erase(lidar_buffer_.begin(), invalid_lidar_it);

after this, my lidar messages are set as 0. I want to figure it out why my all lidar messages are set as 0.