Read-only mirror of https://github.com/ethz-asl/programming_examples — ETHZ ASL. Issues & pull requests at the source.
  • C++ 82.8%
  • CMake 10.9%
  • Python 6.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hannes Sommer 79f1c5fc00 Merge pull request #3 from ethz-asl/feature/useConstPropertyTree
Feature/use const property tree
2016-12-14 17:37:36 +01:00
boost_python_exports Used ConstPropertyTree instead 2016-12-14 14:45:36 +01:00
.gitignore Updated .gitignore 2014-08-26 15:34:41 +02:00
dependencies.rosinstall Added dependencies.rosinstall 2016-12-05 12:01:18 +01:00
README.md Update README.md 2014-12-01 09:07:08 +01:00

This package contains code snippets for everday tasks and demonstrates the usage of some useful c++ tools.

Install ROS hydro

How to install ROS

Install pre-requisites

sudo apt-get install python-pip
sudo pip install catkin-tools 
sudo apt-get install python-rosinstall

Create catkin workspace managed by rosws

cd ~
mkdir -p catkin_ws/src
cd ~/catkin_ws/src
rosws init
// Add repositories to workspace
rosws set Schweizer-Messer https://github.com/ethz-asl/Schweizer-Messer --git
// ... and more
rosws update
catkin config

Add setup.bash to your bashrc:

echo 'source ~/catkin_ws/devel/setup.bash' >> ~/.bashrc

Building packages

You have to be in your catkin workspace to execute the catkin build command:

cd ~/catkin_ws
catkin build <package_name>

You can set up a convenient alias in your .basrc to avoid the required directory change. Add this line to your .bashrc:

alias catkin_build='catkin build --workspace /path/to/your/catkin_ws'

Useful catkin build options

catkin build --force-cmake <package_name> -DCMAKE_BUILD_TYPE=Release

Compile and execute the unit test

catkin build --catkin-make-args run_tests

Student templates

Student templates for the presentation and the latex report can be found here.

Evaluation criteria

Please ask your supervisor for the evaluation criteria of your work.