06.02.2013 Views

Underwater Robots - Gianluca Antonelli.pdf

Underwater Robots - Gianluca Antonelli.pdf

Underwater Robots - Gianluca Antonelli.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5. compute the quaternion Q by the following:<br />

[ ε η ] T = 1<br />

2 [ c 1 c 2 c 3 c 4 ] T .<br />

Quaternion from Euler Angles<br />

2.2 Rigid Body’s Kinematics 21<br />

The transformation from Euler angles toquaternion isalways possible, i.e.,<br />

it is not affected by the occurrence of representation singularities [127]. This<br />

implies that the use of quaternion to control underwater vehiclesiscompatible<br />

with the common use of Euler angles toexpress the desired trajectory of the<br />

vehicle.<br />

The algorithm consists in computing the rotation matrix expressed in<br />

Euler angles by(2.5) and using the procedure described in the previous subsection<br />

to extract the corresponding quaternion.<br />

2.2.4 6-DOFs Kinematics<br />

It is useful to collect the kinematic equations in 6-dimensional matrix forms.<br />

Let us define the vector η ∈ IR 6 as<br />

� �<br />

η 1 η =<br />

(2.17)<br />

η 2<br />

and the vector ν ∈ IR 6 as<br />

� �<br />

ν 1<br />

ν = , (2.18)<br />

ν 2<br />

and by defining the matrix J e ( R I 6 × 6<br />

B ) ∈ IR<br />

J e ( R I � B<br />

R I<br />

B )=<br />

O 3 × 3<br />

O 3 × 3<br />

J k,o<br />

�<br />

, (2.19)<br />

where the rotation matrix R B I given in (2.5) and J k,o is given in (2.3), it is<br />

ν = J e ( R I B ) ˙η . (2.20)<br />

The inverse mapping, given the block-diagonal structure of J e ,isgiven by:<br />

− 1<br />

˙η = J e ( R I � �<br />

I<br />

R B O 3 × 3<br />

B ) ν =<br />

− 1 ν , (2.21)<br />

J<br />

− 1<br />

where J k,o<br />

O 3 × 3<br />

k,o<br />

is given in (2.4).<br />

On the other side, it is possible to represent the orientation by means of<br />

quaternions. Let us define the vector η q ∈ IR 7 as<br />

⎡<br />

η q = ⎣ η ⎤<br />

1<br />

ε ⎦ (2.22)<br />

η

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

Saved successfully!

Ooh no, something went wrong!