Kawasaki XYZ-OAT format¶
The pose format that is used by Kawasaki robots consists of a position XYZ in millimeters and an orientation OAT that is given by three angles in degrees, with O rotating around z axis, A rotating around the rotated y axis and T rotating around the rotated z axis. The rotation convention is z-y′-z″ (i.e. z-y-z) and computed by r_z(O) r_y(A) r_z(T).
Conversion from Kawasaki-OAT to quaternion¶
The conversion from the OAT angles in degrees to a quaternion q=(\begin{array}{cccc}x & y & z & w\end{array}) can be done by first converting all angles to radians
and then calculating the quaternion with
Conversion from quaternion to Kawasaki-OAT¶
The conversion from a quaternion q=(\begin{array}{cccc}x & y & z & w\end{array}) with ||q||=1 to the OAT angles in degrees can be done as follows.
If x = 0 and y = 0 the conversion is
If z = 0 and w = 0 the conversion is
In all other cases the conversion is