when develop slam based on 3D lidar, we often use imu to provide priori for matching algorithm(icp, ndt), so the transform between lidar and imu need to be calibrated.For matching algorithm, attitude in transfom is more important than position in transform, and position often be set to 0. So this repo concentrate on calibrate attitude component in transform between lidar and imu.
- Result extrinsic parameters
- The original repo only shows imu to lidar extrinsic parameters.
- This code shows both imu to lidar and lidar to imu extrinsic parameters as the calibration results.
- Note that for LIO-SAM, we need lidar to imu extrinsic parameters
- Launch file
sudo mv /usr/include/flann/ext/lz4.h /usr/include/flann/ext/lz4.h.bak
sudo mv /usr/include/flann/ext/lz4hc.h /usr/include/flann/ext/lz4.h.bak
ln -s /usr/include/lz4.h /usr/include/flann/ext/lz4.h
ln -s /usr/include/lz4hc.h /usr/include/flann/ext/lz4hc.h
mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/Lab-of-AI-and-Robotics/lidar_imu_calib.git
cd ..
catkin_make -DCATKIN_WHITELIST_PACKAGES="ndt_omp;lidar_imu_calib"
-
use rosbag tool record imu and lidar data
rosbag record /imu /lidar_points
-
start
roslaunch lidar_imu_calib calib_exR_lidar2imu.launch \ bag_file:=<path of the bag file> \ lidar_topic:=<lidar topic name> \ imu_topic:=<imu topic name>
https://blog.csdn.net/weixin_37835423/article/details/110672571