ubuntu16.04 ROS安装

半世苍凉 提交于 2019-12-28 20:15:47

ubuntu16.04 ROS安装

安装过程参考:ROS安装官方教程
下面简单说明几个安装过程中的问题。

网速问题

官方教程采用的官方的ROS源,而我们在国内使用国外源速度实在是慢的要死。
我是电脑开了一晚上才完成sudo apt-get install ros-kinetic-desktop-full这个命令。所以尽量找网络好的地方,或者使用国内的源。比如这篇博客:国内源安装ROS
(暑假在韩国比赛的时候队友安装ROS过程异常顺利,网速飞快)

sudo rosdep init与rosdep update问题

这个地方可能会出现三个问题:
1) 出现以下报错
sudo rosdep init执行时:

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

参考解决方案:问题1解决参考博客
2) 出现以下报错:
rosdep rosdep执行时:

ERROR: default sources list file already exists:
/etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list

3)出现以下报错时:

reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit 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]:
<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)

解决方法:

sudo apt-get update

然后再运行rosdep update即可

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!