Skip to content

Setting Up a Development Machine

Kathryn Baldauf edited this page Mar 29, 2018 · 3 revisions

Minimum requirements: ROS Kinetic, Ubuntu 16.04 LTS. You'll also need to ensure that your graphics card supports Gazebo and OpenGL. Be careful while running these instructions on a machine on which you need/intend to use a different version of ROS or Gazebo.

System Setup

You need to install ROS and Gazebo on the system side for the machine. The following instructions will need superuser privileges. You do not need to run these instructions on a lab machine.

Install Ubuntu

We've found that running Gazebo under a virtual machine generally performs pretty poorly. We recommend you dual-boot.

Download from: http://releases.ubuntu.com/16.04/ubuntu-16.04.4-desktop-amd64.iso.torrent or http://www.ubuntu.com/download/alternative-downloads

Install ROS Kinetic

Follow the official documentation.

Install Dependencies

Now install all the necessary packages:

sudo apt-get install git ros-kinetic-desktop-full python-rosinstall ros-kinetic-roslint ros-kinetic-cmake-modules gringo flex ros-kinetic-sound-play ros-kinetic-control-toolbox ros-kinetic-eband-local-planner ros-kinetic-map-server ros-kinetic-move-base-msgs ros-kinetic-smart-battery-msgs ros-kinetic-segway-rmp
sudo rosdep init
rosdep update

It is OK to see the error below while running rosdep init, it means that rosdep has already been initialized; run rosdep update instead.

ERROR: default sources list file already exists:
        /etc/ros/rosdep/sources.list.d/20-default.list
Please delete if you wish to re-initialize
Testing Gazebo

The ROS installation should pull in the latest version of Gazebo as well. Test the gazebo installation:

source /usr/share/gazebo/setup.sh
gazebo
Testing ROS

If you would like to test ROS, proceed to: Making a BWI Workspace

Dependency Error Resolution

When running code, CMake might through dependency errors. If this happens, what you generally have to do is simply install the dependency. Suppose you're missing a package called . To install it, you would run:

sudo apt-get install ros-kinetic-**<package>**

If the package name has any underscores, replace those with hyphens. i.e. package_name would be installed by running:

sudo apt-get install **ros-kinetic-package-name**

Not all packages can be installed this way. As a general rule, if a package can be located in the ROS wiki (http://wiki.ros.org/) then it can be installed using this method.

Clone this wiki locally