天天看點

ROS筆記:Ubuntu18.04環境下melodic源碼安裝gmapping

Ubuntu18.04 環境下melodic可以通過sudo apt install的安裝方式,也可以通過源代碼安裝,安裝方法如下:

1、先安裝依賴庫:

sudo apt-get install libsdl1.2-dev
sudo apt install libsdl-image1.2-dev
           

2、安裝gmapping

方式(1)通過apt 安裝

sudo apt-get install ros-melodic-gmapping
           

方式(2)通過源碼安裝

進入工作空間:

cd ~/catkin_ws/src/
           

git clone以下源代碼:

git clone https://github.com/ros-perception/openslam_gmapping.git
git clone https://github.com/ros-perception/slam_gmapping.git
git clone https://github.com/ros-planning/navigation.git
git clone https://github.com/ros/geometry2.git
git clone https://github.com/ros-planning/navigation_msgs.git
           

編譯:

cd ..
catkin_make