去皮卡多 发表于 2025-3-27 18:24:47

复现FAST_LIVO2【Ubuntu 20.04.6 LTS】

预备

1 Ubuntu 和 ROS

依据开源介绍,Ubuntu 16.04~20.04。
https://i-blog.csdnimg.cn/direct/90eaa6b3a9a34ee4bbd23c1b0b37932a.png#pic_center复现版本为:Ubuntu 20.04.6 LTS,ROS noetic。
ROS安装可参考之前的一片博客: ROS安装含检测——鱼香ROS
2 其他库

2.1 PCL

依据开源介绍,PCL>=1.6。
https://i-blog.csdnimg.cn/direct/6ef58d8198434ad7b1a2d09006a51cc6.png#pic_center
2.2 Eigen

依据开源介绍,Eigen>=3.3.4。
https://i-blog.csdnimg.cn/direct/92cba42c2d5b4fb4a89572a14dd75ceb.png#pic_center
2.3 OpenCV

依据开源介绍,OpenCV>=3.2。
https://i-blog.csdnimg.cn/direct/98fc6a584c7349bebff55e9a495fa2ab.png#pic_center
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报错

https://i-blog.csdnimg.cn/direct/004399f0dc694c4f9ffddd8c03f7f40d.png#pic_center
修改Sophus/sophus/so2.cpp文件https://i-blog.csdnimg.cn/direct/0a384aa9cea5490cb09b30a1b9776e93.png#pic_center 修改为:
SO2::SO2()
{
   unit_complex_.real(1.);
   unit_complex_.imag(0.);
}
重新cmake并执行后续命令,最终成功安装。
https://i-blog.csdnimg.cn/direct/a99e1e7527b54db1926d92dd671b3d19.png#pic_center
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
https://i-blog.csdnimg.cn/direct/5feb1b0ccd6b4d08a4040e5a2d324841.png#pic_center
参考

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

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 复现FAST_LIVO2【Ubuntu 20.04.6 LTS】