Add rosdistro help

This commit is contained in:
Zenithal 2022-05-16 02:00:00 +08:00
parent 21336882e2
commit 61437db801
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C
2 changed files with 32 additions and 1 deletions

View File

@ -373,9 +373,11 @@ mirror_desc:
- name: repoforge
desc: Repoforge 是 RHEL 系统下的软件仓库,已长期无更新
- name: ros
desc: ROS提供一系列程序库和工具以帮助软件开发者创建机器人应用软件
desc: ROS 提供一系列程序库和工具以帮助软件开发者创建机器人应用软件
- name: ros2
desc: ROS (Robot Operating System) 2.0 版本
- name: rosdistro
desc: rosdep 所使用的依赖关系数据库
- name: rpmfusion
desc: RPM Fusion 提供了一些 Fedora Project 和 Red Hat 不包含的软件
- name: rubygems

View File

@ -0,0 +1,29 @@
---
category: help
layout: help
mirrorid: rosdistro
---
## rosdistro 镜像使用帮助
在 rosdep 使用流程中,我们会有如下两个步骤
```bash
sudo rosdep init
rosdep update
```
我们替换为以下步骤
```bash
# 手动模拟 rosdep init
sudo mkdir -p /etc/ros/rosdep/sources.list.d/
sudo curl -o /etc/ros/rosdep/sources.list.d/20-default.list https://{{ site.hostname }}/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
# 为 rosdep update 换源
export ROSDISTRO_INDEX_URL=https://{{ site.hostname }}/rosdistro/index-v4.yaml
rosdep update
# 每次 rosdep update 之前,均需要增加该环境变量
# 为了持久化该设定,可以将其写入 .bashrc 中,例如
echo 'export ROSDISTRO_INDEX_URL=https://{{ site.hostname }}/rosdistro/index-v4.yaml' >> ~/.bashrc
```