复现FAST_LIVO2【Ubuntu 20.04.6 LTS】

准备

1 Ubuntu 和 ROS

依据开源介绍,Ubuntu 16.04~20.04。
Ubuntu 和 ROS复现版本为:Ubuntu 20.04.6 LTS,ROS noetic。
ROS安装可参考之前的一片博客: ROS安装含检测——鱼香ROS

2 其他库

2.1 PCL

依据开源介绍,PCL>=1.6。
PCL

2.2 Eigen

依据开源介绍,Eigen>=3.3.4。
请添加图片描述

2.3 OpenCV

依据开源介绍,OpenCV>=3.2。
请添加图片描述

3 Sophus

3.1 安装

git clone https://github.com/strasdat/Sophus.git
cd Sophus
git checkout a621ff
mkdir build && cd build && cmake ..
make
sudo make install

3.2 make报错

请添加图片描述
修改Sophus/sophus/so2.cpp文件请添加图片描述 修改为:

 SO2::SO2() 
{ 
   unit_complex_.real(1.); 
   unit_complex_.imag(0.); 
 }

重新cmake并执行后续命令,最终成功安装。
请添加图片描述

4 Vikit

Vikit contains camera models, some math 和 interpolation functions that we need. Vikit is a catkin project, therefore, download it into your catkin workspace source folder.[作者的说明]

# Different from the one used in fast-livo1
cd catkin_ws/src
git clone https://github.com/xuankuzcr/rpg_vikit.git 

5 livox_ros_driver

5.1 Livox-SDK

git clone https://github.com/Livox-SDK/Livox-SDK.git
cd Livox-SDK
cd build && cmake ..
make
sudo make install

5.2 livox_ros_driver

git clone https://github.com/Livox-SDK/livox_ros_driver.git ws_livox/src
cd ws_livox
catkin_make

FAST-LIVO2

在此之前首先把livox_ros_driver添加到source[注意位置]:

source ./devel/setup.sh
cd ~/catkin_ws/src
git clone https://github.com/hku-mars/FAST-LIVO2
cd ../
catkin_make
source ~/catkin_ws/devel/setup.bash

运行

roslaunch fast_livo mapping_avia.launch
rosbag play YOUR_DOWNLOADED.bag
#改变速度
rosbag play -r YOUR_DOWNLOADED.bag

请添加图片描述

参考

[1]: FAST-LIVO2 : https://github.com/hku-mars/FAST-LIVO2
[2]: 「 Linux调试错误 」Sophus/sophus/so2.cpp:33:26:error: lvalue required as left operand of assignment: https://blog.csdn.net/Robot_Starscream/article/details/88132050

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值