Ubuntu18.04安装ROS-melodic保姆级教程

目录

1 安装

1.1 设置sources.list

1.2 设置密钥

1.3 更新

1.4 安装桌面完整版

1.5 初始化rosdep(极有可能出错,最后面有解决办法)

1.6 设置环境变量

1.7 构建工厂依赖(可装可不装)

2 测试

2.1 roscore

2.2 ROS第一个例程——小海龟

3 各种各样的问题

3.1 Command 'rosdep' not found, but can be installed with:

3.2 Website may be down.

3.3 sudo rosdep initERROR: default sources list file already exists:/etc/ros/rosdep/sources.list.d/20-default.listPlease delete if you wish to re-initialize原因:3.2用多了之后就可能出现这种情况

3.4 reading in sources list data from /etc/ros/rosdep/sources.list.dERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:    (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:    (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:    (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:    (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yamlQuery rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yamlAdd distro "ardent"ERROR: error loading sources list:    (https://raw.githubusercontent.com/ros/rosdistro/master/ardent/distribution.yaml)>

3.5 ros-melodic-desktop-full : 依赖: ros-melodic-perception 但是它将不会被安装

3.6 写在最后的话


系统环境:Ubuntu18.04.6 LTS

Ubuntu对应的ROS版本:

ubuntu16.04对应ros-kinetic;

ubuntu18.04对应ros-melodic;

ubuntu20.04对应ros-noetic。

ubuntu18.04对应ros-melodic中文安装网站:https://wiki.ros.org/cn/melodic/Installation/Ubuntuicon-default.png?t=N7T8https://wiki.ros.org/cn/melodic/Installation/Ubuntu

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

灬杨三岁灬

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

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

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

打赏作者

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

抵扣说明:

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

余额充值