gazebo在14.04 indigo版本为2。
Version不可用,需要升级操作见
https://blog.csdn.net/abcwoabcwo/article/details/85258324
简单步骤如下: 1使用如下命令进行卸载: sudo apt-get remove ros-indigo-desktop-full
2添加源 sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' 3
查看是否添加成功
cat /etc/apt/sources.list.d/gazebo-stable.list
如果输出如下,则说明添加源成功。
deb http://packages.osrfoundation.org/gazebo/ubuntu-stable trusty main
4下载并添加秘钥
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
5更新源
sudo apt-get update 6选择版本下载
sudo apt-get install gazebo7
7安装完成后,验证 gazebo --version 8重新安装ROS
sudo apt-get install ros-indigo-desktop
9安装ros与gazebo接口库
sudo apt-get install ros-indigo-gazebo7-*
安装完之后,运行gazebo