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.

orient Orientation<br />

Description<br />

Components<br />

Example<br />

Limitations<br />

Orient is used for orientations (such as the orientation of a tool) and rotations (such as<br />

the rotation of a coordinate system).<br />

The orientation is described in the form of a quaternion which consists of four elements:<br />

q1, q2, q3 and q4. For more information on how to calculate these, see below.<br />

q1 Data type: num<br />

Quaternion 1.<br />

q2 Data type: num<br />

Quaternion 2.<br />

q3 Data type: num<br />

Quaternion 3.<br />

q4 Data type: num<br />

Quaternion 4.<br />

VAR orient orient1;<br />

.<br />

orient1 := [1, 0, 0, 0];<br />

The orient1 orientation is assigned the value q1=1, q2-q4=0; this corresponds to<br />

no rotation.<br />

The orientation must be normalised; i.e. the sum of the squares must equal 1:<br />

q2 1 + q2 2 + q2 3 + q2 4 =<br />

1<br />

<strong>RAPID</strong> Reference Manual 7-orient-1

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

Saved successfully!

Ooh no, something went wrong!