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.

What is a Quaternion?<br />

The orientation of a coordinate system (such as that of a tool) can be described by a<br />

rotational matrix that describes the direction of the axes of the coordinate system in<br />

relation to a reference system (see Figure 1).<br />

x<br />

z<br />

Reference<br />

coordinate<br />

system<br />

Figure 1 The rotation of a coordinate system is described by a quaternion.<br />

The rotated coordinate systems axes (x, y, z) are vectors which can be expressed in the<br />

reference coordinate system as follows:<br />

x = (x1 , x2 , x3 )<br />

y = (y1, y2, y3) z = (z1, z2, z3) y<br />

x<br />

Rotated<br />

coordinate<br />

system<br />

This means that the x-component of the x-vector in the reference coordinate system<br />

will be x 1 , the y-component will be x 2, etc.<br />

These three vectors can be put together in a matrix, a rotational matrix, where each of<br />

the vectors form one of the columns:<br />

x 1 y 1 z 1<br />

x 2 y 2 z 2<br />

x 3 y 3 z 3<br />

A quaternion is just a more concise way to describe this rotational matrix; the<br />

quaternions are calculated based on the elements of the rotational matrix:<br />

x1 + y2 + z3 + 1<br />

q1 = -----------------------------------------<br />

2<br />

q2<br />

q3<br />

x1 – y2 – z3 + 1<br />

= ----------------------------------------<br />

2<br />

y2 – x1 – z3 + 1<br />

= ----------------------------------------<br />

2<br />

z3 – x1 – y2 + 1<br />

q4 =<br />

----------------------------------------<br />

2<br />

sign q2 = sign (y 3-z 2)<br />

sign q3 = sign (z 1-x 3)<br />

sign q4 = sign (x 2-y 1)<br />

7-orient-2 <strong>RAPID</strong> Reference Manual<br />

y<br />

z

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

Saved successfully!

Ooh no, something went wrong!