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 [2019/06/15 04:38] – [Installing Orocos KDL in Debian] dgarcia | tutorials:installing_orocos_kdl_in_debian [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* 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: | ||
Line 11: | Line 12: | ||
make install-python | make install-python | ||
| | ||
- | ====== Installing inside a Python Virtual Environment ====== | ||
- | **WARNING!** This is still work in progress | ||
- | First install the dependencies for making a virtualenv | ||
- | <code bash> | ||
- | sudo apt install python-virtualenv | ||
- | </ | ||
- | Now create a virtual environment and activate it. Please note that we are using the variable '' | ||
- | export PYTHON_VENVS=${HOME} | + | ====== Interactive ====== |
- | The above is just an example. You should set '' | + | This is a tutorial for running some interactive examples. Do not follow this if you just want to install orocos-kdl. |
- | + | ||
- | Also note that the environment variable '' | + | |
- | + | ||
- | <code bash> | + | |
- | cd PYTHON_VENV | + | |
- | virtualenv --python=python2 arcos | + | |
- | cd arcos | + | |
- | source bin/ | + | |
- | mkdir src | + | |
- | mkdir DIR | + | |
- | export PREFIX=${VIRTUAL_ENV}/ | + | |
- | cd src | + | |
- | git clone https:// | + | |
- | cd orocos-kdl | + | |
- | make install-python | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | + | ||
- | ====== Installing from Master ====== | + | |
- | + | ||
- | It is also possible | + | |
- | + | ||
- | + | ||
- | cd ~/ | + | |
- | git clone https:// | + | |
- | cd orocos_kinematics_dynamics/ | + | |
- | mkdir build | + | |
- | cd build | + | |
- | ccmake .. | + | |
- | + | ||
- | This will configure the Cmake environment to build orocos-kdl. Select ~/ | + | |
- | + | ||
- | Once generated: | + | |
- | + | ||
- | make -j8 | + | |
- | make install | + | |
- | cd ~/ | + | |
- | xstow orocos_kdl | + | |
- | + | ||
- | Now we need to install the python bidings. | + | |
- | + | ||
- | cd ~/ | + | |
- | mkdir build | + | |
- | cd build | + | |
- | ccmake .. | + | |
- | + | ||
- | Select ~/ | + | |
- | + | ||
- | make | + | |
- | make install | + | |
- | cd ~/ | + | |
- | xstow py_kdl | + | |
- | + | ||
- | Now, for a very Quick test, open a python interpreter and import PyKDL, if you should not receive error messages. | + | |
- | + | ||
- | ipython | + | |
- | import PyKDL | + | |
- | + | ||
- | + | ||
- | ====== Interactive ====== | + | |
If you want to play with kinematic chains and visualize them in real time, do the following: | If you want to play with kinematic chains and visualize them in real time, do the following: |
tutorials/installing_orocos_kdl_in_debian.1560573533.txt.gz · Last modified: 2022/09/20 00:08 (external edit)