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.

J T k,oqJ k,oq = 1<br />

4 I 3 ,<br />

that allows to invert the mapping (2.10) yielding:<br />

ν 2 =4J T � �<br />

˙ε<br />

k,oq .<br />

˙η<br />

2.2 Rigid Body’s Kinematics 19<br />

For completeness the rotation matrix R B I ,needed to compute (2.1), in<br />

terms of quaternion is given:<br />

R B ⎡<br />

I ( Q )= ⎣ 1 − 2(ε 2 2 + ε 2 3 ) 2( ε 1 ε 2 + ε 3 η ) 2( ε 1 ε 3 − ε 2 η )<br />

2(ε 1 ε 2 − ε 3 η ) 1− 2(ε 2 1 + ε 2 3 ) 2( ε 2 ε 3 + ε 1 η )<br />

2(ε 1 ε 3 + ε 2 η ) 2( ε 2 ε 3 − ε 1 η ) 1− 2(ε 2 1 + ε 2 ⎤<br />

⎦ . (2.11)<br />

2 )<br />

2.2.3 Attitude Error Representation<br />

Let now define R I B ∈ IR 3 × 3 as the rotation matrix from the body-fixed frame<br />

to the earth-fixed frame, which isalso described by the quaternion Q ,and<br />

R I d ∈ IR 3 × 3 the rotation matrix from the frame expressing the desired vehicle<br />

orientationtothe earth-fixedframe,whichisalso described by the quaternion<br />

Q d = { ε d ,ηd } .One possible choice for the rotation matrix necessary to align<br />

the two frames is<br />

T<br />

�R<br />

I<br />

= R B R I d = R B I R I d ,<br />

where R B I = R I T<br />

B . The quaternion Q � = { ˜ε , ˜η } associated with R � can<br />

be obtained directly from � R or computed bycomposition (quaternion product):<br />

� Q = Q − 1 ∗Qd ,where Q − 1 = {−ε ,η} :<br />

˜ε = η ε d − η d ε + S ( ε d ) ε , (2.12)<br />

˜η = ηηd + ε T ε d . (2.13)<br />

Since the quaternion associated with � R = I 3 (i.e. representing two aligned<br />

frames) is � Q = { 0 , 1 } ,itissufficient to represent the attitude error as ˜ε .<br />

The quaternion propagation equations can be rewritten also in terms of<br />

the error variables:<br />

˙˜ε = 1<br />

2 ˜η ˜ν 2 + 1<br />

2 S ( ˜ε ) ˜ν 2 , (2.14)<br />

˙˜η = − 1<br />

2 ˜ε T ˜ν 2 , (2.15)<br />

where ˜ν 2 = ν 2 ,d − ν 2 is the angular velocity error expressed in body-fixed<br />

frame. Defining<br />

� �<br />

˜ε<br />

z = ,<br />

˜η<br />

the relations in (2.14)–(2.15) can be rewritten inthe form:

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

Saved successfully!

Ooh no, something went wrong!