
59
'''
Note:
# 6. Set the position of the xArm robotic arm
# angle=[20, 0, 0, 0, 0, 0, 0] indicates that joint 1 of the robotic arms is rotated by 20 ° , and
the remaining joints are not rotated.
# speed = 30 indicates that the joint rotation speed is 30°/s
# is_radian = False means the unit is not the radian (rad), but the degree (°)
# wait = True means waiting for the robotic arm to complete the command
'''
xarm.set_servo_angle(angle=[20, 0, 0, 0, 0, 0, 0], speed=30,
is_radian=False, wait=True)
11.6.Alarm ResponseAlarm Handling Mode
When designing the robotic arm motion path with the Python library, if the robotic arm
error mechanism (see Appendix for Alarm information) occurs, then it needs to be cleared
manually. After clearing the error, the robotic arm should be motion enabled. Set the
motion mode to allow normal operation of the robotic arm. Then the path planning of the
robotic arm should be re-adjusted according according to the reported error information.
Python library error clearing steps: (Please check GitHub for details on the following inter-
faces)
a.error clearing:clean_error()
b.Re-enable the robotic arm:motion_enable(true)
c.Set the motion state:set_state(0)
d.Set the position of xArm: set_position(x=300)
11.7.Parameter and Interface Command
For more information on the Python library and the interface command details, please scan
the QR code or click on the link :
https://github.com/xArm-Developer/xArm-Python-SDK