LIO-SAM requires a 9-axis IMU (providing roll, pitch, and yaw) for optimal performance. A minimum output rate of 200Hz is recommended.
IMU Alignment and Extrinsics
LIO-SAM transforms IMU data to the Lidar frame following the ROS REP-105 convention (x-forward, y-left, z-up). You must configure the following in config/params.yaml:
extrinsicRot: The rotation required to transform IMU acceleration and attitude to the lidar frame.extrinsicRPY: The rotation from lidar to IMU (q_lb). Note that if acceleration and attitude have the same coordinate system, this may be the same as extrinsicRot.
Debugging
To verify your IMU transformation, it is highly recommended to uncomment the debug lines in imuHandler() within imageProjection.cpp. Rotate the sensor suite and ensure the transformed readings correspond correctly to the physical movement.