Skip to content
Péter Fankhauser edited this page Nov 3, 2014 · 7 revisions

Programming Under Ubuntu

Follow these instructions to setup the programming environment on your computer. We'll be working with Ubuntu 14.04 LTS (Trusty Tahr) and ROS Indigo (if required).

In general, a collection for programming tools and instructions can be found here.

Ubuntu

Connect to IDES

Here we describe how to install software from IDES (e.g. MATLAB). In your home folder:

sudo apt-get install cifs-utils mkdir mount_ides

Change UBUNTU_USERNAME and ETHZ_USERNAME and execute the following command:

sudo mount -t cifs -o 'username=ETHZ_USERNAME,uid=UBUNTU_USERNAME,gid=UBUNTU_USERNAME,domain=stud-ides.ethz.ch' '//stud-ides.ethz.ch/ETHZ_USERNAME' ~/mount_ides

ROS

Follow these instructions to install ROS Indigo and setup your catkin workspace.

These tutorials can help to familiarize yourself with ROS. Additionally, nice and easy to understand tutorials for beginners can be found here:

Eclipse

Run this script to install Eclipse.

Code Formatting

Download and import the ASL C++ style sheet for Eclipse as described here. Familiarize yourself with the ASL coding guidelines.

Creating ROS Catkin Projects in Eclipse

Follow these description to setup your Catkin projects in Eclipse.

Enable Auto-Completion with C++11

If you are using Eclipse with non-ROS projects, you can enable C++11 auto-completion as follows:

Go to Project Properties -> C/C++ General -> Preprocessor Include Paths, Macros -> [Providers] tab -> Built-in Compiler Settings provider (toolchain dependent). Click on Workspace Settings link which gets you to Settings property page, select [Discovery] tab and your provider again. There is Command to get compiler specs, add -std=c++11 in there.

Fixing Eclipse Menu Problem

If you experience in Eclipse that the menu lists are not visible, add the following lines to ~/.bashrc: export UBUNTU_MENUPROXY=0