3.5. Mechanical Gripper¶
-
gripper_ctrl.open()¶ Description: Controls the opening of the mechanical gripper Parameters: void – None Returns: None Example: gripper_ctrl.open()Example description: Control the opening of the mechanical gripper
-
gripper_ctrl.close()¶ Description: Controls the closing of the mechanical gripper Parameters: void – None Returns: None Example: gripper_ctrl.close()Example description: Control the closing of the mechanical gripper
-
gripper_ctrl.stop()¶ Description: Controls the stopping of the mechanical gripper Parameters: void – None Returns: None Example: gripper_ctrl.stop()Example description: Control the stopping of the mechanical gripper
-
gripper_ctrl.update_power_level(level)¶ Description: Sets the force level of the gripper Parameters: level (int) – The force level of the mechanical gripper, whose range is [1:4]. The default is 1. Returns: None Example: gripper_ctrl.update_power_level(1)Example description: Set the force level of the gripper to 1
-
gripper_ctrl.is_closed()¶ Description: Obtains the clamping state of the mechanical gripper Parameters: void – None Returns: The clamping state of the mechanical gripper. If the mechanical gripper is clamped, true is returned, otherwise false is returned. Return type: bool Example: ret = gripper_ctrl.is_closed()Example description: Obtain the clamping state of the mechanical gripper
-
gripper_ctrl.is_open()¶ Description: Obtains the open state of the mechanical gripper Parameters: void – None Returns: The open state of the mechanical gripper. If the mechanical gripper is fully opened, true is returned, otherwise false is returned. Return type: bool Example: ret = gripper_ctrl.is_open()Example description: Obtain the open state of the mechanical gripper
Hint
For the description of the module, refer to Mechanical Arm and Mechanical Gripper.