安装libg20:
sudo apt-get install ros-melodic-libg2o
安装Glog:
sudo apt-get install libgoogle-glog-dev
安装ROS所需第三方依赖包:
sudo apt install -y ros-melodic-cv-bridge
sudo apt install -y ros-melodic-image-transport
sudo apt install -y ros-melodic-stage-ros
sudo apt install -y ros-melodic-map-server
sudo apt install -y ros-melodic-laser-geometry
sudo apt install -y ros-melodic-interactive-markers
sudo apt install -y ros-melodic-tf
sudo apt install -y ros-melodic-pcl*
sudo apt install -y ros-melodic-libg2o
sudo apt install -y ros-melodic-rplidar-ros
sudo apt install -y ros-melodic-rviz
sudo apt install -y protobuf-compiler
sudo apt install -y libprotobuf-dev
sudo apt install -y libsuitesparse-dev
sudo apt install -y libgoogle-glog-dev