ubuntu 20.04 gazebo
时间: 2023-10-11 21:14:23 浏览: 153
引用中提到了在Ubuntu 20.04上安装Gazebo 11的步骤。首先,你需要卸载旧版本的Gazebo并清理缓存和安装包。然后,你需要设置镜像和安装Gazebo 11及其相关的开发库。具体步骤如下:
1. 卸载旧版本的Gazebo及其相关插件:
```
sudo apt remove gazebo9 gazebo9-common gazebo9-plugin-base libgazebo9:amd64 libgazebo9-dev:amd64 ros-melodic-gazebo-*
```
2. 清理缓存和安装包:
```
sudo apt autoremove
sudo apt autoclean
```
3. 设置镜像:
```
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
```
4. 设置Key:
```
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
```
5. 更新软件列表:
```
sudo apt update
```
6. 安装Gazebo 11及其相关的开发库:
```
sudo apt install gazebo11
sudo apt install libgazebo11-dev
```
回答完问题后的
阅读全文