wget -O /tmp/gazebo4_install.sh http://osrf-distributions.s3.amazonaws.com/gazebo/gazebo4_install.sh; sudo sh /tmp/gazebo4_install.sh
Setup your computer to accept software from packages.osrfoundation.org.
Note: there is a list of available mirrors for this repository which could improve the download speed.
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-latest.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update sudo apt-get install gazebo4 # For developers that works on top of Gazebo, one extra package sudo apt-get install libgazebo4-dev
Check your installation
Note The first time
gazebo is executed requires the download of some models and it could take some time, please be patient.
Gazebo ships different Ubuntu debian packages following the official packaging guidelines. This changes brings an option about how to install gazebo:
Gazebo is able to use different physics engines to perform the simulation.
ODE is the one used by default, but support is in also in place for Bullet and Simbody using Ubuntu packages. For those users that wan to try DART, a from source installation of gazebo is needed, so please do not use the .deb packages.
Please follow the Connect to ROS tutorials for using Gazebo with ROS.