#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
本文档提供了在Ubuntu 16、18及20上安装ROS2 Dashing和Foxy的详细步骤。首先,通过添加密钥和修改镜像源来准备系统。然后,分别使用`sudo apt install`命令安装对应版本的ROS2桌面版。此外,还介绍了安装ROS2相关工具,如Python包和VCS工具。最后,提供了官方文档链接以供参考。
3765

被折叠的 条评论
为什么被折叠?



