Universal Robots pose format¶
The pose format that is used by Universal Robots consists of a position
in millimeters and an orientation in angle-axis format
. The rotation angle
in radians is the length of the rotation axis
.
is called a rotation vector.
Conversion from angle-axis format to quaternion¶
The conversion from a rotation vector to a quaternion
can be done as
follows.
We first recover the angle in radians from the rotation vector
by
If , then the quaternion is
,
otherwise it is
Conversion from quaternion to angle-axis format¶
The conversion from a quaternion with
to a rotation vector in angle-axis form
can be done as follows.
We first recover the angle in radians from the quaternion by
If , then the rotation vector is
,
otherwise it is