ubuntu14.04 install gazebo

来源:互联网 发布:dnf画质优化 编辑:程序博客网 时间:2024/06/03 16:20

  1. 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-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'

    You can check to see if the file was written correctly. For example, in Ubuntu Trusty, you can type:

    $ cat /etc/apt/sources.list.d/gazebo-stable.listdeb http://packages.osrfoundation.org/gazebo/ubuntu-stable trusty main
  1. Setup keys

    wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
  2. Install Gazebo.

    First update the debian database:

    sudo apt-get update

    Hint: make sure the apt-get update process ends without any errors, the console output ends in Done similar to below:

    $ sudo apt-get update...Hit http://ppa.launchpad.net trusty/main Translation-enIgn http://us.archive.ubuntu.com trusty/main Translation-en_USIgn http://us.archive.ubuntu.com trusty/multiverse Translation-en_USIgn http://us.archive.ubuntu.com trusty/restricted Translation-en_USIgn http://us.archive.ubuntu.com trusty/universe Translation-en_USReading package lists... Done

    Next install gazebo-8 by:

    sudo apt-get install ros-indigo-gazebo7-ros-pkgs# For developers that work on top of Gazebo, one extra packagesudo apt-get install libgazebo8-dev

  3. 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
sudo apt-get install ros-indigo-gazebo-ros-pkgs ros-indigo-gazebo-ros-control