Skip to main content

ROS2 Image Usage Guide

ROS2 Profile

ROS2 (Robot Operating System 2) is the next - generation version of ROS (Robot Operating System). It is an open - source platform for robot development, providing a series of tools and libraries for building robot applications. It is hosted at http://packages.ros.org/ros2.

ROS2 Software Source Replacement

  1. Install dependencies
Are you the root user?
sudo apt install -y curl gnupg2 ca-certificates
  1. Import key
Are you the root user?
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
  1. Add the software source to the system
Are you the root user?
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] https://mirrors.hust.edu.cn/ros2/ubuntu $(lsb_release -sc) main
EOF
  1. Refresh the software source cache
Are you the root user?
sudo apt update -y
  1. Install the required ROS distribution

Quote

  1. USTC Mirror Source Usage Guide
Choose your prefered domain
mirrors.hust.edu.cn
This domain is Dual Stack
Enable HTTPS