You are on page 1of 8

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/3881913

Design of stable fuzzy controllers for an AGV

Conference Paper · February 2000


DOI: 10.1109/IROS.2000.893157 · Source: IEEE Xplore

CITATIONS READS

4 73

2 authors, including:

Sarath Kodagoda
University of Technology Sydney
132 PUBLICATIONS   1,694 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Mutiple People Tracking View project

Smart Linings for Pipes and Infrastructure View project

All content following this page was uploaded by Sarath Kodagoda on 02 June 2014.

The user has requested enhancement of the downloaded file.


© [2000] IEEE. Reprinted, with permission, from [W.S. Wijesoma K.R.S. Kodagoda,
Design of stable fuzzy controllers for an AGV, Proceedings of the 2000 IEEE/RSJ
International Conference on Intelligent Robots and Systems]. This material is posted
here with permission of the IEEE. Such permission of the IEEE does not in any way
imply IEEE endorsement of any of the University of Technology, Sydney's products
or services. Internal or personal use of this material is permitted. However,
permission to reprint/republish this material for advertising or promotional purposes
or for creating new collective works for resale or redistribution must be obtained from
the IEEE by writing to pubs-permissions@ieee.org. By choosing to view this
document, you agree to all provisions of the copyright laws protecting it
Design of stable fuzzy controllers for an AGV
W.S. Wijesoma K.R.S. Kodagoda
School of Electrical and Electronic Engineering
Nanyang Technological University,
Singapore 639798.
e-mail: eswwijesoma@ntu.edu.sg

controller respectively in the steer control of a mobile


Abstract robot. PID controller for steering control is reported in
Fuzzy logic control is a relatively new technology and Kodagoda et al [4]. Although PI, PD, and PID controllers
hence it needs rigorous comparative analyses with other are commonly used in controlling nonlinear plants, their
well-established conventional control schemes. Further, operation is limited to a narrower operating region.
fuzzy controller stability analysis is a major hindrance for Further, such reported controllers perform poorly in the
its popularity among control engineers. This paper shows presence of significant parametric uncertainty.
how stable fuzzy controllers may be synthesized for a Nonlinear methods of AGV control, where the
typical AGV from the perspective of variable structure non-linearities are catered for indirectly has also been
systems (VSS) theory. VSS or sliding model control (SMC) reported in the literature. Hessburg et al[9] has
is an established robust non-linear control methodology. demonstrated through real time implementation the
The AGV is characterized by highly non-linear, coupled efficacy of a fuzzy logic controller (FLC) for lateral
and configuration dependent dynamics, with uncertainty (steering) control of an AGV. Lee et al [10] proposed a
in model parameters. Similarity in performance of the fuzzy-like gain scheduling PD controller for lateral
fuzzy controllers to the SMC controller is demonstrated control of an AGV. The control law is realized using a
through experimental results obtained for steer control of control structure similar to Sugeno’s fuzzy model,
the AGV. however with non-overlapping membership functions.
Fuzzy logic has a lot of appeal in control. However,
fuzzy logic control has a relatively short history. In
1. Introduction addition, most of the fuzzy controllers proposed in the
Control of Autonomous Guided Vehicles (AGV) is a literature lack stability analysis and results. It is also
very challenging nonlinear control problem due to the important to note that there are also not much
complexity of the model, uncertainty of parameters and experimental results and analysis reported comparing
the significant coupling effects on the steer system by the established and conventional control schemes. In this
drive system and vice versa. Other nonlinear effects like paper we attempt to address the above issues through the
backlashes in the gear and road grade variations can also systematic design, analysis and experimentation of fuzzy
cause adverse effects. controllers. In the rest of the paper we describe the
Although, AGVs are characterized by nonlinear particular AGV and its dynamics used as the test bed. A
dynamics, the application of linear control methods has stable SMC is designed for the dynamic system
not been uncommon as is evident from the reported characterized by the AGV from Lyapunov theory. A stable
literature [7,8]. Here, the controller design is based on the fuzzy SMC is then derived through fuzzification of the
assumption that the model dynamics are linear or on a sliding mode control law. A fuzzy PD state space
linearised model of the AGV about a specified operating controller is then synthesized by resolving the fuzzy SMC
point/s. Most commonly used linear control techniques control law. This is followed by experimental results and
are, PI, PD and PID control methods. the conclusions.
Kagma et al [7] and Zalila et al [8] used a PD and a PI
combination of a suitably chosen parameter vector
2. AGV and its dynamics Ω ∈ R r ×1 , using equation (1):
The vehicle utilized as a test bed is a Carryall 1 golf τ =WΩ + d (2)
car (see Figure 1). It is a front wheel steerable, rear wheel W ∈ R n×r is a matrix of functions. Let us choose the
drive, electrically powered car and is suitably modified following control torque, τ :
for autonomous control. A DC servomotor drives the steer τ = Mu ˆ + Qˆ + τ smc (3)
!! !
u is chosen as, u = θ d + Λ(θ d − θ ) , Λ ⊂ R ! n×n
is a diagonal gain
system while a DC series motor powers the drive system.
The dynamic model of the AGV is [3], matrix with elements λi (i = 1,..., n) , θ!d is desired vector of
τ = M θ!! + Q + d (1) linear and angular velocities, and θ!!d is its derivative. M̂
τ  M vr Nr  and Q̂ are the estimates of M and Q . The component
τ = d , M = 
τ s 
ˆ + Qˆ ) represents the computed torque component, which
 N Mω  ( Mu

attempts to linearize and decouple the system (1). The


Q == 
( )
 Cd 1ω 2 + Cd 2 vω + kv v + Fdf r 
  v! 
, θ!! =   term τ smc is used to remove the effects of inexact
 Cs1ω 2 + Cs 2 vω + τ sf  ω! 
  de-coupling as a result of model mismatch and bounded
M is the positive definite inertia matrix, τ is the vector of disturbances. As detailed in [1] the closed loop equation
drive and steer torques, θ!! is the vector of linear and can now be written as:
angular acceleration, Q is the vector of Coriolis, (θ!! − θ!!d ) + Λ (θ! − θ!d ) = M −1 τ smc − (Wψ + d ) 
 
(4)
centrifugal and frictional forces, and d ∈ R n×1 is the ψ represents the parameter mismatch vector
disturbance vector. v , γ and ω are speed, steer angle representing the mismatch between the actual parameter
and rate of change of steer angle respectively. Other vector ( Ω )and its estimate ( Ω̂ ). Now, let us define the
parameters are defined in Kodagoda et al [4]. It may be ith sliding surface as,
noted that the model is nonlinear, complex and si = (θ!i − θ!d ) + λi (θ i − θ d )
i i
(5)
configuration dependent.
A condition for the intersection of switching planes,
s = ( s1 , s2 ) = 0 , to be attractive can be derived by defining a

quasi Lyapunov function V(t) as,


1 T
V (t ) = s Ms
2 (6)
M is the AGV’s positive definite inertia matrix.
Differentiating (6) we have,
1
V! (t ) = sT Ms! + sT Ms
!
2 (7)
Now the ith ( i = 1, 2. ) component
of τ smc can be chosen
as given in equation (8) to ensure V! (t ) ≤ 0 ∀ (t > 0) so as to
guarantee the asymptotic stability of si and hence the
convergence of tracking errors to zero [2].
 r  n M! ij
τ ismc = − sgn( si )  ∑ Wijψ j + di + δ i  − si ∑ , i = 1, 2 (8)
 j =1  i =1 2
Figure 1 Experimental AGV
where,

3. Sliding Mode Controller (SMC) di < di , M ij < M! ij , δ i > 0 (i = j = 1, 2.),


Wij < Wij (i = j = 1, 2), ψ j < ψ j ( j = 1,..., r )
Variable structure system or sliding mode control is an
effective controller methodology for controlling of
nonlinear systems in the presence of model uncertainties,
parameter fluctuations and disturbances provided that 4. Fuzzy Sliding Mode Controller
their upper bounds are known. Fuzzy control offers simple but robust control solutions
The AGV dynamics can be expressed as a linear for nonlinear systems [1]. Further fuzzy logic provides a
convenient framework to incorporate the heuristic controller (9) can be arbitrarily controlled by the number
knowledge about the plant. Also, unlike SMC, fuzzy of linguistic terms and hence the rules. However, what is
control approach permits greater flexibility in fine-tuning really important to ensure stability and convergence of the
the controller to achieve arbitrary complex control fuzzy SMC is to guarantee the negative semi-definiteness
surfaces. Next we show how an approximate fuzzy SMC of the Lyapunov function derivative, i.e. V! (t ) ≤ 0 ∀ (t > 0) .
may be derived from the SMC control law (8). Now, This translates to the condition that the crisp fuzzy SMC
equation (8) can be expressed as: output is larger or equal in magnitude to the SMC torque
τ ismc = − sgn( si )  K i1 + si Ki 2  i = 1, 2 (9) for all s , i.e.
τ ismc ( si ) ≤ τ ifsmc _ crisp ( si ) ∀ si (12)
r 2 M! ij
Ki1 = ∑ Wijψ j + di + δ i  , Ki 2 = ∑ , i = 1, 2
j =1 i =1 2

Ki1 and Ki2 are positive constants whose magnitudes


depend on the model mismatch and the bounded 5. Fuzzy PD Controller
disturbance d. We choose Ki1, and Ki2 large enough so as The heuristic control knowledge is usually available in
to eliminate the need for the computed torque component terms of state variables and their changes. To facilitate
of the control law (3). From equation (9) it can be seen inclusion of such knowledge and to add more degrees of
that farther the system response is from the sliding surface, freedom for tuning, it is useful to design state based fuzzy
larger the magnitude of the torque needed to drive the controllers. One of such controllers is a fuzzy PD
system on to it. However, the sign of the control torque is controller. The following illustrates how such a law may
opposite to that of si. One possible fuzzification of the be derived from the fuzzy sliding mode controller.
SMC law (9) with a boundary layer using m rules is Switching plain, si can be normalized to sˆi as:
through the following rule structure [6]. sˆi = eˆ!i + eˆi (13)

where, sˆi = si , e!ˆ1 = ei , eˆi = λi ei , Nsi is a positive scalar.


− !
IF si is Aik THEN τ ifsmc is Bik , i = 1, 2, k = 1,", m (10) N si N si N si

si = e!i + λi ⋅ ei , si = − si , ei = (θ di − θ i ) , i = 1, 2
From (13) it follows that sˆi (i = 1, 2) is a linear
combination of the state variables ( eˆi and e!ˆi ). Thus,
An appropriate choice for the linguistic terms Aik and after normalizing we may replace si of the fuzzy SMC
Bik , k = 1,.., m of the linguistic variables si and τ ifsmc are: rules (10) by corresponding sets of pairs of the state
Ai = Bi = { NVL, NL, NM , NS , Z , PS , PM , PL, PVL}
k k
variables to yield a rule base in state space giving the
The nine terms are, PVL (Positive Very Large), PL same or higher crisp control output as the crisp FSMC [1].
(Positive Large), PM (Positive Medium), PS (Positive The resultant state space rule base is given in Table 1,
Small), Z (Zero), NS (Negative Small), NM (Negative assuming all inputs ( sˆi , eˆi , e!ˆi ) and outputs ( τ ifsmc ,τ ifpd ) are
Medium), NL (Negative Large) and NVL (Negative Very partitioned into nine linguistic terms in their respective
Large). We choose triangular membership functions, universe of discourses. Here again we use singleton
singleton fuzzification, Mamdani inferencing system and fuzzification, Mamdani inferencing and center of gravity
center of gravity (COG) defuzzification. Hence the (COG) defuzzification technique to obtain the crisp
inferred crisp torque output of the fuzzy SMC is: output of the fuzzy PD controller τ ifpd _ crisp (sˆi ) . Again, to
r i fsmc fsmc ensure stability and convergence it is sufficient that the
∑ b j ∫ µ B j (τ i ) dτ i
fsmc _ crisp j =1 Γ i (11) following condition (14) is satisfied at all points in the
τi =
r fsmc fsmc
∑ ∫ µ B j (τ i ) dτ i state space to guarantee the Lyapunov stability criteria.
j =1 Γ i
τ ismc _ crisp ( sˆi ) ≤ τ ifpd _ crisp (sˆi ) ∀ sˆi (14)
bij is
the center of the implied fuzzy set corresponding to
the rule j, r is the total number of rules and Whilst maintaining the above (14), parameters of the
fsmc fsmc fsmc fuzzy PD controller can be tuned in order to satisfy the
∫ µ B j (τ i ) dτ i denotes the area under µ j (τ i ) .
Γ i Bi performance requirements.
Fuzzy SMC (11) approximation of the smoothed SMC
25
20
eˆ!i

steer angle
(degrees)
τˆi fpd Z PVL
15
NVL NL NM NS PSPM PL 10
NVL NVL NVL NVL NVL NVL NLNM NS Z 5
NL NVL NVL NVL NVL NL NM NS Z PS 0
NVL NVL NVL NL NM NS Z PS PM 0 1 2 3 4 5 6
eˆi NM (a) time(s)
NS NVL NVL NL NM NS Z PS PM PL 1
0.8
Z NVL NL NM NS Z PS PM PL PVL 0.6

error(degrees)
0.4
PS NL NM NS Z PS PM PL PVL PVL 0.2

tracking
0
PM NM NS Z PS PM PVL PVL
PL PVL -0.2
-0.4
PL NS Z PS PM PL PVL PVL
PVL PVL -0.6
-0.8
PVL Z PS PM PL PVL PVL PVL PVL PVL -1 0 1 2 3 4 5 6
(b) time(s)
4

control voltage (V)


3
Table 1 Equivalent state space rule base 2
1
0
-1
-2

6. Experimental Results -3
-4 0 1 2 3 4 5 6
(c) time(s)
Experiments were carried out to assess the performance
of SMC, fuzzy SMC and fuzzy PD controllers. Each
Figure 2 Sliding mode controller, (a) steer angle, (b)
controller was given a trapezoidal steer angle profile
tracking error, (c) control voltage
starting from a zero angle.
Figure 2 shows the SMC performance with a boundary
layer. Width of the boundary layer was chosen to reduce
25
the control chatter. Smaller boundary layers give better
20
steer angle

accuracy at the expense of high control torque chatter.


(degrees)

15
Figure 3 shows the tracking performance of the fuzzy 10
5
SMC, which was synthesized using the SMC controller.
0
Fuzzy SMC tracking performance is very similar to that 0 1 2
(a)
3 4 5
time(s)
6
1
of SMC (Figure 2) in terms of tracking accuracy and 0.8
0.6
error(degrees)

control output. Further, it was observed that tighter 0.4


0.2
tracking

0
spacing of membership functions around the origin yields -0.2
-0.4
better tracking accuracy, however, with increased control -0.6
-0.8
-1 0
chatter. This is very much similar to the behavior of the 1 2
(b)
3 4 5
time(s)
6
4
equivalent SMC controller with changes in the boundary
control voltage (V)

3
2
layer. 1
0
The tracking performance of the synthesized fuzzy PD -1
-2
controller based on the fuzzy SMC is shown in Figure 4. -3
-4 0
It is seen that the performance of the fuzzy PD controller 1 2
(c)
3 4 5
time(s)
6

is very similar to the fuzzy SMC and also to the SMC.


Again, it was observed that a higher density of
membership functions around the origins yields better Figure 3 Fuzzy sliding mode controller, (a) steer angle,
accuracy and more control chatter. Nature of membership (b) tracking error, (c) control voltage
functions around the origin determines the shape and
thickness of the effective boundary layer of the equivalent
SMC and hence the observed behavior.
the gain parameters would be different. Figure 5 shows
25
the improvement in tracking performance with the new
20
steer angle

fuzzy P(I+D) controller.


(degrees)

15
10
5 25

0 20

steer angle
0 1 2 3 4 5 6

(degrees)
(a) time(s) 15
1
0.8 10
0.6
error(degrees)

0.4 5
0.2
tracking

0 0
-0.2 0 1 2 3 4 5 6
-0.4 (a) time(s)
-0.6 1
-0.8 0.8
-1 0 1 2 3 4 5 6 0.6

error(degrees)
(b) time(s) 0.4
4

tracking
0.2
control voltage (V)

3 0
2 -0.2
-0.4
1 -0.6
0 -0.8
-1 -1 0 1 2 3 4 5 6
-2 (b) time(s)
-3 4

control voltage (V)


-4 0 1 2 3 4 5 6
3
(c) time(s) 2
1
0
Figure 4 Performance of fuzzy PD controller (a) steer -1
-2
angle, (b) tracking error, (c) control voltage -3
-4 0 1 2 3 4 5 6
(c) time(s)

Integral action
Figure 5 Performance of fuzzy PD controller (dotted
In the designed fuzzy PD control scheme, the steady curve) and fuzzy P(I+D) controller (solid curve)
state error is mainly dependant on the input normalization
gain and the distribution of membership functions of the
linguistic variable, “angle error”. Selecting higher
normalization gains as well as selecting densely packed 7. Conclusion
membership functions near the origin can minimize the
For a class of nonlinear systems characterized by AGV
steady state error. However, both methods will increase
dynamics, stable fuzzy SMC, PD/PID control laws can be
the control chatter. One of the ways to overcome that
synthesized using sliding mode control theory. The
problem is to introduce an integral part as a separate input.
synthesized fuzzy controllers yield performance similar to
With two inputs and each input consists of 7 membership
the equivalent sliding mode controllers. There is not much
functions, the rule base size is (7x7). After introducing the
to be gained from using a fuzzy SMC against an SMC
integral of error as a separate input, the rule base size
with fixed torque bounds, especially, if the inputs are less
becomes (7x7x7), which will make it more complex and
than three. However, the state space equivalent of the
computationally expensive. Without increasing the
SMC is advantageous in that it gives more degrees of
number of inputs we can incorporate integral action by
freedom in performance tuning and also provides for the
redefining the normalized switching surface as follows:
( ) (13) inclusion of heuristic control knowledge, which is usually
sˆi = eˆi + eˆ!i + eˆ dt ∫ i available in terms of simple state variables. Another
Now, we may introduce a new state variable equal to important consequence of the fuzzy control law
(eˆ! + ∫ eˆ dt ) .
i i
Following the derivation detailed in sections development presented is that it shows how additional
state variables, such as a variable's derivative and integral,
3, 4, and 5, we may obtain an equivalent fuzzy P(I+D) can be incorporated into the controller by suitably
controller. The structure of the rule base for this choice of modifying the switching surface. This permits the
inputs will correspond to Table 1, although the scales and treatment of linear combinations of state variables (e.g.
D+I), as inputs to the fuzzy controller thus simplifying the
rule base, computational complexity, and memory
requirements, especially when the state inputs exceed
two.

References
[1] W. S. Wijesoma and K. R. S. Kodagoda, "Synthesis of
stable fuzzy PD/PID control laws for robotic
manipulators from a Variable Structure Systems
standpoint", Lecture notes in Computer science,
Springer, May 1999, pp495-511.
[2] W. S. Wijesoma and R. J. Richards, "Robust trajectory
following of robots using computed torque structure
with VSS, "Int. J. Control", Vlo.52, No.4, 1990.
[3] Xu Guangyang, Dynamic modeling and control of
non-holonomic car-like vehicle, Technical report,
Nanyang Technological University, Singapore, June
1998.
[4] K. R. S. Kodagoda, W. S. Wijesoma and E. K. Teoh,
"Fuzzy speed and steering control of an AGV",
submitted to The IEEE transactions on control systems
technology.
[5] R. Palm,"Sliding mode fuzzy control", IEEE Int. Conf.
on Fuzzy systems, Sandiago, 1992, pp.519-526.
[6] W. S. Wijesoma, "Fusion of computational intelligence
with sliding mode control for robot control", Procs. of
the IASTED Int. conf. on ASC, Aug.1999,Hawaii,
pp.49-53.
[7] A. Kagma and A. Rachid, "Speed, steering angle and
path tracking controls for a tricycle robot", Procs. of
the IEEE int. symp. on computer aided control system
design, Dearborn, 1996, pp.56-61.
[8] Z. Zalila, F. Bonnay and F. Coffin, Lateral guidance of
an autonomous vehicle by a fuzzy logic controller",
IEEE Int Conf on systems, man and Cybernetics, Vol.2,
1998, pp.1996-2001.
[9] T. Hessburg and M. Tomizuka, "Fuzzy logic control
for lateral vehicle guidance", IEEE control systems
magazine, Vol. 14, 1994, pp. 55-63.
[10] C. D. Lee, S. W. Kim, Y. U. Yim, J. H. Jung, S. Y.
Oh and B. S. Kim, "Longitudinaland Lateral control
system development for a platoon of vehicles",
IEEE/IEE/JSAI Conf on Intelligent Transportation
Systems, Japan, 1999, pp 605-610.

View publication stats

You might also like