Skip to content

gripper_result

Runs in the client Sends nothing to the robot

Return the outcome of this client's last settled gripper command. It reads what the robot reported when the command settled, and asks the robot nothing. In sync mode that is when the gripper call returned; otherwise after a wait such as wait_gripper_move_complete() or wait_idle(). A gripper command that failed leaves it unchanged: it then still returns the outcome of the one before. Gripper commands of other clients do not count.

Syntax

robot.gripper_result()

Arguments

None.

Returns

GripperResult | None

A GripperResult with the code and the command's id, or None when no gripper command of this client has settled yet.

Examples

robot.close_gripper()
robot.wait_gripper_move_complete()
robot.gripper_result()

See also