diff --git a/_data/options.yml b/_data/options.yml index 8b67826..80fd345 100644 --- a/_data/options.yml +++ b/_data/options.yml @@ -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 diff --git a/help/_posts/2022-05-16-rosdistro.md b/help/_posts/2022-05-16-rosdistro.md new file mode 100644 index 0000000..c0234f0 --- /dev/null +++ b/help/_posts/2022-05-16-rosdistro.md @@ -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 +```