天天看点

运行基于MID-40雷达的LOAM_LIVOX算法的全过程

研究这个算法一年有余,踩过的坑及其解决办法在其它文章中有详细描述,这里将纠正过的流程梳理一遍,照着操作就能完整把算法跑起来,如有问题,欢迎一起交流。

运行基于MID-40雷达的LOAM_LIVOX算法的全过程

1. 最好使用ubuntu18

2.安装ROS

依据ROS安装教程安装完后添加包

sudo apt-get install ros-XXX-cv-bridge ros-XXX-tf ros-XXX-message-filters ros-XXX-image-transport
           

3.安装Ceres Solver

git clone https://ceres-solver.googlesource.com/ceres-solver
# CMake
sudo apt-get install cmake
# google-glog + gflags
sudo apt-get install libgoogle-glog-dev libgflags-dev
# BLAS & LAPACK
sudo apt-get install libatlas-base-dev
# Eigen3
sudo apt-get install libeigen3-dev
# SuiteSparse and CXSparse (optional)
sudo apt-get install libsuitesparse-dev
tar zxf ceres-solver-2.0.0.tar.gz
mkdir ceres-bin
cd ceres-bin
cmake ../ceres-solver-2.0.0
make -j3
make test
make install
           

4.安装PCL

注意一定要安装PCL1.9及以上版本,一定一定!!!

各个版本可以从PCL库集合获得

git clone https://github.com/PointCloudLibrary/pcl
cd pcl-pcl-1.9 && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
sudo make -j8 install
           

5.创建工作空间

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ..
catkin_make
source devel/setup.bash
           

6.下载运行算法

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

7.安装SDK

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

7.安装Livox ROS Driver

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

8.运行loam_livox算法

cd ~/catkin_ws
roslaunch loam_livox rosbag.launch
           

9.运行Livox ROS Driver

cd ~/ws_livox
source ./devel/setup.sh
roslaunch livox_ros_driver livox_lidar.launch
           

至此,你就能给周围环境建出三维点云地图啦,希望大家一切顺利,科研开心

继续阅读