Copyright 2016-2019 LAAS-CNRS
Author: Anna Seppala
hpp-affordance-corba implements python bindings for hpp-affordance, and presents a few example files. Please refer to this link for information on hpp-affordance.
- Follow "Binary packages in robotpkg/wip" instructions: http://robotpkg.openrobots.org/robotpkg-wip.html
2
apt install robotpkg-hpp-affordance-corba
To install hpp-affordance-corba:
-
install HPP - see https://github.com/humanoid-path-planner/hpp-doc
-
install HPP-AFFORDANCE - see https://github.com/humanoid-path-planner/hpp-affordance
-
Clone the HPP-AFFORDANCE-CORBA repository onto your local computer and update the submodule:
git clone --recursive https://github.com/humanoid-path-planner/hpp-affordance-corba.git cd $HPP_AFFORDANCE_CORBA_DIR/
-
Use CMake to install the HPP-AFFORDANCE-CORBA library. For instance:
mkdir build cd build cmake .. make install
-
Optionally, install the HPP-RBPRM and HPP-RBPRM-CORBA packages that implement an efficient acyclic contact planner, and its python bindings, respectively. (Make sure you are on branch "affordance" in both repositories!) - see https://github.com/humanoid-path-planner/hpp-rbprm, and https://github.com/humanoid-path-planner/hpp-rbprm-corba
Open $DEVEL_DIR/install/share/doc/hpp-affordance-corba/doxygen-html/index.html in a web browser and you will have access to the code documentation. If you are using ipython, the documentation of the methods implemented is also directly available in a python console.
To see how to use the CORBA server and the affordance functionality, please refer to the python scripts provided within the 'tests' directory of this package. These python scripts use the HyQ model found in the 'data' directory (retrieved from https://github.com/iit-DLSLab/hyq-description).
To run the test files, launch the hpp-affordance-server executable, then open a python terminal, and copy one of the test scripts (e.g. test-affordance-description.py) into the python terminal bit by bit. This allows you to see the procedure in the viewer as you go through the comments in the example script.