Professional Documents
Culture Documents
Assistant Professor
Department of Aerospace Engineering
Indian Institute of Technology Bombay
Powai, Mumbai, 400076 India
Quaternion operator
LQ (v) =[Q]v[Q]? = (q02 − kqk2 )v + 2(q.v)q + 2q0 (q × v)
2 θ 2 θ θ θ θ θ
= cos − sin v + 2 q̂ sin .v q̂ sin + 2 cos q̂ sin × v
2 2 2 2 2 2
= cos θv + (1 − cos θ) (q̂.v) q̂ + sin θ (q̂ × v)
1
Define unit vector q̂ = √ (1, 1, 1).
3
Quaternion
θ θ
[Q] = cos + q̂ sin
2 2
1 1 1 1
= + i+ j+ k
2 2 2 2
LP (u) = v, LQ (v) = w
We can rewrite
w =LQ (v)
=[Q]v[Q]?
=[Q][P ]u[P ]? [Q]?
=[QP ]u[QP ]?
=LQP (u)
LQP is a unit quaternion rotation operator, with the axis and angle of the
composite rotation given by the product [QP ].
Consider quaternion operators LP ? (u) = [P ]? u[P ] and LQ? (v) = [Q]? v[Q].
These operators define rotations of the coordinate system defined by
corresponding quaternions.
Example
Consider a rotation of the coordinate frame about the z-axis through an angle α,
followed by a rotation about the new y-axis through an angle β. By using the
quaternion method, find out the axis and angle of the composite rotation.
Dr. Shashi Ranjan Kumar IITB-AE 410/641 Coordinate Frames 7 / 35
Quaternions
Quaternion Rotation Operator Sequences: Example
2 0
q0 + q12 − q22 − q32
X 2(q1 q2 − q3 q0 ) 2(q0 q2 + q1 q3 ) X
Y = 2(q3 q0 + q1 q2 ) q02 − q12 + q22 − q32 2(q2 q3 − q0 q1 ) Y 0
Z 2(q1 q3 − q0 q2 ) 2(q1 q0 + q3 q2 ) q02 − q12 − q22 + q32 Z0
Compare these three matrices and get relations among these transformations.
Dr. Shashi Ranjan Kumar IITB-AE 410/641 Coordinate Frames 11 / 35
Quaternions
Quaternion Update Equations: Vector Rotation
∆θ ∆θ kωk∆t kωk∆t
∆[Q(t)] = cos + ω̂ sin = cos + ω̂ sin
2 2 2 2
d[Q] 1
The differential equations in compact form = B[Q]
dt 2
0 −ωx −ωy −ωz
T
ωx 0 ωz −ωy = 0 −ω
[B] =
ωy −ωz 0 ωx ω −Ω
ωz ωy −ωx 0
Euler angle
Only 3 differential equations
No redundancy
Direct initialization from initial Euler angles
Nonlinear differential equations
Singularities
Gimbal lock problem
Transformation matrix needs to be computed
Order of rotation important
Direction cosine matrix (DCM)
Linear differential equations
No singularity
Direct computation of DCM
Euler angles, required for initial calculation, are not directly available
Computational burden
Quaternions
Only 4 linear coupled differential equations
No singularity thus avoids gimbal lock problem
Minimum redundancy to avoid singularity
Computationally simpler
If the coordinate systems do not coincides at t = 0 then Euler angle required
for initial calculation
Transformation matrix needs to be computed
Euler angles are not directly available
X
To determine motion of a vehicle, it becomes necessary to relate the solution
to the motion of Earth.
⇒ Define inertial reference frame w.r.t. the Earth
⇒ Obtain motion of both vehicle and Earth w.r.t. the inertial frame
Initial orientation of reference coordinate frame, position, and velocity are
required to obtain future orientation, position and velocity.
It is due to the various modes of motion which the Earth exhibits relative to
the “fixed space”.
Most important noninertial influences
⇒ Daily rotation of the earth about its polar axis
⇒ Monthly rotation of the earth-moon system about its center of mass
⇒ Precession of the earth’s polar axis about a line fixed in space
⇒ Motion of the sun with respect to the galaxy
⇒ Irregularities in the polar precession
What about the validity of Newton’s law in this frame?
Approximately correct
For vehicles navigating in the vicinity of the earth, computations of specific
force are performed in this frame.
What would happen if geodetic latitude, longitude, and wander angle are
zero, that is, λ = 0, φ = 0, α = 0?
Axes will be aligned with aligned with that of the Earth-fixed frame.
Geodetic coordinates: Earth-fixed parameters defined in terms of Earth
reference ellipsoid.
Geodetic longitude: positive east of the Greenwich Meridian (λ = 0),
measured in reference equatorial plane.
Geodetic latitude: positive north measured from the reference equatorial
plane to ellipsoidal surface passing through the point of interest.
Altitude h above reference ellipsoid measured along the normal passing
through the point of interest.
In a conventional NED mechanization, the vertical axis is precessed at a rate
which keeps the two level axes pointing north and east at all times.
However, this leads to a problem if one of the Earth’s poles is traversed, in
which case the required vertical precessional rate becomes infinitely large.
Both coordinate frames have their respective origin at the center of Earth.
ECI frame has xi axis pointing toward the true equinox of date at time t0 , zi
axis along the Earth’s rotational axis, and yi axis completes the right-handed
orthogonal system.
ECEF coordinate frame is related to the ECI frame by a single positive
rotation about the zi axis of Ωie ∆t, called as sidereal hour angle.
Ωie is Earth’s sidereal rotation rate, given by
360
Ωie =
23 + (56/60) + (4.09/3600)
=15.04106874 deg/h
=4.178074648 × 10−3 deg/s = 7.292115 × 10−5 rad/s
Reference
1 G. M. Siouris, Aerospace Avionics Systems: A Modern Synthesis, Academic
Press, Inc. 1993.