Pick object¶
Pick an object from the box. The results of Gripping motion search are awaited, and then the best pick found is executed.
If necessary, this task blocks until a valid pick is found or a timeout occurs during the pick search (more on the timeout parameter in section pick_search.yaml).
Further information on picking parts can be found in the task Start handle search.
Hint
For a higher throughput speed, the point cloud should be captured as early as possible and the pick search should be started with the task Start handle search. Ideally, the Gripping motion search has already found a valid pick when the “Pick object” task is reached. This is the only way the robot can execute a pick directly without delay. Otherwise, it must wait for the calculation.
Hint
To store the part again, you must use the task Discard part!
Move to transit pose¶
There are two different variants for the robot’s behaviour when moving to the transit pose, between which you can choose using an optional input variable. The robot can either always move to the transit pose when this task is executed – regardless of whether a valid pick is available – or only if a valid pick is actually available.
Which of the two variants is more suitable depends heavily on the specific application. If the ‘Pick object’ task has to wait for the pick search, it is usually faster if the robot always moves to the transit pose. Once a valid pick is found, the robot is already in the transit pose directly above the box and can immediately execute the pick.
In certain situations, however, it may be useful for the robot to wait at its previous position for a valid pick and only then move to the transit pose. This is the case, for example, when several boxes are to be checked for picks one after the other. In this case, moving directly to the transit pose would cause the robot to move to each box, even if ultimately there is no pick available. If, on the other hand, the robot waits at its previous position, it can move directly from there to a box with a valid pick, thus saving a few unnecessary movements.
Input-Variables¶
Name |
Typ |
Description |
|---|---|---|
Product |
Product | Integer |
Name or ID of the product searched for. If the field is left empty, the active product is used. Product names are defined in the Product management. |
Box |
Box | Integer |
Name or ID of the box in which the product was searched. If the field is left empty, the active box is used. Box names are defined in the Scene management. |
Move to transit only if pick |
Bool |
Behaviour regarding the movement to the transit pose, see Move to transit pose (optional, default: ‘false’). If ‘false’, the robot always moves to the transit pose. If ‘true’, only in the case of a valid pick. |
Output-Variables¶
Name |
Typ |
Description |
|---|---|---|
is the grasp experimental? |
Bool |
is set to ‘true’ if the executed pick is an experimental pick |
Num. Objects Recognized |
Integer |
Number of Objects found |
Num. Objects Pickable |
Integer |
Num. of Objects for which a valid Pick has been found |
Num. Objects Pickable (Preferred) |
Integer |
Num. of Objects for which a valid Pick of category “Preferred” has been found |
Num. Objects Pickable (Standard) |
Integer |
Num. of Objects for which a valid Pick of category “Standard” has been found |
Num. Objects Pickable (Experimental) |
Integer |
Num. of Objects for which a valid Pick of category “Experimental” has been found |
Object Name |
String |
Name of the Object of the executed Pick |
Object Pose |
Pose |
Pose of the object of the executed Pick |
Collision Type |
Integer |
Collision-Type of the executed Pick (allowed collisions: 2, no collisions: 0) |
Gripper Name |
Gripper | String |
Gripper of the executed Pick (useful for searches with multiple grippers) |
Gripper Id |
Integer |
ID of the Gripper of the executed Pick (useful for searches with multiple grippers) |
Pick Category |
String |
Category of the executed Pick (“Preferred” / “Standard” / “Experimental”) |
Pick Subcategory |
Integer |
Subcategory of the executed Pick (0-10) |
Grasp-Name |
String |
Name of the Grasp of the executed Pick |
Grasp-Offset |
Pose |
Offset of the Grasp of the executed Pick relative to its Object |
Grasp-Tcp-Pose |
Pose |
Tcp-Pose of the grasp-point of the executed Pick |
Grasp Tool0-Pose |
Pose |
Tool0-Pose of the grasp-point of the executed Pick |
Start Tcp-Pose |
Pose |
Tcp-Pose of the start-point of the executed Pick |
Start Tool0-Pose |
Pose |
Tool0-Pose of the start-point of the executed Pick |
Approach Tcp-Pose |
Pose |
Tcp-Pose of the approach-point of the executed Pick |
Approach Tool0-Pose |
Pose |
Tool0-Pose of the approach-point of the executed Pick |
Retract Tcp-Pose |
Pose |
Tcp-Pose of the retract-point of the executed Pick |
Retract Tool0-Pose |
Pose |
Tool0-Pose of the retract-point of the executed Pick |
Final Tcp-Pose |
Pose |
Tcp-Pose of the end-point of the executed Pick |
Final Tool0-Pose |
Pose |
Tool0-Pose of the end-point of the executed Pick |
Total Collision-Depth |
Double |
Total collision-depth of all steps of the executed Pick |
Maximum Collision-Depth |
Double |
Maximum collision-depth of all steps of the executed Pick |
Average Collision-Depth |
Double |
Average collision-depth of all steps of the executed Pick |
Sequence change¶
Name |
Condition |
Remark |
|---|---|---|
Box not found |
Box not found |
If the crate used is not fixed, but is searched for in the point cloud (see Scene management / Obstacle), it is possible that the crate was not found reliably enough. |
No object found |
No object found |
If no reliable detection was determined in the point cloud. |
No handle found |
No handle found |
If no handle is found that can be carried out without collision. |
Handle failed |
Handle failed |
If the handle could not be executed successfully. Example: Handle sensor reports an error or a movement could not be executed successfully. |
Behavior when trying again¶
This task supports the option of retrying execution in the event of an error.
If the handle was not executed successfully (e.g. timeout during movement at reduced speed or similar), the task is executed again as follows.
If the error occurs before a part has been gripped:
Another attempt is made to perform the grip.
If the error occurs during or after a part has been gripped:
The gripper is opened and falls back into the crate.
A movement back to the transition pose is planned and executed.
If the movement to the transition pose was executed successfully, the Mikado program sequence is continued with the sequence change ‘grip failed’.