Optimal Control For The Target-Tracking Problem Using Three-Axis Camera Gimbals

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Journal of Science & Technology 127 (2018) 035-039

Optimal Control for the Target-Tracking Problem using Three-Axis


Camera Gimbals
Do Dang Khoa*, Le Quang Duong
Hanoi University of Science and Technology, No. 1, Dai Co Viet, Hai Ba Trung, Hanoi, Viet Nam
Received: November 12, 2017; Accepted: June 25, 2018

Abstract
In this paper, the target-tracking problem of a 3-axis camera gimbal mounted on a flying vehicle is
considered. In order to keep the camera’s line of sight continuously pointing to a moving target, an optimal
controller using LQR control techniques is applied. The motion equations of the gimbal system are derived
by the Lagrangian approach considering the vehicle motion. The LQR controller is designed based on the
system’s continuously linearized model. A tuning method for the LQR is also proposed to make the gimbal
system point to a moving target in the shortest time. The feasibility of the proposed controller is shown by
numerical simulations.
Keywords: Optimal Control, LQR, Camera Gimbal, Line of Sight (LOS)

1. Introduction* the Lagrangian approach under the flying platform’s


inertial effects and a linear quadratic regulator (LQR)
Inertial stabilized platforms (ISPs) are
is utilized. An offline-tuning procedure for LQR is
mechanisms to control and stabilize the LOS of
proposed to find optimal values of state and control
optical equipment. Recently, ISPs have been
weight matrices to improve gimbal target-tracking
popularized in many civil and commercial
performance.
applications (e.g. movies shootings, aerial
photography). In such systems, the optical equipment, 2. Problem Formulation
which is often mounted on a moving vehicle, must
In this paper, a three-axis gimbal system
keep its optical sensor’s LOS pointing to a fixed or
illustrated in Fig.1 is considered. The gimbal system
moving target. One of the most common types of
is assumed to be mounted on a flying platform at
ISPs is based on a gimballed structure [1]. The two
body 0. The camera fixed on the gimbal’s body 3
main issues are raised as to build exact physical
must keep its sensor’s LOS pointing to a moving
models and to develop good control algorithm to
object on the ground. To keep the object image
fulfill the target-tracking problems. Basically, there
stabilized in the camera frame of view, its sensor’s
are two approaches to derive the gimbal mathematical
LOS must also be kept nonrotating in an inertial
models: one by Newton-Euler approach [2, 3] and the
space under dynamic disturbances from the platform
other by Lagrangian method [4, 5]. For gimbal
motion.
control algorithms, many approaches have been
applied such as robust control in [3], sliding mode
control in [4], and conventional PID control in [5].
Most of the gimbal control challenges in the literature
are related to dealing with two-axis gimballed
configurations.
In this paper, the LOS stabilization and target-
tracking problems of a three-axis camera gimbal
mounted on a flying platform is studied. The aim of
the paper is to design an optimal controller to achieve
good target-tracking performance as quick as possible
under the dynamic disturbances from the flying
platform. To fulfill this task, a nonlinear dynamic Fig. 1. Model of 3-axis Gimbal
model of the three-axis gimbal is developed based on In order to verify the proposed control algorithm, a
mathematical model of the gimbal system needs to be
*
Corresponding author: Tel.: (+84) 982.326.550 derived. The gimbal system’s equations of motion are
Email: khoa.dodang@hust.edu.vn built based on three generalized coordinates as 1 ,

35
Journal of Science & Technology 127 (2018) 035-039

 2 and  3 , which are the rotation angles (yaw, roll The direction of the camera LOS is calculated by the
and pitch) of motors at each axis. To determine the transformation matrix g T3 as follows
gimbal system’s position, five reference frames are
identified as in Fig. 1. The global frame OXYZ(g) is gR r3 
g
g
T3 = g T0 . 0 T1 .1 T2 . 2 T3 =  T 3  (6)
fixed to the ground. Local frames Oi xi yi zi are  0 1 
attached to body i (i from 0 to 3) and O3 x3 is
The LOS direction is specified by making the unit
specified as the camera’s LOS. Those frames are
vector 3 i 3 of axis O3x3 same direction with vector of
choosen such that they are parallel to each other when
3
1 ,  2 and  3 are all equal to zero. The camera O 3 P . To keep the axis O3y3 in parallel to the
g
LOS is determined by the transformation matrix ground, the term R 3 (3, 2) , which is at the third row
method. Let’s define the transformation from frame a and second column of matrix g R 3 must be zero. Let’s
to from b by a 4 by 4 matrix a Tb in the form as assume the moving target’s position P in the ground
frame is identified by the vector g rP . As a result, the
aR a
rb 
a
Tb =  T b  (1) gimbal configuration (1 ,2 ,3 ) to keep its LOS
0 1 
point to the moving target P while maintaining the
where a R b is a 3 by 3 rotation matrix and, a rb is a 3 stabilized image of P in the camera view of frame is
by 1 translation vector from frame a to frame b. The determined by the following system of equations
transformation matrix between the ground frame and
the platform frame is specified as follows
g
T3T ( g
rP − g r3 )  3 i 3 = 0
g
R 3 (3, 2) = 0 (7)
c c s c s − c s s s + c s c X0 
c c c c + s s s c s s − c s Y0 
g
T T
3 ( g
rP − r3 ) . i 3  0
g 3

g
T0 =  (2)
 − s c s c c Z0  The equations of gimbal motion in the frame 0, which
 
 0 0 0 1  are derived by the Lagrangian approach using the
matrix method [8] has the form as
where X0, Y0 and Z0 are the flying platform position
of O0 in the ground frame;  ,  , and  are roll, M (q)q + C(q, q)q + Dq + G (q) = Q* (8)
pitch and yaw angles of the flying platform (body 0).
where q = 1  2 3  , M (q) is the 3 by 3 mass
T
The terms s , c stand for sin ( ) , cos ( ) and so
on for s , c , and s , c . Other transformation matrix, C(q, q) is the 3 by 3 Coriolis and centrifugal
matrices among the gimbal bodies are described as matrix determined from the mass matrix, G (q) is
generalized forces due to the potential energy  , D
c1 − s1 0 −l1c1  is a damping matrix and Q* is the generalized forces
s c1 0 −l1 s1  due to motor torques and inertial forces and moments
0
T1 =  1 (3) caused by the flying platform. The mass matrix
0 0 1 h1 
  M (q) is calculated as follows
0 0 0 1 
M ( q ) =  ( JTTi mi JTi + JTRi 0 ICi J Ri )
3
(9)
1 0 0 l1  i =1
0 c − s2 −b2 c2 
1
T2 =  2
(4) where mi is mass of body i and 0 I Ci is inertia tensor
0 s2 c2 −b2 s 2 
  around the centroid of body i in the frame 0. J Ti and
0 0 0 1 
J Ri are translational and rotational Jacobian matrices
 c3 0 s3 l3 c3 + h3 s3  respectively.
 0 1 0 b3 
2
T3 =   (5)  0 rCi  0 ωi
 − s3 0 c3 −l3 s3 + h3c3  J Ti = , J Ri = (10)
q q
 
 0 0 0 1 
where 0 rCi is a position vector of the centroid Ci of
The terms s1 , c1 stand for sin (1 ) , cos (1 ) and so body i in frame 0, 0 ω i is the angular velocity vector
on for s2 , c2 , and s3 , c3 . of body i in frame 0. The matrix C(q, q) is derived as

36
Journal of Science & Technology 127 (2018) 035-039

M (q) 1  M (q) 
T 3. Optimal Controller Design
C(q, q) = (E  q) −  (q  E)  (11)
q 2  q  Generally, the gimbal nonlinear equations of
motion (8) can also be converted into the form as
where E is the 3 by 3 identity matrix and  is the
Kronecker product [8]. The damping matrix D is x   x2 
x =  1  =  −1  (19)
 x2  M ( −Cq − Dq − G − Qie + u )
determined from the dissipative function (q) as *

(q)
= Dq x1 =  q1 q2 q3  , x 2 =  q1 q2 q3  and,
T T
(12) where
q
Q*ie = Q*Fie + Q*Mie . The measurable and controlled
1 2 1 1
where (q) = b11 + b2 22 + b332 and b1 , b2 , variables are
2 2 2
and b3 are damping coefficients of the gimbal y(t ) = x1 (20)

motors. The vector G (q) has the form as From (19) and (20), the gimbal system’s
nonlinear model can be expressed as follows
  
 ,  = − mi ( R g g ) ( rCi )
3 T 0
G = 0
(13) 
x(t ) = f (x(t ), u(t ), r0 (t ), ω0 (t ), α 0 (t ))
g g g
 q  i =1
 (21)
y (t ) = h(x(t ), u(t ), r0 (t ), ω0 (t ), α 0 (t ))

g g g

where g is the vector of the form g =  0 0 g  , and g


T

is the gravitational acceleration. The vector of Where g r0 (t ), g ω 0 (t ), g α 0 (t ) are the platform’s


generalized forces Q* is calculated as acceleration, angular velocity and acceleration in the
ground frame, respectively. To determine the motor
Q* = Q* + Q*Fie + Q*Mie (14) torques u(t) for making the gimbal system’s LOS
track a moving target, an optimal controller of LQR
where Q* , Q *Fie , and Q*Mie are generalized forces will be designed based on the continuously linearized
corresponding to the gimbal motor torques, the model of the form
resultants of inertial forces and inertial couples,
respectively. The Coriolis effect is ignored due to x(t ) = A(t )x(t ) + B(t )u(t )
assumptions of the platform’s small angular velocity. y (t ) = C(t )x(t ) + D(t )u(t ) (22)
The generalized forces are defined as
Where x(t ) = x(t ) − xo , y(t ) = y(t ) − h(xo , uo ) ,
Q* =  1  2  3  = uT
T
(15) and u(t ) = u(t ) − uo . The matrices A(t), B(t), and C(t)
3 D(t) are defined as follows
Q*Fie =  JTiT g RT0 g Fci (16)
f (x, u) f (x, u)
i=1
A= ,B =
3
x xo ,uo u xo ,uo (23)
Q *
Mie = J T g
Ri R T g
0 Mci (17)
i=1 h(x, u) h(x, u)
C= ,D =
x xo ,uo u xo ,uo (24)
where g Fci and g M ci are the resultant of inertial force
and couple at the centroid Ci of body i in the ground where the operation point (xo , uo ) is
frame, respectively.
determined from equation (7) at operating time to, its
g
Fci = − mi ( g
r0 + ( g α 0 + g ω 0 g ω 0 ) 0 rci ) (18)
first derivative and the steady state equations as.
g
M ci = − R 0 I Ci R α 0 − ω 0 R 0 I Ci g R T0 g ω 0
g 0 g Tg g g 0 f (xo , u o , g r0 (to ), g ω0 (to ), g α 0 (to )) = 0 (25)
0

The system’s controllability and observability are


where g ω 0 and is g α 0 are skew-symmetric tensors of
satisfied. To apply LQR controller, the control signals
angular velocity g ω 0 and angular acceleration g α 0 u should have the form as [9]
of body 0 in the ground frame, respectively. Both
u(t ) = −Kx(t ) (26)
g
ω 0 and g α 0 are assumingly known by sensor
to minimize the cost function of the form as
measurement. In the following section, the control

torques in (15) need to be specified to force the
equations (8) realize the conditions in (7). J=
1
2 0
( xT Qx + uT Ru ) dt (27)

37
Journal of Science & Technology 127 (2018) 035-039

Where Q and R are symmetric positive semi-definite Table 3. Moment of Inertia about the Centroids
and positive definite matrices, respectively. The
Link i (xx)
I Ci i (yy)
I Ci i (zz)
I Ci
optimal solution u is identified from the Hamiltonian
approach as follows 1 0.001396709 0.002011077 0.000675883
−1
u(t ) = −R BPx(t ) (28) 2 0.001289047 0.000817588 0.002076275
3 0.001682153 0.000614997 0.001274903
Where P is the solution of the Riccatti equation as
Q + AT P + PA − PBR −1BT P = 0 (29) The tuning process from solving equation (32) is
shown in Fig. 2, with  * = 0.005, ts (  * ) = 0.035( s ) .
As seen in (28), the LQR provides a negative
feedback gain K with large stability margin [9]. The
controller performance depends on the selection of
the weight matrices Q and R.
In this section, a practical method to select the
weight matrices is introduced. Matrices Q and R are
selected in the form as
Q = CT C, R =  I (30) Fig. 2. Weight Parameter Tuning Process
where  is a tuning parameter to design the LQR The flying platform’s position of O0 and roll, pitch
such that the control signal u will drive the gimbal and yaw angles are assumingly known as (Fig. 3)
system point to the moving target in the shortest time.
 
Let’s define ts (  ) is the time period for the maximum  = 6 sin(1.4 t )
norm of the state perturbations in (22) getting smaller  X0 = 0 
  
than the predefined error  = 0.01 (rad )  Y0 = t  = sin(1.4 t ) ; 0( s )  t  10( s )
 Z = sin( t ) + 4  6
x(ts )  (31)  0  

 = 6 sin(1.4 t )

The parameter  * to make the gimbal system catch The moving target’s position P is defined as
the moving target in the optimal time is the solution
rP =  0.2sin(1.2 t ) t + 1 0 
g T
of the function
ts (  * ) = min(max(ts (  ))) (32)
 →
*

4. Gimbal System Simulation


The 3D model of gimbal (Fig.1) was built using
based on a real prototype. The gimbal parameters are
measured and shown in Tables 1, 2 and 3 as follows:
Table 1. Dimensions and Mass of the Gimbal
Fig. 3. Trajectories of the drone and moving target
Link l(m) b(m) h(m) mi (kg )
1 0.13 0 0.155 0.32341
2 0.125 0.072 0 0.32325
3 0.0325 0.049 0.01405 0.67008

Table 2. The Centroids of the Gimbal Links

Link i
xCi i
yCi i
zCi
1 0.01325 0 -0.07642
2 -0.05791 0.05261 0
3 -0.03237 0.02294 0.00578
Fig. 4. Gimbal Torques for Tracking Problem

38
Journal of Science & Technology 127 (2018) 035-039

References
[1] J.M. Hilkert, Inertially stabilized platform technology
Concepts and principles, in IEEE Control Systems
(2008), vol. 28, no. 1, 26-46.
[2] B. Ekstrand, Equations of motion for a two-axes
gimbal system, IEEE Transactions on Aerospace and
Electronic Systems (2001), vol. 37, no. 3, 1083-1091.
[3] S. B. Kim, S. H. Kim and Y. K. Kwak, Robust
control for a two-axis gimbaled sensor system with
multivariable feedback systems, in IET Control
Theory & Applications (2010), vol. 4, no. 4, 539-551.
[4] H. Özgür, E. Aydan, E. İsmet, Proxy-based sliding
mode stabilization of a two-axis gimbaled platform,
Proceedings of the World Congress on Engineering
and Computer Science (2011), Vol 1.
Fig. 5. Tracking Responses of the Gimbal Angles
[5] M. Abdo, A. Toloei, A. R. Vali, & M. R. Arvan,
The pertubation results of motor torques and Cascade control system for two axes gimbal system
gimbal angles between two cases  = 1 and  =  * with mass unbalance. International Journal of
are compared in Fig. 4 and 5. The optimal case tracks Scientific & Engineering Research (2013), 4(9), 903-
913.
the object in much faster time with the trade off of
higher motor torques. [6] A. Cabarbaye, J. C. Escobar, R. Lozano, M. B.
Estrada, Fast adaptive control of a 3-DOF inertial
5. Conclusion stabilised platforms based on quaternions,
International Conference on Unmanned Aircraft
In the paper, the problem of controlling the
Systems (ICUAS) (2017), 1463-1469.
gimbal camera’s LOS for tracking a moving target is
studied. A dynamic model of a 3-axis gimbal system [7] A. Altan, R. Hacioğlu, Modeling of three-axis gimbal
is built in consideration with the flying platform’s system on unmanned air vehicle (UAV) under
motion. A tuning algorithm for the LQR controller to external disturbances, 25th Signal Processing and
find shortest tracking time is proposed and the Communications Applications Conference (SIU)
(2017), 1-4.
numerical simulation shows that the designed
controller meets the objective. [8] Nguyen Van Khang, Dynamics of Multibody
Systems (in Vietnamese), Science and Technology
Acknowledgments Publishing House, 2nd edition, 2017.
This work was supported by Hanoi university of [9] F.L. Lewis, D. Vrabie, V.L. Syrmos, Optimal
Science and Technology under the research project Control, John Wiley & Sons, 3rd edition, 2012.
T2016-PC-057.

39

You might also like