Ubuntu20.04安装ROS
时间: 2023-10-21 12:05:39 浏览: 68
ubuntu20.04安装ros
1. 更新系统软件包列表
```
sudo apt update
```
2. 添加ROS安装源
```
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list'
```
3. 添加ROS密钥
```
sudo apt install curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
```
4. 安装ROS
```
sudo apt update
sudo apt install ros-noetic-desktop-full
```
5. 初始化ROS
```
sudo rosdep init
rosdep update
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
```
6. 安装ROS工具包
```
sudo apt install python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
```
7. 测试ROS安装是否成功
```
roscore
```
如果没有报错则表示ROS安装成功。
阅读全文