Grab part¶
Grab the product from the crate. The robot is moved to the transit pose of the crate used, where it waits for the results of the Gripping motion search. If a suitable gripping path is found (shorter paths are preferred), the part is gripped.
Hint
For a higher throughput speed, the point cloud should be recorded as early as possible and the grab planning should be started with the task Start handle search.
If required, this task blocks until a valid handle is found. If the timeout is exceeded, the task ends the process in an error state (for more information on the timeout parameter, see section pick_search.yaml).
Further information on grabbing parts can be found in the task Start handle search.
Hint
To store the part again, you must use the task Discard part!
Variablen¶
Name |
Typ |
Description |
|---|---|---|
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’.