Lio-Sam algorithm compilation

1、Install dependencies

ROS(ubuntu 18.04 melodic)

Ceres solver

GTSAM

ndt_omp

2、Source code path

imuCalibEx:

Lio-Sam:

3、compile

Here we take Jetson nano as an example. The installation environment is ubuntu 18.04 and the ROS version is melodic. ROS (ubuntu 18.04 melodic), Ceres solver, GTSAM and other dependencies have been installed by default.

compile

If it is the first time to compile, please enter the following command:

Then enter Lio_Sam's workspace to compile

Compilation completed effect:

截屏2023-12-05 14.52.37

What you need to pay attention to is that when compiling imuCalibEx, if you are using a Jetson nano class arm motherboard. You need to modify the src/imuCalibEx/src/imu_lidar_calibration/ndt_omp/CMakeLists.txt file, refer to the location shown in the example picture below

截屏2023-12-05 12.09.34

You also need to modify the src/imuCalibEx/src/imu_lidar_calibration/linkalibr/CMakeLists.txt file as shown below.

截屏2023-12-05 14.18.43