目录
安装依赖
我的ROS版本是melodic,所以需要安装以下几个功能包:
sudo apt-get install -y ros-melodic-navigation
sudo apt-get install -y ros-melodic-robot-localization
sudo apt-get install -y ros-melodic-robot-state-publisher
然后安装GTSAM 4.0.2
可以参考https://github.com/borglab/gtsam的安装说明。
编译lio-sam
mkdir catkin_ws
cd ~/catkin_ws/src
git clone https://github.com/TixiaoShan/LIO-SAM.git
cd ..
catkin_make
运行
roslaunch lio_sam run.launch
rosbag play your-bag.bag
遇到的坑
1.运行时报错,error while loading shared libraries: libmetis.so: cannot open shared object