09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EulerZYX Gets Euler angles from orient<br />

Example<br />

EulerZYX (Euler ZYX rotations) is used to get an Euler angle component from an orient<br />

type variable.<br />

VAR num anglex;<br />

VAR num angley;<br />

VAR num anglez;<br />

VAR pose object;<br />

.<br />

.<br />

anglex := GetEuler(\X, object.rot);<br />

angley := GetEuler(\Y, object.rot);<br />

anglez := GetEuler(\Z, object.rot);<br />

Return value Data type: num<br />

Arguments<br />

The corresponding Euler angle, expressed in degrees, range [-180, 180].<br />

EulerZYX ([\X] | [\Y] | [\Z] Rotation)<br />

The arguments \X, \Y and \Z are mutually exclusive. If none of these are specified, a<br />

run-time error is generated.<br />

[\X] Data type: switch<br />

Gets the rotation around the X axis.<br />

[\Y] Data type: switch<br />

Gets the rotation around the Y axis.<br />

[\Z] Data type: switch<br />

Gets the rotation around the Z axis.<br />

Rotation Data type: orient<br />

The rotation in its quaternion representation.<br />

<strong>RAPID</strong> Reference Manual 9-EulerZYX-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!