Professional Documents
Culture Documents
Gimbal Dynamics
Gimbal Dynamics
Gimbal Dynamics
DYNAMICS
AND CONTROL he double-gimbal mechanism (DGM) is a multibody mechanical
ON THE TORUS
T device composed of three rigid bodies, namely, a base, an inner
gimbal, and an outer gimbal, interconnected by two revolute
joints. Figure 1 shows a typical DGM, where the cylindrical
base is connected to the outer gimbal by a revolute joint, and
the inner gimbal, which is the disk-shaped payload, is connected to the
outer gimbal by a revolute joint. The DGM is an integral component of
an inertially stabilized platform, which provides motion to maintain line
of sight between a target and a platform payload sensor [1], [2]. Modern,
commercially available gimbals use two direct-drive or gear-driven
JASON OSBORNE, GREGORY HICKS,
motors on orthogonal axes to actuate the joints. Many of these mecha-
and ROBERT FUENTES nisms are constrained to a reduced operational region, while more
φ 1
wr
vq
vq d σ (a)
dτ
d σ (a) 0
dτ 0 1 2
θ
(a) (b)
FIGURE 8 Configuration and coordinate plane notation. (a) The black configuration curve is denoted by σ (τ ), where the starting point of the
curve is the configuration q = σ (a), and the ending point is r = σ (b). The yellow vector vq and the green velocity vector (dσ /dτ )(a) are
both vectors in the blue tangent plane to the double-gimbal torus (DGT) at the configuration q. Similarly, the red vector wr and the blue
velocity vector (dσ /dτ )(b) are both in the green tangent plane to the DGT at r . (b) The black coordinate curve σ (τ ) is a curve between
q = σ (a) and r = σ (b) for which σ (τ ) = T (σ σ (τ )), where T is the mapping given by (4). Corresponding in color to the vectors
vq , (dσ /dτ )(a), wr , and (dσ /dτ )(b) on the DGT are the vectors in the (θ, φ) coordinate plane denoted by vq , (dσ σ /dτ )(a), wr , and
(dσσ /dτ )(b), respectively. The correspondence between, for example, the configuration vector vq and the vector vq is given by
DT(q)vq = vq , where DT(q) is the Jacobian of T evaluated at q.
b 2 2
dθ dφ
= m11 + m22 dτ , (8)
a dτ dτ
∂L d ∂L
− = 0, (13) Iz + Jz 0
∂qi dτ ∂ q̇i M= , (17)
0 Jy
where i = 1, 2.
To illustrate (12), we compute the Christoffel symbol but so do the geodesic equations (14) and (15) for the DGM
2 . Using the mass matrix entries of (7), and noting that simplify considerably to
11
(·),1 and (·),2 denote partial differentiation with
respect to θ and φ , respectively, and using
m22 = 1/Jy and m12 = m21 = m21 = 0, definition TABLE 1 Geometric data for the double-gimbal torus (DGT). Each
(12) with i = 2, j = 1, and k = 1 yields entry mi j of the mass matrix is substituted into (12) to find the
Christoffel symbols ij k . The functions ij k are first substituted into
(31) to find the curvature functions Rinj k· , which are then
multiplied
by the functions mnl to obtain the functions Ri j kl =mnl Rinj k· . A
2 1 2 double-gimbal mechanism (DGM) with inertias satisfying Jz = Jx
11 = m2n (mn1,1 + m1n,1 − m11,n )
2 n =1 has zero curvature and thus is called the flat DGM. The geodesics of
the flat DGM indicate that the inner and outer gimbal free motions
1 21 decouple, which allows each gimbal to rotate independently of the
= m (m11,1 + m11,1 − m11,1 ) other. If Jz = Jx , then the DGM system has curvature, which implies
2
1 22 that coupled free motions of the DGM can occur, as shown in Figure
+ m (m21,1 + m12,1 − m11,2 ) 10(b) and (c).
2
FIGURE 10 Geodesics on the double-gimbal torus (DGT). The red curves are the gimbal geodesics σ (τ ) = [θ(τ ) φ(τ )] mapped under T
given in (4) and plotted on the surface T(θ, φ) with θ, φ ∈ [0, 2π). The parallel, asymptotic, and bound geodesics are typical of inertias
that fit the description of the second line of Table 2. For the torus and geodesics (a), (b), (c) above, the inertias are
I z = 2, Jz = 2, Jx = 1, Jy = 4 with initial conditions [θ = 0, φ = π/2, θ̇ = .8164, φ̇ = 0], [θ = 0, φ = 0, θ̇ = .6123, φ̇ = .3535] , and
[θ = 0, φ = 1, θ̇ = .7794, φ̇ = 0] for the parallel, asymptotic, and bound geodesics, respectively. Every geodesic on the DGT is a free
motion, that is, a time evolution of the double-gimbal mechanism (DGM) without external forces.
dvi 2 σj
dσ Using (21), the coordinate vector vr is mapped to the
i
= − jk vk , (20) velocity vector of the outer gimbal in the configuration
dτ j,k =1
dτ
r = T(r) = [R 0 r]T to obtain
⎡ ⎤
such that v = [v1 v2 ] is the vector in the (θ, φ) coordinate 0
dσ
plane for which vr = (a) = DT(r)vr = ⎣ R dτ
dθ
(a) ⎦ , (24)
dτ
0
σ (τ ))vσ (τ ) = vσ (τ ) ,
DT(σ (21)
which is the yellow vector tangent to the black curve
where (22), as shown at the bottom of the page, is the Jaco- σ (τ ) T(σ
σ (τ )) on the torus in Figure 12. Parallel transport-
bian of the mapping T from (4) evaluated along the coordi- ing the vector vr along the coordinate curve σ (τ ), and
nate curve σ (τ ) = [θ(τ ) φ(τ )]T . mapping the resultant vectors to the torus using DT(σ σ (τ )),
The parallel transport equations (20) indicate that the defines parallel transport of vr = dσ /dτ (a) along the curve
components v1 , v2 of a coordinate vector v change with σ (τ ), which yields the blue vectors along the black curve in
respect to the parameter τ according to a term involving Figure 12. The fact that the parallel-transported vector
i
jk . Since the Christoffel symbols involve not only the mass changes along the curve σ (τ ) indicates that the vector
matrix entries, which are, as in the gimbal case (7), configu- varies with the tangent, or velocity, direction. Specifically,
ration dependent, but also the derivatives of the mass- for the gimbal in the configuration represented by
matrix entries with respect to the configuration variables, it q = σ (b) = [π (π/2)]T , the coordinate velocity vector vq is
is possible that jki = 0 for some i, j, k. As a consequence, a given by
parallel-transported vector can vary with the parameter τ .
In contrast, Euclidean transport Ir→q of vectors along σ
dσ dθ
dτ (b) .
vq = (b) = (25)
curves in R3 leaves the vector constant from point r to dτ 0
every other point q. That is, Euclidean transport moves vec-
tors from point to point without rotating them. Using (21), the velocity vector of the gimbal in the con-
We now compare the parallel transport map Pr→q figuration q = T(q) = [−R 0 r]T is given by
with the Euclidean transport map Ir→q . For a purely
outer gimbal motion of the DGM represented by the coor- ⎡ ⎤
0
dinate curve σ (τ ) = [θ(τ ) (π/2)] , where τ ∈ [a, b], the dσ
vq = (b) = DT(q)vq = ⎣ −R dτ (b) ⎦ ,
dθ
(26)
coordinate velocity vector of the gimbal at the point dτ
0
r = σ (a) = [0 (π/2)] is given by
which is the green vector in Figure 12. In contrast, trans-
dθ
dτ (a) .
dσ porting the velocity vector vr using Euclidean transport
vr = (a) = (23)
dτ 0 Ir→q yields the black vectors in Figure 12. The fact that
⎡ ⎤
−R sin(θ(τ )) − r cos(φ(τ )) sin(θ(τ )) −r sin(φ(τ )) cos(θ(τ ))
DT(σ (τ )) = ⎣ R cos(θ(τ )) + r cos(φ(τ )) cos(θ(τ )) −r sin(φ(τ )) sin(θ(τ )) ⎦ , (22)
0 r cos(φ(τ ))
2
ρ ρ η ρ ρ η ρ
Rγ αβ· γβ,α + γβ ηα − γ α,β − γ α ηβ . (31)
η =1
Gravity-Based Pointing-System
Design for the DGM
To begin pointing design for the DGM, let
g ∈ S2 be represented by the vector
⎡ ⎤ (a) (b)
cos(ψ) cos(α)
g = Kp ⎣ cos(ψ) sin(α) ⎦ , (35) FIGURE 13 Parallel transport illustration of curvature on the torus. From a pictorial
sin(ψ) standpoint, the torus has curvature if there exists a closed curve such that the paral-
lel transport of an initial vector vi around this curve returns a final vector v f = vi .
Consequently, the difference between an initial vector vi and the parallel-transported
where ψ ∈ [−π/2, π/2], α ∈ [0, 2π], and Kp vector v f is essentially a measure of curvature. If vi = v f then the torus is flat, while if
is a scalar. The vector g can be interpreted vi = v f then the torus is not flat. (a) The parallel transport of the blue vector vi
as a gravity-like, uniform force field of around the black closed curve yields the green vector v f , which is not equal vi , and
thus the torus has nonzero curvature. (b) Parallel transporting the blue vector vi
strength Kp. By imagining that a unit point
around the black closed curve yields the green vector v f . The fact that the v f = vi
mass is located at the end of the LOS direc- seems to indicate that the torus is flat. However, the flatness conclusion is erroneous
tion vector, the vector t given by since the black curve circumnavigates a hole in the torus.
T
o select a suitable set of generalized coordinates for the track- flat
u = m11 ū (S6)
er and target confined to R2 , we center the corridor at the ori- 1
hilly
gin of the coordinate plane and employ polar coordinates (r, θ). u = m11 (θ)ū + (5 cos (5θ) + 2 cos (2θ))θ̇ 2 , (S7)
2
Fixing the radial coordinate imposes a circular kinematic con-
straint, where the angle of rotation θ acts as the single coordinate where ū is a new control parameter that can be selected to achieve
needed to describe the configuration of the system. That is, after a desired effect. For the choices (S6) and (S7), the control systems
imposing kinematic constraints, a single degree of freedom (S4) and (S5), respectively, reduce to the dynamic equations for a
remains for this system with positive values of θ indicating coun- unit-mass particle given by θ̈ = ū. Letting (θd , θ̇d ) denote the
terclockwise rotation. phase variables for a reference configuration, we can choose
To formulate dynamics, we express the tracker’s kinetic
energy in terms of its phase variables (θ, θ̇). Letting m11 (θ) ū = θ̈d − Kp e − Kd ė , (S8)
denote the configuration-dependent mass of the particle, the
kinetic energy of the particle is given by where e = θ − θd and where K p and K d are the proportional-
derivative control design parameters. The selection of (S8) for
1 1
K = g(θ̇, θ̇) = m11 (θ)θ̇ 2 . (S1) the new control parameter renders the closed-loop error system
2 2
in the form of a mass-spring-damper error equation given by
Assuming no potential forces, the Lagrangian is L = K . The
dynamics are obtained by equating to zero the resultant of all ë + Kd ė + Kp e = 0 (S9)
forces imparted on the tracker including the inertial forces. The
inertial force I is given by with damping constant K d and spring constant K p . Using (S9) we
can choose the damping and stiffness for both global asymptotic
d ∂L ∂L
I =− + . (S2) stability and response. From the traditional control perspective, we
dt ∂ θ̇ ∂θ
have thus obtained a complete solution to both the flat and hilly
Letting u denote the generalized force along the θ direction, the circular corridor chasing problems.
full dynamics are given by I + u = 0, that is, We now look deeper into the coordinate control formulation
above to address several points of concern stemming from the
d ∂L ∂L
− = u. (S3) subtle use of coordinates. For instance, where are the indecision
dt ∂ θ̇ ∂θ
points, those points of discontinuous control logic, introduced in the
For the flat corridor these dynamics are circular corridor examples? Each term in (S9) is smooth in the tra-
ditional approach and therefore it seems that discontinuous control
m11 θ̈ = u , (S4)
logic is unnecessary. The traditional perspective seems to accom-
while, for the hilly corridor with metric given by, for illustration pur- plish what we intuitively understand to be impossible, namely, the
poses, m11 (θ) = 2 + sin(5θ) + sin(2θ), the dynamics are construction of a smooth controller that renders the desired trajec-
tory a global asymptotically stable equilibrium. To find the flaw in
1
m11 (θ)θ̈ + (5 cos (5θ) + 2 cos (2θ))θ̇ 2 = u. (S5) the traditional control approach we retrace the above steps.
2
Recall that the first step of Lagrange’s method is to intro-
From the traditional Lagrangian perspective, these mathematical duce a generalized coordinate, namely, the real-valued polar
expressions model the system’s dynamics. coordinate θ to denote position. However, the configuration
Proceeding with the computed torque control design, we space for this system is S1 and not the real line R. The corre-
select a control acceleration u that mimics the inertial force for spondence between the two spaces is given by
both the flat and hilly corridors. That is, f : R → S1 : θ → [cos θ sin θ], which is not a homeomorphism
ė = q̇ − Tr→q ṙ . (48)
∗
d ϕq(r) = −Tr→q (d ϕr(q)) . (49)
(a)
In (49) the transport map Tr→q has been “pulled back,”
denoted by Tr→q∗ , so that the transport map can operate on
FFB = −eT Kp − ėT K d(q) , (51) FIGURE 14 Physically inspired control of the double-gimbal mecha-
nism (DGM). For the uniform gravitational field on R2 of (a), the
FFF = ṙT C(q, q̇) + r̈T M(q) , (52) induced nonlinear field on S1 in (b) has two equilibria, one stable
and one unstable. When a particle is placed on the hoop, the pro-
where e q − r. The augmented PD control design jected force field indicates how the particle experiences the uniform
gravity field due to its confinement to the circle. This behavior can
(50)–(52) simplifies to the error system
be used to design a physically inspired tracking controller on the
circle by simply altering the direction of the ambient force field. This
approach can be extrapolated to T2 = S1 × S1 , the configuration
ëT M(q) + ėT (C(q, q̇) + K d(q)) + eT Kp = 0. (53) space of the DGM.
namely, a stable equilibria at the bottom point [0, −1] of r , and Hess r (r) = α 10 01 . Since Hess r (r) is positive def-
the unit circle and an unstable equilibria at the top point inite, the local potential is an attractive potential well. Con-
[0, 1] of the unit circle. sequently, ϕ defined by (56) is a configuration error function.
The induced field of Figure 14(b) can be generated by a It can further be shown that this configuration error function
potential on S1 , the configuration space of the mass parti- is uniformly quadratic [16, p. 540] and therefore meets the
cle confined to the circle. The coordinate-free potential at a conditions of Theorem 1. Since dq = −dr and because
point q on the circle is Tr→q = Ir→q , that is, the Euclidean transport mapping
defined in the geometry section, the configuration error
v(q) = Kp(1 − Cos(q)), (54) function of (56) is compatible with the transport mapping.
We have now realized the augmented PD control
where Cos is the circular function cosine defined directly on design for the DGM. The coordinate expression of the
S1 . Letting θ denote the radian measure of the angle sub- feedback part of the controller is given by
tended by [0, −1], that is, the bottom point of the circle, and
the configuration q of the mass particle, then the parameter- FFB = − dr (q) − ėT K d
ized expression of the potential v(q) from (54) is given by = − α sin(θ − θr) sin(φ − φr)
V(θ) = Kp(1 − cos(θ)). (55) − θ̇ − θ̇r φ̇ − φ̇r K d , (59)
The potential V(θ) is related to the projected force field which, together with the feedforward compensation, ren-
in Figure 14(b) by −dV = −Kp sin(θ)dθ . ders the reference curve r(t) locally exponentially stable in
With the potential V(θ) in mind, we develop an aug- the closed loop. The key step in the design of (56) is to first
mented PD control law for the DGM. Let q(t) = [θ(t) φ(t)]T select a model potential with the desired properties at a
and r(t) = [θr(t) φr(t)]T denote, respectively, the coordinate specific configuration q defined by
representations of the configuration and reference with
respect to the standard (θ, φ) parameterization of the torus. V(q) = 2 − cos(θ) − cos(φ) , (60)
The candidate configuration error function ϕ is defined by
its coordinate expression given by which, as shown in Figure 15, has an ideal well at
q = [0 0]T . The potential (60) can then be used to define a
(q, r) = α(2 − cos(θ − θr) − cos(φ − φr)), (56) configuration error function (56) by substituting q − r for
q to ensure that the potential varies with the reference
where α > 0 is a scalar that models stiffness. We use configuration r.
Euclidean transport in the parameter space to induce par- As with the pointing design based on the potential
allel transport on T2 and choose K d(q) to be a symmetric, (38), Morse theory indicates that the DGM tracking
positive-definite matrix with constant entries. design based on the potential (60) cannot be globally sta-
We now show that ϕ is a configuration error function bilizing. In fact, equating the differential of the potential
compatible, in the sense of (49), with the transport map- (60) to zero, we find four isolated critical values, which
ping. The coordinate function is symmetric, proper, and correspond to the (θ, φ) parameter vectors [0 0]T , [0 π]T ,
bounded from below. When r is held fixed, the differential [π 0]T , and [π π]T . Evaluating the Hessian
)
dr and Hessian at q are given by HessV r (q) = α cos(θ
0
0
cos(φ)
at these values, respectively,
the critical points are of Morse index 0, 1, 1, and 2, from
dr (q) = α sin(θ − θr) sin(φ − φr) , (57) which we conclude the existence of one stable equilibri-
um, two saddles, and one unstable equilibrium. The sta-
cos(θ − θr) 0 bility properties of these equilibria are visually confirmed
Hess r (q) = α . (58)
0 cos(φ − φr) in Figure 15. Proposition 1 indicates that not only are
these equilibria expected from the control design, but this
Setting q = r, we find that r (r) = 2 − 1 − 1 = 0 , design is among the best achievable potential-based con-
dr (r) = α[ 0 0 ], which indicates that r is a critical value of trol designs on the torus. By best, we mean that the
design based on (60) achieves the minimal number of using methods analogous to those given in this section,
four equilibria, whereas all other designs must have at the controlled dynamics for the nonflat DGM reduce to a
least four equilibria. For example, the potential (38) on T2 spring-damper system along the geodesics defined by the
has eight equilibria. metric geometry of the nonflat DGM [21].
As the model potential (60) moves with the reference r, In the case of the flat DGM, which is characterized by
Proposition 1 is still applicable, and therefore the minimal inner-gimbal inertias that satisfy Jz = Jx , the controlled
number of predicted equilibria is maintained. dynamics simplify considerably because not only does the
parallel transport map Pr→q reduce to the Euclidean trans-
Geometric PD Control on the Flat DGT port map Ir→q , but so do all covariant derivatives reduce
Although the generalization of the augmented PD con- to regular derivatives. The controlled dynamics (43) for the
troller is a physical control design, it does not initially flat gimbal DGM are given by
account for the mass distribution of the DGM. As a
result, the control functions only to provide reference D dq
M = q̈T M = F , (61)
stability with no natural preference given to how stabili- dt dt
ty is achieved. The goal of this section is to incorporate
the metric geometry structure of the DGM into the aug- where M is the generalized mass matrix from (17),
mented PD control strategy, which we then implement q(t) = [θ(t) φ(t)]T is the coordinate vector representing
on the flat DGM. the configuration q of the DGM at time t, and F is a vec-
The focus of this section is the flat DGM because the tor of input torques. Let r(t) = [θr(t) φr(t)]T be a smooth
geodesic equations on the flat DGT have simple closed- reference trajectory that the DGM configuration curve
form solutions, which, for appropriate choices of configu- q(t) is required to asymptotically approach. To com-
ration error function and compatible transport map, pute the proportional term dφr(q) of the feedback force
simplify the implementation of Theorem 1 to the aug- FFB from (44), we choose the geometric configuration
mented PD control design (53). Indeed, for the flat DGM, error function
(53) is based on the Euclidean
model of state error given by
e q − r. In contrast, as shown
Phi 2 Phi 2
in the section “Metric Geome-
0 0
try,” the geodesic equations on
−2 −2
the nonflat DGT are consider-
ably more complex, and thus 3 3
numerical solutions to the geo- 2 2
desic equations must be
obtained to implement the con- 1 1
trol design of Theorem 1 on the 0 0
nonflat DGT. Furthermore, the
−1 −1
formulation of the controlled 0
−2
dynamics of Theorem 1 for the 0
2
nonflat DGM requires a non- Theta 4
2 Theta
Euclidean model of state error. 6
Consequently, the controlled (a) (b)
dynamics for the nonflat DGM
do not reduce to the augmented FIGURE 15 A double-gimbal mechanism (DGM) control potential. One approach to designing
PD control design (53). Howev- a configuration-error function for the generalized augmented PD controller is to first con-
struct a model potential V(q) and then to define V(q − r), which ensures that the potential
er, for appropriate choices of varies with the reference trajectory r. We illustrate in (a), with alternative view in (b), the
configuration error function and model potential for the DGM that results from extrapolating the physically inspired design on
compatible transport map, and S1 described in Figure 14 to the configuration space T2 = S1 × S1 of the DGM.
β error function (67), but so also does the velocity error func-
(r(t), q(t)) = dist2 (r(t), q(t)) , (62)
2 tion reduce to
ė = q̇ − ṙ. (70)
where β > 0 is a scalar and where dist is the intrinsic dis-
tance function defined on the DGT by (9). The configura- A geometric Rayleigh dissipation torque for the flat
tion error function of (62) can be simplified by solving the DGM is given by
boundary value problem
FD = −α(q̇ − Pr→q ṙ)T M
D dσ d 2σ = −α(q̇ − ṙ)T M , (71)
= = 0, (63)
dτ d τ dτ2
σ (0) = r(t), σ (1) = q(t) . (64) where α > 0 is a scalar. The control forces FP and FD sum
together to define the feedback force FFB defined in
The solution σ (τ, t) to (63) and (64) is, under appropri- Theorem 1. To complete the specification of the control
ate conditions discussed in the next section, the unique, forces from Theorem 1, we define the feedforward term
minimal geodesic curve between r(t) and q(t) given by
T
D
FFF = (Pr→q ṙ) M = r̈T M , (72)
σ (τ, t) = r(t)(1 − τ ) + q(t) τ. (65) dt
It follows from (65) that, for each configuration q(t) and which accelerates the gimbal trajectory q(t) toward the ref-
reference r(t), erence r(t). Applying the control torque F = FFF + FP + FD ,
the error system for the flat DGM is
σ
dσ
= q(t) − r(t), (66)
dτ
(ë + α ė + βe)T M = 0 , (73)
which, when substituted into (9), leads to the simplified
configuration error function where e = q − r.
For setpoint control to the constant configuration r, the
β control forces (68), (71), and (72) based on the intrinsic dis-
(r(t), q(t)) = (q(t) − r(t))T M (q(t) − r(t)) . (67)
2 tance function on the DGM are torques that force the gim-
bal along a geodesic between r and q in the coordinate
Holding r = r(t) fixed, the components of the negative dif- plane. The response of the gimbal can be set to under-
ferential of (67) with respect to q = q(t) determine damped, critically damped, or overdamped by tuning the
scalars α and β.
FP = dr (q) = −β(q − r)T M , (68) The geometric control design methodology given above
for the flat DGM can be adapted to the coupled, that is
which is the proportional term in (44) of the PD control nonflat, DGM. While there may not be a closed form solu-
design from Theorem 1. tion to the resulting geodesic boundary value problem or
For the velocity q̇ of the configuration curve q(t) to parallel transport equation, accurate solutions can be
match the velocity ṙ of the reference curve r(t), a Rayleigh achieved through numerical approximation. Consequent-
damping torque is used to dissipate energy between the ly, as in the flat DGM, the nonflat DGM can be compelled
gimbal configuration q(t) and reference configuration r(t). to move as a spring-damper along geodesics defined by
By parallel transporting the reference velocity vector ṙ to the metric geometry of the DGT [21].
q(t) for each t, the velocity vectors q̇ and Pr→q ṙ can be
subtracted to obtain a velocity error function Cut Locus for the DGT
The inertia-based PD control design from the preceding
ė = q̇ − Pr→q ṙ. (69) section depends on finding a unique minimal geodesic
between the desired configuration r and the mechanism
For the flat DGM, not only is the Euclidean transport configuration q. Figure 16 illustrates the existence of gim-
map compatible, in the sense of (49), with the tracking bal configurations connected by two minimal geodesics,