sudo apt-get install -y ros-melodic-navigation
sudo apt-get install -y ros-melodic-robot-localization
sudo apt-get install -y ros-melodic-robot-state-publisher
git clone https://github.com/borglab/gtsam.git
mkdir build && cd build
cmake -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
sudo make install -j4
mkdir ~/lio-sam_ws/src
cd ~/lio-sam_ws/src
git clone https://github.com/TixiaoShan/LIO-SAM.git
cd ../
catkin_make