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
- Install dependencies
Are you the root user?
sudo apt install -y curl gnupg2 ca-certificates
- 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
- 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
- Refresh the software source cache
Are you the root user?
sudo apt update -y
- Install the required ROS distribution