set_gripper_close()
  • 1 Minute to read

set_gripper_close()


Article summary

set_gripper_close()

Closes the gripper on the specified arm with desired pressure and width.

Reference

Arguments

ArgumentsTypeDefault value
armstrName of the arm whose gripper to open.
desired_pressurefloat10.0Desired pressure to close the gripper at.
widthfloat0.0Desired width to set the gap within the gripper to.
callback_finishfunctionNoneFunction to be called once gripper is finished opening.
waitboolFalseIf True, program will wait until gripper is finished being opened before continuing with other code. If False, program will continue running asynchronously.

Callback Finish Arguments

ArgumentType
errorintCode for the type of error encountered (0 if no error).
error_msgstrDetails regarding the error (empty if no error).
handstrName of the arm whose gripper to open
actionstrThe name of the action performed (opening or closing).

Return

None

Exceptions

ExceptionCondition
RayaArmsExceptionException from arms method.
RayaArmsControllerNotReadyArms controller not yet ready.

See the complete list of Raya Exceptions.

Examples

See the Arms Set Gripper Example to see how to open and close the gripper.


Was this article helpful?