Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 doc: add docs for ros and ros2 #109

Merged
merged 6 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docs/ros.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: ROS 镜像使用帮助
sidebar_label: ROS
---

## ROS 介绍

ROS(机器人操作系统,Robot Operating System),是专为机器人软件开发所设计出来的一套电脑操作系统架构。其托管在 [http://packages.ros.org/ros](http://packages.ros.org/ros) 上。

## ROS 软件源替换

1. 导入 key:

```bash
sudo gpg --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo gpg --export C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | sudo tee /usr/share/keyrings/ros.gpg > /dev/null
```

2. 将软件源添加至系统:

```bash
sudo tee /etc/apt/sources.list.d/ros-latest.list > /dev/null << EOF
deb [signed-by=/usr/share/keyrings/ros.gpg] https://mirrors.hust.edu.cn/ros/ubuntu $(lsb_release -sc) main
EOF
```

3. 刷新软件源缓存`sudo apt update`,安装所需的 ROS 发行版。

## 引用

1. [中科大镜像源使用帮助](https://mirrors.ustc.edu.cn/help/ros.html)
30 changes: 30 additions & 0 deletions docs/ros2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: ROS2 镜像使用帮助
sidebar_label: ROS2
---

## ROS2 介绍

ROS2(Robot Operating System 2)是ROS(机器人操作系统,Robot Operating System)的下一代版本,它是一个用于机器人开发的开源平台,提供了一系列工具和库,用于构建机器人应用程序。其托管在 [http://packages.ros.org/ros2](http://packages.ros.org/ros2) 上。

## ROS2 软件源替换

1. 导入 key:

```bash
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
```

2. 将软件源添加至系统:

```bash
sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null << EOF
deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://mirrors.hust.edu.cn/ros2/ubuntu $(lsb_release -sc) main
EOF
```

3. 刷新软件源缓存`sudo apt update`,安装所需的 ROS2 发行版。

## 引用

1. [中科大镜像源使用帮助](https://mirrors.ustc.edu.cn/help/ros2.html)
2 changes: 2 additions & 0 deletions meta.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const mirrors: MirrorMeta[] = [
{ id: 'alpine', description: 'Alpine Linux 软件仓库', supportCli: true },
{ id: 'blackarch', description: 'BlackArch Linux 软件仓库', supportCli: true },
{ id: 'archlinuxcn', description: 'Arch Linux 中文社区软件仓库', supportCli: true },
{ id: 'ros', description: 'Robot Operating System' },
{ id: 'ros2', description: 'Robot Operating System 2' },
]


Expand Down