在ROS-melodic中安装map_server、gmapping 等功能包

在ROS-melodic中安装map_server、gmapping 等功能包


1. 需求和来源

在Ubuntu18.04 环境下的 ROS melodic 版中
很多功能包没有提供sudo apt install的安装方式,这就有点脑壳疼了
那么就需要通过源代码安装


2. 安装准备

安装 libsdl1.2-dev 、 libsdl-image1.2-dev
否则会报 “Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)”等错误

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

3. 下载源代码

进入工作空间

$ cd ~/catkin_ws/src/

下载源代码:

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

4. 编译源代码

退回到工作空间主页,编译

$ cd ~/catkin_ws && catkin_make

所耗内存也有点大,编译大约一两分钟吧
在这里插入图片描述
编译完成,完事


谢谢

  • 15
    点赞
  • 87
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 52
    评论
评论 52
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

氢键H-H

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值