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即可