fast-lio2复现:使用livox_avia

本文档介绍了如何安装Ceres求解器和Livox ROS驱动,包括依赖安装、源码编译及激光雷达消息类型匹配问题。在尝试使用livox_lidar.launch时遇到类型不匹配问题,提出了修改驱动发布消息类型或调整雷达扫描模式的解决方案。后续步骤包括查阅文档和调整算法配置来解决问题。

安装依赖以及ceres

sudo apt-get install libsuitesparse-dev
git clone https://github.com/ceres-solver/ceres-solver/archive/1.14.0.zip
cd ~/你新建的文件夹/ceres-solver-1.14.0
mkdir ceres-bin && cd ceres-bin
cmake …
sudo make install -j4
cd ~

下载livox_ros_driver,fast-lio2并编译

git clone https://github.com/hku-mars/FAST_LIO.git Fast_Lio_ws/src
git clone https://github.com/Livox-SDK/livox_ros_driver.git
cd …
catkin_make

运行

cd ~/$Fast_Lio_ws$
source devel/setup.bash
roslaunch fast_lio mapping_avia.launch
roslaunch livox_ros_driver livox_lidar_msg.launch

效果

lio_livox运行()待完善

直接使用驱动livox_lidar.launch,拉起激光雷达获得的是sensor_msgs::PointCloud2,扫描形式为旋转。
此时无论拉起horizon.launch 还是 hap.launch 均会出现所需消息类型不匹配问题。所需类型为livox_ros_driver::CustomMsg

可尝试的解决方案:1、先修改激光雷达驱动中发

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值