Writing /var/lib/dokuwiki/data/meta/tutorials/installing_orocos_kdl_in_debian.meta failed
tutorials:installing_orocos_kdl_in_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:installing_orocos_kdl_in_debian [2018/10/01 18:56] – [Installing Master] dgarcia | tutorials:installing_orocos_kdl_in_debian [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Orocos KDL in Debian ====== | ====== Installing Orocos KDL in Debian ====== | ||
+ | |||
+ | **WARNING**: | ||
* Set a xstow environment [[using_xstow_for_local_installations|Using xstow for local installations]] | * Set a xstow environment [[using_xstow_for_local_installations|Using xstow for local installations]] | ||
+ | * Orocos-KDL needs **gcc 8** to compile. Please make sure that you have **gcc 8**. | ||
* Download configure and compile arcoslab version of orocos-kdl: | * Download configure and compile arcoslab version of orocos-kdl: | ||
cd ~/local/src | cd ~/local/src | ||
- | git clone https://github.com/ | + | git clone https://gitlab.com/ |
cd orocos-kdl | cd orocos-kdl | ||
make install-python | make install-python | ||
| | ||
- | ===== Installing Master ===== | ||
- | It is also possible to install orocos-kdl from master and have access to their latest improvements. | ||
+ | ====== Interactive ====== | ||
- | cd ~/ | + | This is a tutorial for running some interactive examples. Do not follow this if you just want to install |
- | git clone git@gitlab.com: | + | |
- | cd orocos_kinematics_dynamics/ | + | |
- | mkdir build | + | |
- | cd build | + | |
- | ccmake .. | + | |
- | + | ||
- | This will configure the Cmake environment | + | |
- | Once generated: | + | If you want to play with kinematic chains and visualize them in real time, do the following: |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | | |
- | Now we need to install the python bidings. | + | * open another shell: |
- | | + | <code bash> |
- | mkdir build | + | cd local/src/pyrovito/examples |
- | cd build | + | ipython |
- | ccmake .. | + | </code> |
- | + | ||
- | Select ~/local/DIR/py_kdl as the installation directory. You should make sure that orocos is using the correct python interpreter, | + | |
- | make | + | once you are in IPython: |
- | make install | + | |
- | cd ~/ | + | <code python> |
- | xstow py_kdl | + | import numpy as np |
- | + | import iexample as ix | |
- | Now, for a very Quick test, open a python interpreter and import PyKDL, if you should not receive error messages. | + | import json |
+ | |||
+ | # load the kinematic configurations | ||
+ | with open(" | ||
+ | conf = json.load(conf_file) | ||
+ | kuka = conf[" | ||
+ | simple = conf[" | ||
+ | |||
+ | # start the handler | ||
+ | handler = ix.InteractiveHandler() | ||
+ | |||
+ | # Create | ||
+ | box = handler.create_object(" | ||
+ | |||
+ | # Create the kuka arm | ||
+ | arm = handler.create_chain(kuka) | ||
+ | |||
+ | box.update_twist(np.array([0.0, | ||
- | ipython | ||
- | import PyKDL | ||
+ | </ |
tutorials/installing_orocos_kdl_in_debian.1538420196.txt.gz · Last modified: 2022/09/20 00:08 (external edit)