1. 程式人生 > 其它 >虛擬機器VMware16+Ubuntu18.04配置LOAM-LIVOX

虛擬機器VMware16+Ubuntu18.04配置LOAM-LIVOX

VMware 的安裝過程就省略了,這步應該也不會遇到什麼大的問題,下載 Ubuntu 映象

https://releases.ubuntu.com/18.04/ubuntu-18.04.6-desktop-amd64.iso

安裝 ROS

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt update
sudo apt install ros-melodic-desktop-full
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

安裝 Ceres

sudo apt-get install cmake git libgoogle-glog-dev libgflags-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev build-essential software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-11 g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11
git clone https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver
mkdir build
cd build
cmake ../
make -j4
make test
sudo make install

 安裝 PCL

https://github.com/PointCloudLibrary/pcl/releases 下載 Source Code 並解壓
cd pcl
mk build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install

安裝 LIVOX SDK

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

 安裝 LOAM-LIVOX

mkdir catkin_ws && cd catkin_ws
mkdir src && cd src
git clone https://github.com/hku-mars/loam_livox.git
git clone https://github.com/Livox-SDK/livox_ros_driver.git ws_livox/src
將 livox_ros_driver/src 資料夾下的檔案移動到 livox_ros_driver 下
cd ..
catkin_make