hpp_tutorial  4.14.0
Tutorial for humanoid path planner platform.
Tutorial 3

To run the tutorial, open a terminal and open 3 tabs by typing CTRL+SHIFT+T twice. When the terminal is selected, you can select a tab by typing ALT-[1|2|3].

Starting

hppcorbaserver

In the first tab, type

hppcorbaserver

See package hpp-manipulation-corba for details.

Controlling via a python terminal

In the second tab, type

cd script
python -i tutorial_3.py

Script script/tutorial_3.py defines a manipulation planning problem.

Starting gepetto-gui

In the third tab, type

gepetto-gui

A window opens and is ready to display the scene containing the robot. The robot, environment and object will appear later.

Note that gepetto-gui and hppcorbaserver executables are completely independent.

Controlling via a python terminal

To display the scene, create a client to the viewer in the python terminal.

>>> v = vf.createViewer ()

The robot and environment should appear in the viewer. If the viewer window is black, select the window and hit space.

To solve the problem, type

>>> ps.solve ()

and to display the (non optimized) solution path, type

>>> pp = PathPlayer (v)
>>> pp (0)

Optimizing the solution path

To optimize the solution path, select a path optimizer:

>>> ps.addPathOptimizer('Graph-RandomShortcut')
>>> ps.optimizePath(0)

To display the solution:

>>> pp(1)