Artificial Fuzzy-PID Gain Scheduling Algorithm Design for Motion Control in Differential Drive Mobile Robotic Platforms

Mobile robots are promising devices which are dedicated to human comfort in all areas. However, the control algorithm of the wheels of mobile robot is entirely challenging due to the nonlinearity. Recently, the classical PID (proportional-integral-derivative) controllers are frequently used in robotics for their high accuracy and the smooth determination of their parameters. A robust approach called fuzzy control which is based on the conversion of linguistic inference sets in a suitable control value is a widely used method in industrial system control in our days. A new challenging method to solve the problem of intelligent navigation of nonholonomic mobile robot is suggested. In this work, the presented methodology is based on three hybrid fuzzy logic PID controllers which are adapted to guarantee target achievement and trajectory tracking. A fuzzy-PID control algorithm is designed with 2 inputs and 3 outputs. By the information given by the system response, error and error derivate can be used to extract and adopt the PID controller parameters: proportional, integral, and derivative gains. Besides, a tuning value A is introduced to improve the resulted response in terms of speeding up and reducing error, overshoot, and oscillation, as well as reducing ISE and IAE values. A modelization of a differential drive mobile robot is presented. The developed algorithm is tested and implemented to this mobile robot model via Simulink/MATLAB.


Introduction
Mobile robots have been a crucial element of our modernized life. Robots can be described as intelligent machines that can facilitate many activities in different areas such as industry, medical, military, and family services. e ability of robot to perform tasks with potential risks in an unknown environment is considered as a strong characteristic due to the incapability of humans to reach some hazardous regions and targets. In robotic research, one of the most important matters is motion control, which is how to make the robot to track or to navigate from a start point to a desired target without collision with obstacles. By reason of existence of motion planning in practically all mobile robotics applications, researchers are concerned by different control approaches of mobile robots. e design process of mobile robotic platforms is not a simple task; as a whole, the process consists of various stages and aspects, in particular, the platform design, the electric motor sizing, control algorithm design, modeling, and verification process. Beside all this, and due to the fact that the mobile robot is a time variant system, there are various factors that affect the design process, including the platform's operational parameters; the surrounding environment and the road conditions are always varying.
In the field of mobile robotic platforms design, one of the most important design tasks is the motion problem. is problem is categorized into three categories: navigation, path following, and trajectory tracking. e control algorithm plays an important role in the working ability of mobile robotic platform; therefore, the overall mobile robot system with its subsystems and components must be designed to be robust and adaptive system, as well as operates with improved dynamic and with a good steady state system performances [1].
Research on PID controllers is a very big challenging area that attracts many scientists. Large number of methods and approaches are discussed for years. An optimal robust PID controller is developed using future search algorithm which is dedicated to systems with uncertain parameters [2].
is controller demonstrates a good stability and robustness [2].
Another approach-based bacterial foraging optimization algorithm is well used to extract the optimized parameters of PI controller in order to be applied to an electrical grids system. is approach gives a best performance compared to the classical genetic algorithm approach [3]. For the design of a shipper controller to energy management instead of the expensive classical solutions, a novel approach-based fuzzy sliding mode was developed in order to maintain the frequency output under its limit and ensure system stability for systems with uncertainties [4]. e problem of nonlinearity was discussed and treated in a lot of papers. Different control methods were used to solve this problem like improved neural networks control system applied to a robotic manipulator [5]. e problem of controlling nonlinear systems is also resolved by other approaches such as fuzzy logic controller and fuzzy-PID controllers.
e majority of industrial control approaches are based on conventional control method like PID by cause of its reliability and simplicity. Unfortunately, the PID controllers present some drawbacks like the reduction of PID performances towards nonlinear systems. Also, applying PID algorithm stability and tracking can be achieved, but not accuracy. Other controlling approaches like the famous FLC (fuzzy logic controller) are presented as an alternative of classical PID controller. ese controllers-based artificial fuzzy logic algorithm gained significant popularity in the last years. Fuzzy algorithm can be designed to propose solutions for solving motion problem including performing path planning, local navigation, global navigation, steering control, and rate control of a mobile robot [6,7]. e FLC controller uses human reasoning to produce a suitable output with respect to eventual limitations. ese controllers are widely used to produce control outputs for complex and/or nonlinear systems, thanks to its capability to handle with heuristic and imprecise information. e flexibility of FLC to establish nonlinear control algorithms is a well-known argument to use these algorithms, especially in motion control and tracking of mobile robots [1,[6][7][8][9][10][11].
Fuzzy-PID control design, the controller that mixes the PID with fuzzy logic systems, is called the hybrid fuzzy-PID controller. Fuzzy logic PID control design is the process of adjusting the parameters of the PID controller adopting the fuzzy logic. e online tuning of parameters of PID controller-based fuzzy logic systems makes it more compliant [12,13].
Large number of researchers are interested by the advantageous hybrid fuzzy-PID controller in different areas like controlling DC motor speed, hydroxy generators, and synchronous motors [12][13][14][15][16]. An improved dynamic response with short response time, smooth overshoot, and a low SSE error are perceived and confirmed by them [12][13][14][15][16]. e flexibility of fuzzy logic controller as well as the simplicity of PID algorithms are exploited to guarantee a good path tracking of our mobile robot. e main contribution in this presented study is the adoption of hybrid fuzzy-PID-based dynamic model to control a nonholonomic WMR (wheeled mobile robot). e effort in this paper is demonstrated in the modelization as well as the extraction of the dynamic model of our robot. A novel parameter A is added in the flowchart of hybrid fuzzy-PID gain scheduling algorithm. is great parameter allows overcoming some drawbacks like oscillations in robot motion curvature. Also, a software prototype model for mobile robot platform is advanced. e importance of this prototype is to testify the developed approach in different design stages; in particular, this can help designers to identify mobile robot system level problems at fresh design stage. e developed platform ensures design modifications process and helps in solving the motion control problem in terms of assessing designed control algorithm for achieving desired output motion aspects. e designed hybrid fuzzy logic controller is developed and applied to a mobile robot dynamic model and, finally, validated via the performed software platform.
Fuzzy-PID gain scheduling algorithm for path tracking is to be designed and tested. e work is written as follows: in Section 2, system methodology and working principle are presented. In Section 3, modeling of mobile robotic system is included. In Section 4, the hybrid fuzzy-PID gain scheduling algorithm design is presented. In Section 5, testing, results, and discussion are presented; finally, in Section 6, conclusions and future work are given.

System Methodology and Working Principle
e structure of the direct action fuzzy algorithm with two inputs and one output is shown in Figure 1(a). ere are different types of fuzzy algorithm structures; in this work, the applied hybrid fuzzy-PID control algorithm type is the artificial hybrid fuzzy-PID gain scheduling algorithm; the structure of this algorithm is shown in Figure 1(b). In this algorithm structure type, depending on system error value, the controlled system response state, and the effect of each of PID gains K P , KI, and K D on system response, the knowledge base and fuzzy inference engine are developed and used to assign the values of the conventional PID gains online. e final control signal, to drive the controlled system, is still generated by the conventional PID algorithm [8,9]. Figure 1(c) shows flowchart representation of the fuzzy algorithm working principle and PID gain calculations. Meanwhile, representing using block diagrams of the overall mobile robotic platform system motion control with components layout is shown in Figure 1(d).
In MATLAB/Simulink environment, a software prototype model for mobile robotic platform is developed. e prototype is developed to help the designers in different design stages, in particular, identifying mobile robot system level problems at early design stage, design modifications process, and ensuring that all design specifications and requirements are met, in addition to help in solving the motion control problem in terms of assessing designed control algorithm for achieving desired output motion aspects. e software prototype model shown in Figure 2(d) was built considering the factors that affect the design process including the mobile robot operational parameters, the working environment, and the road/path conditions. e prototype is developed by integrating the models of the next subsystem: electric machines, kinematics, dynamics, odometry, sensors, control algorithms, as well as modeling the data readings and inputting components, and the performance indices modeling. ese models shown in Figure 2 are built to result in maximum output data in graphical and numerical forms. Beside numerically displayed values, the built software prototype returns the next graphical data: platform's angular and linear speeds, linear speeds of left and right wheels, the robot orientation direction, and the curvature covered distance, in addition to this, left and right wheels positions and curvature. Moreover, the software prototype is developed to return the data needed to assess both the sizing of the electric motor and the design control algorithm and, finally, the electric motor's response in terms of the consumed current and performance indices to achieve desired linear speed under given load torques.
In the next paragraph, the equation and mathematical models used to represent subsystems and build Simulink submodels are summarized: the resultant force of all the acting forces on a running mobile robotic platform is the sum of all acting forces and is given by equation (1). is resultant force is converted to torque by the robot's wheels, axels, and speed as given by equation (2). e linear velocities of the two left υ L and right υ R wheels can be calculated in terms of mobile robotic platform angular speed as by equation (3). In this equation, R is the distance between two points, the ICC point and the midpoint P, between the two wheels. R can be found by equation (4). e curvature, which is the inverse of the radius R, gives equation (5). e angular velocity of the platform can be represented by equation (6)     Computational Intelligence and Neuroscience calculated by equation (7). e two components of linear velocities in x-axis and y-axis direction are given by equation (8). e mobile platform angular position can be found as by equation (9). e overall mobile robot platform system based on the electric DC motor system, which can be represented in transfer function form with gear ratio, n, is given by equation (10). e power driver (amplifier) circuit with gain K a can be represented by transfer function given by equation (11):

Hybrid Fuzzy-PID Gain Scheduling
Algorithm Design e proposed hybrid fuzzy gain scheduling algorithm is developed based on the following works [7,[22][23][24]. e rule base look-up tables for calculating and relating the PID gain values are listed as Tables 1-3. To develop the knowledge from the rule base and built inference engine, the applied rule inference method is the Mamdani method, and the used defuzzification approach was the centroid method [7,24]. To express the knowledge levels and represent lin- In case the resulted overall system response requires further improvement, in terms of speeding up response and reducing each of the resulted overshoot, oscillation, and error, as shown in Figure 3(a), a single tuning parameter A is used for scaling the system error value. Tuning the value of this parameter will improve the resulted response in terms of speeding up and reducing error, overshoot, and oscillation, as well as reducing ISE and IAE values.
e Simulink models representing the developed fuzzy-PID algorithm submodel and the PID algorithm sub-block are shown in Figures 3(b) and 3(c). e designed artificial fuzzy algorithm in MATLAB/Simulink in terms of membership function with linguistic variables and their universe of discourse ranges are shown in Figure 4(d). Figure 2 shows an integrated mobile platform software simulation prototype model which is employed to test and assess both the designed hybrid fuzzy algorithm and system responses, and the robotic system is tested for achieving 6 Computational Intelligence and Neuroscience       Computational Intelligence and Neuroscience various robot tracking motion profiles. e utilized motor electric and dimensional parameters to be used in the simulation and testing process are listed in Table 4. e presented tests are discussed as follows:

Testing, Results, and Discussion
(i) Test (1): testing the control algorithm for motion tracking in terms of achieving straight line motion with desired linear speed of 0.5 m/s. Beside numerically displayed values listed in Tables 5-7, the software prototype returns the overall robotic system and subsystems responses in graphical data curve forms, as depicted in Figures 4(a)-4(d).
Analyzing the resulted data in numbers and graphical forms show that the robotic system achieved desired linear speed of 0.5 m/s, with acceptable performance measure. To further improve the resulted response and reduce oscillation and overshoots, the tuning parameter A is tuned to have the values of 0.02765. (ii) Test (2): Test (2) is depicted to test the mobile robotic platform using the designed control algorithm; for turning to the right, the left motor is subjected to a signal with 5% decrease compared to the right one. So, the right motor speed is decreased to 0.475 m/sm, while the left motor speed is remained to be 0.5 m/s; this result is numerically displayed in Tables 5-7, and response curves are depicted in Figures 4(a)-4(d). Analyzing the resulted data shows that the robotic system turned to the left direction with linear speed of 0.4875 m/s and angular speed of 0.0625 rad/s. e robotic system tracked the desired motion path, as shown in  (3) is dedicated to test the ability of the system to follow a straight line motion, with a desired linear speed from 0 to 3 m/s, and this speed is maintained for a specific time and finally reduced to attain zero; these results are numerically        Tables 5-7 and response curves are depicted in Figure 6. Analyzing the resulted data shows that the robotic system followed the desired motion profile, but with some oscillation. As a remedy to this oscillation, a soft tuning of parameter A (decreasing) can be applied which will remove this effect.
It is concluded after the analysis of these tests that the nonholonomic mobile robot followed its desired motion profile with acceptable performance measures. However, some oscillations are depicted which are removed by the soft tuning parameter A. e proposed control methodology presents some advantages such as simplicity in design, assured stability,  Computational Intelligence and Neuroscience and optimal and precise control specifications that are proved by the convergence of the tracking error to a minor value. Simulation and experimental ensured by developed platform verified the sufficient and consistent results in path tracking.

Conclusions
e classical PID controllers presented many limitations like accuracy and the initial condition problems are overcome by the hybrid fuzzy-PID controller. A strong design of a hybrid fuzzy-PID controller is suggested in this work to perform robot navigation and tracking. A trajectory tracking is achieved using the hybrid fuzzy-PID controller which presents efficient results. Both circular and straight line paths are tested to demonstrate the utility of the developed motion control approach. A new parameter A is introduced in the flowchart of hybrid fuzzy-PID gain scheduling algorithm.
is strong parameter allows overcoming some drawbacks like oscillations in robot motion curvature. A developed differential drive mobile robotic platform is presented with a detailed modelization. e mobile robot prototype is developed by integrating the models of the next subsystem: electric machines, kinematics, dynamics, odometry, sensors, control algorithms, as well as modeling data readings and inputting components, and the performance indices modeling. is platform is used to test and evaluate the designed algorithm based on Simulink/MATLAB. An implementation of the obtained control design methods via the developed mobile robot platform is discussed for three different types of tests: Test (1): testing the control algorithm for motion tracking in terms of achieving straight line motion with desired linear speed of 0.5 m/s; Test (2): testing the mobile robotic platform, using designed control algorithm, for turning to the right by subjecting the left motor to signal with 5% less than the right one; and Test (3): testing the system to follow a straight line motion but with motion profile to reach desired linear speed from zero to 3 m/s. Sufficient and consistent results in path tracking are obtained which confirm the utility of combined fuzzy and PID control approach. Based on these findings, as future works, some algorithms of optimization like particle swarm optimization or genetic algorithms will be exploited to adapt the fuzzy-PID parameters, and developing the motion control approaches in dynamic environment will be our objective in future works. Besides, we will be interested by the nonholonomic mobile robot with two different motors to discuss with details the problem of stability of robot motion recently in progress.

Data Availability
Data are available on request to the corresponding author.

Conflicts of Interest
e authors declare that they have no conflicts of interest.