Hallo,
I have written a script to move the Robot relativ to the Base feature (see below).
But it works only with offsetz in X,Y,Z. If I want to move relativ in Rx,Ry,Rz the movement
isn`t what I expect.
What is wrong in my script?
Hi Franz…
The UR system uses something called “Axis Angle”, This means that the rotations is not really intuitive, (not that rotations in 3 dimensions really is anyway)…
I would suggest you try using the rpy2rotvec(rpy_vector), which lets you use roll-picth-yaw values instead, which people tent to find more intuitive
The second thing is that you cannot simply add rotational offsets (one rason is because rotations in 3D are not commutative meaning ab != ba ) it might work in simple cases, but not necessarily always.
Therefore the most commen thing is to use the script function pose_trans ex: Pose_offest = pose_trans(base_offset , pose) instead.
or if you need it in the tool frame Pose_offest = pose_trans(pose , offset_tool).