LIO-SAM environment configuration(Linux 20.04; ROS Noetic)
LIO-SAM environment configuration(Linux 20.04; ROS Noetic)
Make sure you have installed ROS completely
Install
gtsam
from official github
I am highly recommend you to install from Releases(The version I downloaded is 4.1.1)
1 |
|
- create workspace
1
2
3
4
5$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ git clone https://github.com/TixiaoShan/LIO-SAM.git
$ cd ..
$ catkin_make
problems&solutions
Q1:
1 |
|
A1:
1 |
|
step1:
use#include <opencv2/opencv.hpp>
instead of#include <opencv/cv.h>
inutility.h
step2:
move#include <pcl/kdtree/kdtree_flann.h>
in front of#include <opencv2/opencv.hpp>
Q2:
1 |
|
A2:
it mean that PCL 1.10 require C++14 or higher
openCMakeLists.txt
, change set(CMAKE_CXX_FLAGS "-std=c++11")
to set(CMAKE_CXX_FLAGS "-std=c++14")
Q3:
1 |
|
A3:
after installing gtsam, you’d better run sudo ldconfig
, in order to update link settings
then, init workspace, run catkin_make
again
LIO-SAM environment configuration(Linux 20.04; ROS Noetic)
http://example.com/2023/10/09/LIO-SAM/