美文网首页
Ubuntu:安装ros

Ubuntu:安装ros

作者: AI秘籍 | 来源:发表于2020-04-30 18:18 被阅读0次

1.官网

http://wiki.ros.org/kinetic/Installation/Ubuntu

按照官网教程,
先选择包,
国内就选择Mirrors,镜像.


image.png

其他按照步骤来.

2.问题

安装出问题的地方:
一个是sudo rosdep init,


image.png

这个命令是下载一个文件,
文件名为: 20-default.list
文件内容如下:


image.png
# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

文件地址为: /ect/ros/rosdep/sources.list.d/20-default.list


image.png

解决办法将上述内容复制到空白文件,命名为20-default.list,然后复制到正确的目录下面.
sudo cp -r 20-default.list /etc/ros/rosdep/sources.list.d


image.png

另一个问题是rosdep update.
链接不到网址.


image.png

3.测试安装是否成功

输入命令: roscore


image.png

参考:

  1. https://github.com/ros/rosdistro/issues/9721
  2. http://wiki.ros.org/kinetic/Installation/Ubuntu

相关文章

网友评论

      本文标题:Ubuntu:安装ros

      本文链接:https://www.haomeiwen.com/subject/sgdiwhtx.html