3.5. Mechanical Gripper¶
-
gripper_ctrl.
open
()¶ Description: Controls the opening of the mechanical gripper 参数: void – None 返回: 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 参数: void – None 返回: 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 参数: void – None 返回: 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 参数: level (int) – The force level of the mechanical gripper, whose range is [1:4]. The default is 1. 返回: 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 参数: void – None 返回: The clamping state of the mechanical gripper. If the mechanical gripper is clamped, true is returned, otherwise false is returned. 返回类型: 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 参数: void – None 返回: The open state of the mechanical gripper. If the mechanical gripper is fully opened, true is returned, otherwise false is returned. 返回类型: bool Example: ret = gripper_ctrl.is_open()
Example description: Obtain the open state of the mechanical gripper
提示
For the description of the module, refer to Mechanical Arm and Mechanical Gripper.