iCub-main
|
Example of grasping module based upon actionPrimitives library.
Example of grasping module based upon actionPrimitives library.
Copyright (C) 2010 RobotCub Consortium
Author: Ugo Pattacini
CopyPolicy: Released under the terms of the GNU GPL v2.0.
An example module that makes use of actionPrimitives library in order to execute a sequence of simple actions: reaches for an object, tries to grasp it, then lifts it and finally releases it.
1) A bottle containing the 3-d position of the object to grasp is received (let be x1).
2) To this 3-d point a systematic offset is added in order to compensate for the uncalibrated kinematics of the arm (let be x2=x1+systematic_offset).
3) The robot reaches for a position located on top of the object with the specified orientation (let be reach(x2+grasp_disp,o)).
4) The robot grasps the object (let be reach(x2,o)).
5) The hand is closed.
6) The robot lifts the object to a specified location (let be reach(x2+lift_displacement,o)).
7) The robot releases the grasped object.
8) The robot steers the arm to home position.
–name name
The robot interface is assumed to be operative.
Aside from the internal ports created by actionPrimitives library, we also have:
None.
None.
–grasp_model_type type
–grasp_model_file file
–hand_sequences_file file
–from file
The configuration file passed through the option --from should look like as follows:
Windows, Linux