安装 ros-melodic-slam-gmapping 时出现错误

安装 ros-melodic-slam-gmapping 时出现错误

我想安装ros-melodic-slam-gmapping通过命令:

sudo apt-get install ros-melodic-slam-gmapping

但它不起作用,错误是

E: 无法找到包 ros-melodic-slam-gmapping

你可以帮帮我吗?

答案1

这对我来说很管用。软件包维护者状态为未维护,因此您应该迁移到其他解决方案。

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

cd ~/catkin_ws/src/
git clone https://github.com/ros-perception/openslam_gmapping
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_ws 
catkin_make  (or catkin build) -- Compiling will take a while but with ros melodic on a jetson agx and ubuntu 18.04 I didn't have issues.

(参考:https://www.programmersought.com/article/52912958276/)胡安。

相关内容