感谢该文作者提供的代码和使用说明!
本文基于以上的代码作出改进,将fastlio定位算法换成更稳定的fastlivo2定位算法,将movebase里面的dwa导航算法换成teb,调整tf转换和优化重定位,并且能实现不在启始位置启动。经多次实现验证了算法的有效性。算法代码地址:git@github.com:ZhifangFu/nv_ros_ws.git,该算法编译起来有一定难度,建议多点耐心,逐步编译。有什么问题可以发送邮件咨询我。
目录
output:(这个比较多,发布的东西很全,挑几个重点关注的)
环境:
ros-noetic
ubuntu20.04
mid360雷达
一、一键安装ros
wget http://fishros.com/install -O fishros && . fishros
二、安装雷达驱动和配置雷达ip
2.1安装Livox雷达驱动
https://github.com/Livox-SDK/Livox-SDK2.git
cd ~/Livox-SDK
cmake ..
make -j16
sudo make install
git clone https://github.com/Livox-SDK/livox_ros_driver2.git ws_livox/src/livox_ros_driver2
https://github.com/Livox-SDK/Livox-SDK.git
git clone https://github.com/Livox-SDK/livox_ros_driver.git ws_livox/src
这里安装了两个livox,因为有些代码需要livox_ros_driver,有些代码需要livox_ros_driver2驱动,这两个驱动差不多,无非是支持ros1,ros2的区别。
2.2配置雷达ip
更改主机ip为192.168.1.5(这个随意,只要在同一个网段下)ubuntu修改方法,本人雷达ip为192.168.1.12


三、定位模块实现
3.1安装fastlio
这个不安装也可以,将这个替换为fastlivo2
# Compile Fast-LIO
# Navigate to the 'src' directory of your workspace. Replace $A_ROS_DIR$ accordingly.
cd ~/$A_ROS_DIR$/src
git clone https://github.com/hku-mars/FAST_LIO.git
cd FAST_LIO
git submodule update --init
cd ../..
catkin_make
source devel/setup.bash
运行fastlio
source devel/setup.bash
roslaunch livox_ros_driver2 msg_MID360.launch
#再开一个终端 source devel/setup.bash
roslaunch fast_lio mapping_mid360.launch
3.2安装fastlivo2
3.2.1安装相关的库
sudo apt install libeigen3-dev
sudo apt install libpcl-dev
377



被折叠的 条评论
为什么被折叠?



