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.
Variablen¶
Name |
Typ |
Description |
|---|---|---|
Product |
Product, Integer |
Product or product ID for identifying the pick search to be used (optional) |
Box |
Box, Integer |
Box or box ID for identifying the pick search to be used (optional) |
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. |
is the grasp experimental? |
Bool |
Output variable: is set to ‘true’ if the executed grip was an experimental grip |
Product handled |
String |
Output variable: the name of the product that was grabbed |
Handle transformation |
String |
Output variable: The transformation from the gripped part to the TCP (contains the 180 degree flip from the part to the TCP coordinate system) |
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’.