![UFactory xArm 5 User Manual Download Page 150](http://html1.mh-extra.com/html/ufactory/xarm-5/xarm-5_user-manual_3238156150.webp)
150
【
move(arc) line X() Y()Z() Roll() Pitch() Yaw() Radius() Wait(true/false)
【
move
】
【
edit
】】
: Indicates the Cartesian coordinate value of the linear motion and the TCP
rotation angle in mm and °.
Note: Cartesian motion is TCP straight-line motion.
Python example:
arm.set_tcp_jerk(2000)
arm.set_position(x=205.0, y=100.0, z=110.4, roll=180.0, pitch=0.5, yaw=0.0, speed=100, radius=-1.0, wait=True)
arm.set_position(x=205.0, y=120.0, z=110.4, roll=180.0, pitch=0.5, yaw=0.0, speed=100, radius=-1.0, wait=True)
arm.set_position(x=205.0, y=140.0, z=110.4, roll=180.0, pitch=0.5, yaw=0.0, speed=100, radius=-1.0, wait=True)
arm.reset()
The interface set_position() is described in Table 2.2:
Table 2.2 set_position description
set_position
Description
Sets the Cartesian coordinate value of the linear motion
Parameter
x
coordinate x, (unit: mm)
y
coordinate y, (unit: mm)
z
coordinate z, (unit: mm)
roll
attitude roll
(
default unit is rad
)
:
Unit: if is_radian = True, the unit is rad; if is_radian = False, the unit is °;
pitch
attitude pitch (default unit is rad):
Unit: if is_radian = True, the unit is rad; if is_radian = False, the unit is °;
yaw
attitude yaw (default unit is rad):
Unit: if is_radian = True, the unit is rad; if is_radian = False, the unit is °);
radius
radius: if it is a linear motion, radius <0 / radius = None;
if it is arc linear motion(blended), radius> 0;
is_radian
if is_radian = True, the unit of roll / pitch / yaw is rad;
if is_radian = False, the unit of roll / pitch / yaw is °;
speed
TCP motion speed (mm / s, rad / s);
mvacc
TCP motion acceleration (mm / s
2
, rad / s
2
);
mvtime
0, reserved;
relative
if relative = True, it is relative motion; if relative = True, it is not relative motion;
wait
if wait = True, wait for the current commands to finish before sending the next
commands;
if wait = False, send the next commands directly;
Note: If it is xArm5, roll and pitch must be set to roll = ± 180 ° and pitch = 0 °.