如何在 Mac OS Sierra 中安装 ROS(Kinetic)?

How to install ROS(Kinetic) in Mac OS Sierra?

我的 macbook pro 系统信息:

而且,我正在尝试按照 Office Guidings 在我的 macbook 中安装 ros-kinetic-distro 版本。然而,一切都很好,直到 initialize-rosdep 步骤:

$ sudo -H rosdep init
$ rosdep update

问题如下:

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.

所以我必须去网站页面找到 建议 像这样:

# 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

我对yaml不熟悉,所以不清楚建议真正的意义。接下来,我必须安装yaml,不幸的是,又出现了一些问题!

所以我安装了 PyYAML,它似乎位于此处:

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

带文件 PyYAML-3.12-py3.6.egg-info.

但是当我将 PATH 导出到我的 .zhsrc 时失败了:

export PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages:$PATH

yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx zsh: permission denied: yaml

sudo yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

Password:

sudo: yaml: command not found

那么,我应该如何正确配置 yaml-command?最后,有人成功地在 MacBook 中安装了 ROS 吗?我真的需要你的帮助!

以下是我对 Kinetic 和 High Sierra 的笔记(尽管只是部分成功,运行 缺乏耐心):https://gist.github.com/stela/aba2fbd1d4adc8aa922af29c057f7b86

Lunar on Sierra 的另一指南: https://gist.github.com/lubiluk/361a018b267ca4e3ce10cdc68b17363d

官方 Kinetic 上(未指定版本)OS X: http://wiki.ros.org/kinetic/Installation/OSX/Homebrew/Source

虽然在非 Linux OS.

上使用 docker 分布可能要容易得多

"Suggestions" 无关紧要。发生的事情是它试图访问一个网站以从文件中提取数据,而该网站在您的计算机上未能通过证书验证过程。

很多建议都提示更新您的证书,但到目前为止,none 似乎对我有帮助。

来自https://github.com/ros/rosdistro/issues/9721: "I got the same error and fixed it by updating and upgrading the system"

还有: “为了解决错误,我安装了 'ca-certificates' 包

sudo apt-get install ca-certificates

然后它对我有用

现在有一种使用 conda 在 OSX 上安装 ROS 的简单方法:conda install ros-noetic-desktop -c robostack。有关 https://medium.com/robostack/cross-platform-conda-packages-for-ros-fa1974fd1de3 and https://github.com/RoboStack/ros-noetic

的更多信息