APRIL-ZJU / lidar_IMU_calib

[IROS 2020] Targetless Calibration of LiDAR-IMU System Based on Continuous-time Batch Estimation
GNU General Public License v3.0
927 stars 224 forks source link

build wrong in debug mode #25

Closed Chrislzy1993 closed 3 years ago

Chrislzy1993 commented 3 years ago

hi, @icameling , when i build the code in debug mode by change set(CMAKE_BUILD_TYPE "DEBUG"), then build with some error:

/home/xxx/catkin_dev/src/lidar_IMU_calib/include/utils/dataset_reader.h: In member function ‘void licalib::IO::LioDataset::adjustDataset()’:
/home/xxx/catkin_dev/src/lidar_IMU_calib/include/utils/dataset_reader.h:180:12: error: ‘imu_data’ was not declared in this scope
     assert(imu_data.size() > 0 && "No IMU data. Check your bag and imu topic");
            ^
/home/xxx/catkin_dev/src/lidar_IMU_calib/include/utils/dataset_reader.h:181:12: error: ‘scan_data’ was not declared in this scope
     assert(scan_data.size() > 0 && "No scan data. Check your bag and lidar topic");
            ^
/home/xxx/catkin_dev/src/lidar_IMU_calib/include/utils/dataset_reader.h:183:12: error: ‘scan_timestamps’ was not declared in this scope
     assert(scan_timestamps.front() < imu_data.back().timestamp

The variable imu_data , scan_data and scan_timestamps was not declared in this scope, i am confused why it can build successful in release mode