ubuntu16.04 运行SC-LEGO-LOAM

####仅作为笔记
ubuntu16.04
ROS
gtsam
PCL
OpenCV

  1. GTSAM
wget -O ~/Downloads/gtsam.zip https://github.com/borglab/gtsam/archive/4.0.0-alpha2.zip
cd ~/Downloads/ && unzip gtsam.zip -d ~/Downloads/
cd ~/Downloads/gtsam-4.0.0-alpha2/
mkdir build && cd build
cmake ..
sudo make install
  1. PCL 1.8
#依赖
sudo apt-get update
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake cmake-gui 
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common  
sudo apt-get install libflann1.8 libflann-dev
sudo apt-get install libeigen3-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libvtk5.10-qt4 libvtk5.10 libvtk5-dev
sudo apt-get install libqhull* libgtest-dev
sudo apt-get install freeglut3-dev pkg-config
sudo apt-get install libxmu-dev libxi-dev 
sudo apt-get install mono-complete
sudo apt-get install qt-sdk openjdk-8-jdk openjdk-8-jre

#安装
git clone https://github.com/PointCloudLibrary/pcl.git 
cd pcl
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_GPU=ON -DBUILD_apps=ON -DBUILD_examples=ON \ -DCMAKE_INSTALL_PREFIX=/usr .. 
make -j4 && sudo make install
  1. OpenCV
    参考:
    https://zhuanlan.zhihu.com/p/162883970

  2. 安装sc-lego-loam

cd ~/catkin_ws/src
git clone https://github.com/irapkaist/SC-LeGO-LOAM.git
catkin_make
  1. 测试
cd ~/catkin_ws
source devel/setup.bash
roslaunch lego_loam run.launch
###launch文件里面的参数对照lego-loam原版修改就好
  1. 测试结果
    ubuntu16.04 运行SC-LEGO-LOAM_第1张图片

你可能感兴趣的:(SLAM,slam)