ubuntu18.04 安装运行lio-sam

1. gtsam

wget -O ~/Downloads/gtsam.zip https://github.com/borglab/gtsam/archive/4.0.2.zip
cd ~/Downloads/ && unzip gtsam.zip -d ~/Downloads/
cd ~/Downloads/gtsam-4.0.2/
mkdir build && cd build
cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
sudo make install -j8

 将Downloads 换成自己的安装目录

cmake .. 中间的-DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF 一定要加上,不然运行的时候会报错

2. 报错修改

[lio_sam_imuPreintegration-2] process has died [pid 20256, exit code 127, cmd /home/

[lio_sam_mapOptmization-5] process has died [pid 20257, exit code 127, cmd /home

解决方法

cd /usr/local/lib/
sudo cp libmetis.so /opt/ros/melodic/lib/

ERROR: cannot launch node of type [robot_localization/ekf_localization_node]: robot_localization
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/xf/lio_sam_ws/src
ROS path [2]=/opt/ros/melodic/share
ERROR: cannot launch node of type [robot_localization/navsat_transform_node]: robot_localization
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/xf/lio_sam_ws/src
ROS path [2]=/opt/ros/melodic/share

解决方法  安装功能包

sudo apt-get install ros-melodic-fake-localization
sudo apt-get install ros-melodic-robot-localization

3. 数据集

https://drive.google.com/drive/folders/1gJHwfdHCRdjP7vuT556pv8atqrCJPbUq

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值