Professional Documents
Culture Documents
Optimal Control For The Target-Tracking Problem Using Three-Axis Camera Gimbals
Optimal Control For The Target-Tracking Problem Using Three-Axis Camera Gimbals
Optimal Control For The Target-Tracking Problem Using Three-Axis Camera Gimbals
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)
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) = b11 + b2 22 + b332 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
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)
→
*
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