Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

ethz-asl/programming_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A place for programming examples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published