Fuzzy PID
Fuzzy PID
Fuzzy PID
Abstract: The motion model of omnidirectional mobile robot is created, the fuzzy PID control method is designed,
and the motion control parameters are adjusted online. Matlab is used to simulate the fuzzy PID control effect of the
robot, and the actual test of the fuzzy PID controller on the robot path tracking control effect. Computer simulation and
actual test results show that in the path tracking control of the robot, the fuzzy PID controller has faster response,
smaller overshoot, less fluctuation, stable change and stronger system stability than the conventional PID controller.
Key Words: Mecanum wheel, Omnidirectional mobile robot, Fuzzy PID
978-1-7281-0106-4/19/$31.00 2019
c IEEE 5149
verify the actual effect of the fuzzy PID control robot on
path tracking and correction.
between expected pose (x 0ˈ y 0ˈ θ 0 )T and actual pose
2 OMNIDIRECTIONAL MOBILE ROBOT
(x sˈ y sˈ θ s )T is compared, and the desired speed of
KINEMATICS MODELING the robot is obtained by using fuzzy PID control method.
According to the inverse kinematics equation of the robot,
The Mecanum wheel comprises a hub and a set of rollers the expected rotational speeds of four wheels
mounted on the outer edge of the hub, with the roller axis
situated at an angle to the hub axis and the roller being (ω1ˈ ω 2ˈ ω3ˈ ω4 )T are calculated.
rotatable about its own axis. Robots using Mecanum
wheels can travel freely in tight working spaces without
3 Design of motion controller based on fuzzy
the need for large turning radii. Through the combined use PID
of the wheels and the coordinated control of rotational Omnidirectional mobile robot is a typical multi-input
speed and direction of each wheel, the vehicle body can be multi-output nonlinear system, and it has one more degree
moved and rotated in any direction in the plane [5], of freedom than ordinary wheeled mobile robot, so it is
considerably improving the transportation efficiency. difficult to control. In addition, due to the wheel structure,
Fig. 1 shows the wheel layout of the omnidirectional the motion process of the omnidirectional mobile robot
mobile robot. Let the generalized speed of the robot be based on Mecanum wheel will slip, which will inevitably
T
˄v x , v y , wz˅ T
㸪 ( w1 , w2 , w3 , w4 ) to indicate the affect the tracking accuracy of the robot. Combining the
actual operating conditions, the motion control system
rotational speed of each wheel. The angle between the axis design which combines fuzzy control and PID control
of the roller and that of the hub is the half-length and structure parameter self-tuning fuzzy PID algorithm to
half-width of the robots a and b, respectively, whereas the control the motor, the controller has the advantages of
wheel radius is R. fuzzy control is flexible and adaptable, and has the
characteristics of high precision of PID control, make the
motion control system for the high real-time performance,
strong robustness and stability design key points, and
through the fuzzy control rule base expansion, for the
motion control system is convenient to add other functions
[6].
Using linear CCD is installed on the robot to the robot car
positioning, actual output robot pose, and then compared
with expected position, get the distance deviation and the
deviation change rate ec, e input deviation to fuzzy
controller, through fuzzy reasoning, output by adjusting
Fig. 1 Omnidirectional mobile robot wheel layout the parameters of the ratio of the driven motor, by
adjusting the motor speed and direction of complete
According to kinematics analysis, the positive kinematics control the robot posture .
equation of the Mecanum wheel robot is : 3.1 Structure of fuzzy PID controller
ܸ௫ െ ߙ݊ܽݐ ߙ݊ܽݐെ ߙ݊ܽݐെ߱ ߙ݊ܽݐଵ
ͳ ͳ ൦߱ଶ ൪ (1) The fuzzy self-tuning PID parameter control system is
ܸ௬ ൩ ൌ ͳଵ ͳ
ோ
ସ ଵ ଵ ଵ ߱ଷ shown in Fig. 2, which is mainly composed of two parts:
߱௭ െ െ
బ బ బ బ ߱ସ the PID with adjustable parameters and the fuzzy
˖ controller. Parameters can be adjusted PID to complete the
control of the controlled object. Fuzzy controller is used to
߱ଵ െ݈ܿ ͳ ߙݐ
߱ଶ
ܸ௫ conduct online self-tuning of PID parameters kp, ki and kd
ଵ ܿߙݐ ͳ െ݈
൦߱ ൪ ൌ ൦ ൪ ܸ௬ ൩ (2) by fuzzy reasoning method, so as to meet the requirements
ଷ ோ െܿͳ ߙݐ ݈
߱ସ ߱௭ of system control for different e(n) and ec(n), so that the
ܿ ͳ ߙݐെ݈
controlled object has good dynamic and static performance
[7].
Among the equationsˈ l0 = l + L cot α Ǥ From Equation The PID controller adopts the classical PID incremental
(1) and (2)ˈthe different steering and rotational speeds of control, and its expression is as follows:
the four wheels can be used to move the robot to any ሺሻ ൌ ሺ െ ͳሻ ୮ ሾሺሻ െ ሺ െ ͳሻሿ ୧ ሺሻ
position and direction. This condition serves as the ݇ୢ ሾሺሻ െ ʹሺ െ ͳሻ ሺ െ ʹሻሿ (3)
theoretical basis for controlling the omnidirectional mobile ሺሻ ൌ ሺሻ െ ሺሻ (4)
robot; in the robot path tracking, firstly, the difference
5150 The 31th Chinese Control and Decision Conference (2019 CCDC)
Where, u(k) is the output of the controller; r(k) is the 3.3 self-tuning rules of parameters
expected pose given; y(k) is the actual pose of the robot;
In order to comprehensively guarantee the dynamic and
e(k) is the deviation signal of the two.
static performance of the system, different PID control
r e u v
Parameter adjustable
PID
Controlled
object parameters can be considered in different stages of the
+ - dynamic process of the system. According to the influence
d/dt
KP KI KD of various control performance indexes, the self-tuning
requirements of PID parameters for the controlled process
ec Fuzzy controller under various errors and error change rates are
summarized [9]:
Fig. 2 Fuzzy self-tuning PID parameter control system 1) Under a large deviation, to achieve a better
fast-tracking performance in the system response and
3.2 Variables and membership functions avoid the differential saturation that may be caused
In this paper, the design of the fuzzy controller for two by the instantaneous variation in the initial deviation,
input three output structure, its input difference in the larger KP and the smaller KD should be
actual trajectory and target trajectory e and difference considered. The KI should be limited to avoid a large
rate of change of ec, its output to the adjustment of PID overshoot of the system response.
parameters kp, ki, kd value,namelyǻkp, ǻki, ǻkd. 2) Under a medium-level deviation, to achieve a
smaller overshoot in the system, a smaller KP and
Their linguistic variables, basic domains, fuzzy subsets,
appropriate KD and KI should be considered to
fuzzy domains and quantitative factors are shown in Table
ensure the response speed.
1.
3) When the deviation is relatively small, large KP and
Table1. Fuzzy input and output KI should be considered for desirable steady-state
performance of the system. The value of KD, which
is usually considered as a medium value, can be
larger when the variation rate of deviation is small.
The KD value should be smaller when the deviation
rate is larger.
The values mentioned in the above self-tuning
requirements are all relative to the initial value of the
parameter, and the PID parameter applied in practice is
self-tuning on its initial value, that is:
ൌ ο
In E and EC and the output fuzzy variables KP, KI, ൝ ୍ ൌ ୍ ο ୍ (5)
ୈ ൌ ୈ ο ୈ
KD language variables and the theory of domain is
Note: where KP0, KI0, and KD0 are the initial values of P, I,
determined, must first determine the membership degree
of fuzzy language variables [8]. The commonly used and D, respectively, Δ KP, Δ KI and Δ KD are the
membership functions are b-spline basis function, gaussian self-adjusted PID parameters obtained by fuzzy reasoning.
membership function, triangle membership function, etc. The fuzzy relation model adopts a set of if-then fuzzy rules
Considering the requirements of simple design and to approach the input and output relations of the system;
real-time performance, triangle membership function is its fuzzy rules are as follows: If e is PB, and ec is NM, then
adopted. As shown in Fig. 3. KP is NS, KI is ZO, and KD is NS. The following is a list of
fuzzy control rules.
Table2. KP control rule table
The 31th Chinese Control and Decision Conference (2019 CCDC) 5151
Table3. KI control rule table 3 Simulation and experiment
In order to illustrate the advantages of fuzzy PID control,
we compare it with ordinary digital PID control.
MATLAB Simulink function module is used to simulate
the fuzzy control PID, and verified by the real object.
In the MATLAB/Simulink toolkit, select the mathematical
operation modules and tool modules required by the robot
fuzzy control algorithm and drag them to the simulation
design window. Connect each module according to the
requirements of the fuzzy control algorithm, set the
Table4. KD control rule table parameters of each module, and finally complete the
simulation model of the fuzzy controller, as shown in
Fig.5.
The output obtained by fuzzy inference is a fuzzy set, and Fig. 5 Robot fuzzy controller simulation model
U(t) is a distribution combination of different values of the
output variable domain. The output is generally expressed The conventional PID control simulation model is built, as
as an irregular, segmented membership function and shown in Fig. 6.
cannot be directly used. In the physical control process,
the amount of control applied to the control object must be
an exact value. Thus, the fuzzy output must be sharpened
to a meaningful value. In this paper, the weighted average
method (center of gravity method) is used to clear the
fuzzy output, that is, the elements in the output and the
corresponding membership are combined to obtain the
average value[10]. For the discrete universe, the Fig. 6 Robot conventional PID controller simulation model
expression is as follows: 3.1 MATLAB simulation process and result analysis
σ
షభ ௨ ௭
ݖ ൌ σ
(6) When the simulation is set, the sampling time of the
షభ ௨
Note: where zi denotes the various elements in the output computer is 0.02ݏ, the robot speed is 0.5݉Ȁݏ, and the
fuzzy set U, ui represents the corresponding membership robot position deviation at the initial moment is 0.1m,
degree, and z0 is the judgment result obtained by applying angle deviation is 0o, the target motion curve is y=0.1, and
the weighted average method to the fuzzy set. the fuzzy PID controller and the conventional PID
controller are respectively used for simulation.
Fig. 4 shows the fuzzy PID control program flow chart.
In PID control, according to the existing kinematics model,
Program entry
the parameters are obtained by trial and error method: kp
Cuurent sampling Caluculate current
=5, ki=1.2, kd=1.
y(k) kpȽkiȽ kdȽ
Fig. 7 is the simulation diagram of the motion trajectory of
e=r(k)-y(k)
the fuzzy controller and the conventional PID controller.
PID operation
ȴe=e(k)-e(k-1)
Fig. 8 shows the simulation diagram of motion deviation
Controlled variable
of fuzzy controller and conventional PID controller.
e˂ȴe fuzzification
Output
Ambiguity-resolvin Returns
5152 The 31th Chinese Control and Decision Conference (2019 CCDC)
direction along the X-axis and to the left in a positive
direction along the Y-axis. Establish the data transmission
between the camera and PC, record the robot's movement,
and save the track information in the form of coordinates.
The position deviation between each trajectory point and
the straight black belt is calculated. The robot driving
direction is positive, left and right deviation is positive,
and right and left deviation is negative.
The 31th Chinese Control and Decision Conference (2019 CCDC) 5153
of 0.006 ݉ . Within about 1.1m, the robot quickly [2] W. Yizhi, C. Gegong, Motion restricted conditionand singular
configuration for mecanum wheeled omni-directional motion
converges to the predetermined trajectory.
system, Journal of Shanghai Uni-versity: Natural Science, Vol. 15 ,
According to the comparison of the actual test results of No.2 , 181㸫185, 2009.
the above two controllers and the trajectory tracking [3] Z. Yunan, Tian Peng, Wang Shuangshuang, Parametric solid
control of the robot, the fuzzy PID controller exhibits a modeling of omnidirectional wheelbased on Solid Works API,
faster response, less overshoot and fluctuation, and stable Modern ManufacturingEngineering㸪2013( 2) , 59㸫62㸬
change and system than the conventional PID controller. [4] L. Zhongxin, Z. Chunliang, W. Zhanfu, Omnidirectional mobile
platform motion analysis andsimulation, Machinery and
4 CONCLUSION Electronics, 2013 ( 8), 16㸫 19㸬
[5] Z. Liming, W. Zhenyu, W. Xu, Visual AGV two-wheel differential
On the basis of establishing the kinematics model of steering fuzzy control, Journal of Kunming University of Science
omnidirectional mobile robot and introducing the fuzzy and Technology (Science and Technology Edition), Vol.4, 28-32,
control principle, this paper designs the fuzzy PID 2007.
controller of the robot and conducts simulation analysis on [6] W. Xingsong, Mecanum wheel all-round mobile robot technology
the MATLAB platform. Finally, the control effect of fuzzy and its application, Machinery Manufacturing and Automation,
Vol.43, No.3, 1-6, 2014.
PID controller on AGV path tracking is tested. Computer
[7] F. Feng, D. Zhiliang, and Z. Xu, Research on self-organizing fuzzy
simulation and actual test results show that in the AGV controller of AGV automatic navigation vehicle, Microcomputer
trajectory tracking control, the fuzzy PID controller has Information, Vol.24, No.4-1, 78-80, 2008.
faster response, smaller overshoot, less fluctuation, stable [8] W. H. Huang, Fuzzy Control Systems and Applications, Publishing
change and stronger system stability than the conventional House of Electronics Industry, Beijing, China, 2012.
PID controller. [9] H. X. Li, S. K. Tso, Quantitative design and analysis of fuzzy PID
control: A step towards autotuning, International Journal of
REFERENCES Systems Science, Vol.31, No.5, 337-341,2000.
[10] S. Doudou and F. Khaber, Direct adaptive fuzzy control of a class of
[1] W, Shuangshuang㸪Z. Yunan㸪Wang Heyuan, Trajectory tracking MIMO non.affine nonlinear systems, International Journal of
based on fuzzy sliding mode controlfor omnidirectional platform, Systems Science, Vol.43, No.6, 1029-1038, 2012.
Drive and Control㸪Vol.40, No.8 , 63㸫66, 2012.
5154 The 31th Chinese Control and Decision Conference (2019 CCDC)