#1 安装
Ubuntu 16 & Ubuntu 18
Ros2 Dashing
---
Ubuntu 20
Ros2 Foxy
- 下载密钥
sudo apt install curl gnupg2 -y
// 二选一
// 国内
curl -s https://gitee.com/haha-web/rosdistro/raw/master/ros.asc | sudo apt-key add -
// 国外
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
- 修改镜像源
sudo sh -c 'echo "deb https://mirrors.ustc.edu.cn/ros2/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt update
- 安装
// Ubuntu 16 & Ubuntu 18
sudo apt install ros-dashing-desktop -y
// Ubuntu 20
sudo apt install ros-foxy-desktop -y
Ros2相关工具
sudo apt install python3-pip -y
sudo apt install python3-argcomplete -y
sudo apt install python3-colcon-common-extensions -y
sudo apt install python3-vcstool -y
相关文档
https://docs.ros.org/en/dashing
https://docs.ros.org/en/foxy
https://design.ros2.org