ABB Pickit interface¶
This article documents the interface of the ABB Pickit integration. For installation instructions, please refer to the ABB installation and setup article.
Below you find an overview of the functions for communicating with Pickit. For more details on these functions, refer to The Pickit interface.
When there is an unexpected failure while calling any of the Pickit functions, the program is terminated and a descriptive message is displayed in the robot pendant.
The following functions send system-level commands to Pickit.
Check if Pickit is set to Robot mode.
(bool) – True if Pickit is in Robot mode.
Cleanly shut down the Pickit processor.
These functions are used to trigger detections and collect the results.
Trigger an object detection on the camera image that was previously captured via
pickit_capture_image()(or another command triggering a detection).
Trigger a Pickit object detection using the currently active setup and product Configuration.
Request the next detected object.
Repeatedly trigger a Pickit object detection as long as nothing is found and the ROI is not empty, up to a number of attempts.
retries (num) – Max number of attempts.
Request the pick point ID and pick point offset of the last requested object. Some Pickit detection results are updated in the background.
Returns true and updates results, if the Pickit detection is finished. Usually used inside a Wait command. It should always be the next Pickit function after a
pickit_process_image()request. Some Pickit detection results are updated in the background.
(bool) – True if the detection completed.
These functions are used to change the active product and setup configuration.
Load the specified setup and product Configuration.
setup (num) – ID of the desired setup configuration.
product (num) – ID of the desired product configuration.
diameter (num) – Cylinder diameter [mm].
length (num) – Cylinder length [mm].
These functions are used to perform the robot-camera calibration.
Configure the next robot-camera calibration. If called with no arguments, the currently defined settings are used.
Trigger a detection of the robot-camera calibration plate.
This function is used to save data about a running application. This is specially useful when ramping up in production, as the stored data allows detecting eventual issues in the application.
Pickit helper functions¶
The following functions don’t communicate with Pickit.
They use the information received in the most recent detection results, and are intended to make your robot program more readable.
The return values of these functions get updated when calling
See ABB example picking program on how they are typically implemented in a robot program.
Check if detection results are available.
(bool) – True if a valid object was detected.
Check whether or not the pose is reachable with the specified tool.
pose (robtarget) – Pose to be checked.
tool (tooldata) – Tool to be reach the pose.
(bool) – True if the pose is reachable.
Check if no pickable objects were detected (while the ROI was not empty).
(bool) – True if no valid object were detected and the ROI is not empty.
Check if no image was captured by Pickit. If so, verify your camera connection.
(bool) – True, if no image could be captured by the camera.
Pickit output functions¶
The following functions are used to get the output values of Pickit. The output values are updated after using the Pickit function pickit_has_response or pickit_get_results.
(robtarget) – Pick pose of the detected object expressed with respect to the robot base frame.
(pose) – Pick point offset of the last requested object.
For a Teach detection, ID type of the detected object.
In a Bags detection, a value holding information about the bag pattern and the detected layer orientation.
(num) – Object type.
(num) – ID of the pick point that was selected for the detected object.
Get the amount of time that has passed between the capturing of the camera image and the moment the object information is sent to the robot, in seconds.
(num) – object age [s].
: Length or diameter (mm). : Width or diameter (mm). : Height (mm).
(pose) – Object dimensions.
(num) – ID of the selected pick point’s reference pick point.
(num) – Number of remaining objects that can be sent to the robot using
More detailed information about these outputs can be found here.
Using pick offset in a robot program¶
When using multiple pick points or flexible pick orientations, it can be useful to compensate the pick offset from a reference/nominal pick point in order to correct a drop-off point. For this, an additional function is provided, pickit_apply_offset(robtarget ..). In the example below the robot will move to the offset point relative to the fixed point DropOff.
MoveJ pickit_apply_offset(DropOff), v500, fine, tool0;