-
Notifications
You must be signed in to change notification settings - Fork 42
Programming
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.
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
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:
- ROS C++ Hello World (The Simplest ROS Tutorial)
- A Gentle Introduction to Catkin
- Building Modular ROS Packages
Run this script to install Eclipse.
Download and import the ASL C++ style sheet for Eclipse as described here. Familiarize yourself with the ASL coding guidelines.
Follow these description to setup your Catkin projects in Eclipse.
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.
If you experience in Eclipse that the menu lists are not visible, add the following lines to ~/.bashrc
:
export UBUNTU_MENUPROXY=0