mirror of
https://github.com/ethz-asl/programming_examples.git
synced 2026-12-04 10:18:46 +00:00
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%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| boost_python_exports | ||
| .gitignore | ||
| dependencies.rosinstall | ||
| README.md | ||
This package contains code snippets for everday tasks and demonstrates the usage of some useful c++ tools.
Install ROS hydro
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.