Journal of and Vol. 3, No. 3, June 2015

Feedforward and Kinematics Controller for Wheeled Mobile Robot Trajectory Tracking

Muhammad Asif and Muhammad Junaid Khan National University of Sciences and Technology, Islamabad, Pakistan Email: {asif.arif, juniad}@pnec.nust.edu.pk

Muhammad Safwan and Muhammad Rehan Sir Syed University of Engineering and Technology, Karachi, Pakistan Email: [email protected], [email protected]

Abstract—In this paper, trajectory tracking of a differential input-output feedback linearization [7], [8] and back- drive nonholonomic mobile robot is presented. In addition stepping [1], and so on. However, the presented works to the complex relations of the , the have poor transient and steady state characteristics in the nonholonomic system adds complexity to the system which presence of disturbance and model uncertainties. In has been solved using the feed-forward and feedback fuzzy addition, most of the works use simple trajectories with logic controllers. An innovative scheme has been developed to track the reference trajectory in the presence of model constant linear and angular velocities. In this research uncertainties and disturbances. The performance work, an innovative kinematic controller is proposed for comparison of the proposed controller is done with the trajectory following to generate the kinematic velocities. standard backstepping controller and the simulation results The controller structure uses feed-forward and feedback show that the developed controller is best suited for the controllers. The feed-forward controller is designed based tracking trajectory problems. on reference positions and velocities along with error propagation model, whereas the feedback controller is Index Terms—WMR; trajectory tracking; kinematics; fuzzy designed using fuzzy logic. The effectiveness of the logic deigned controller is validated by computer simulations.

In addition, the performance and effectiveness of the proposed scheme is compared with standard kinematic I. INTRODUCTION controller. The lamniscate curve reference trajectory is In the recent years, the tracking and control of wheeled used for non-constant linear and angular velocities. mobile robots (WMR) has received lots of attentions The main motivation of this work is to design a from the robotic community because of many controller which can model the system with poor applications includes security, transportation, inspection transient and steady state error in the presence of and exploration. Due to the mechanical design and disturbances and model uncertainties. An innovative configuration, the WMR is classified into two categories: feed-forward and feedback controller is designed to cater holonomic and nonholonomic. Holonomic robots are above mentioned issues. Most importantly a difficult those in which the controllable degree of freedom is equal trajectory is chosen to test the controller so that the to total degree of freedom, whereas nonholonomic robots effectiveness of the controller may be verified. A have less controllable degree of freedom compare to total comprehensive program using MATLAB (Simulink) is degree of freedom and have restricted mobility [1]-[3]. developed to test the feasibility of entire work which Therefore, the controlling and trajectory tracking of would be presented later. In this paper, a Fuzzy logic nonholonomic WMR has been considered more controller is used which is more dynamic and can model challenging problem and many researchers proposed uncertainties in a better fashion. The novelty of this work various controllers [3]. is its comparison with the back stepping controller and In case of trajectory tracking, the WMR has to follow a the results shows the effectiveness of the proposed reference path either predefined or obtained from the controller. other WMR. The standard technique to solve this The breakup of the further work is structured as problem is to design a kinematics controller which follows: Section II discusses the modeling of the WMR. generates desired velocities based on position errors Section III presents the designing of feed-forward and compare to reference position. Various researchers have feedback kinematic controller. The simulation results are proposed the kinematic controller for trajectory tracking presented in Section IV. Finally Section V provides the based on “perfect velocity tracking” using e.g. fuzzy conclusion. control [4], neural network [5], adaptive feedback [6], II. KINEMATIC MODELING OF WMR Manuscript received March 3, 2014; revised July 15, 2014.

©2015 Engineering and Technology Publishing 178 doi: 10.12720/joace.3.3.178-182 Journal of Automation and Control Engineering Vol. 3, No. 3, June 2015

The first order kinematic model of unicycle mobile ̇ ( ) robot as shown in Fig. 1, with the presence of ̇ ( ) [ ̇ ( )] uncertainties, disturbances and non-holonomic ̇ ( ) constrained can be defined as [9] ( ) ( ) ( ) ( ) ( )

[ ( ) ( ) ( ) ( ) ] (5) ( ) ( )

where ( ) ( ) are the reference linear and angular velocities and define as

( ) (√ ̇ ( ) ̇ ( ) ) (6)

̇ ( ) ̈ ( ) ̇ ( ) ̈ ( ) and ( ) (7) ̇ ( ) ̇ ( )

III. FEED-FORWARD CONTROLLER DESIGN After defining the posture tracking error, next step is to design a controller that forces the posture tracking error to zero. Therefore, the kinematic controller for precisely following the reference trajectory is defined

Figure. 1. Nonholonomic model of unicycle mobile robot ( ) ( ) ( ) ( ) [ ] [ ] [ ] (8) ( ) ( ) ( ) ̇ ( ) ( ) ( ) ̇ ( ) [ ̇ ( )] [ ( ) ] [ ] where ( ) ( ) are the linear and angular ( ) ̇ ( ) velocities generated by kinematic controller. Whereas

( ) ( ) ( ) are the feed backward linear and ( ) [ ( ) ] [ ] ( ) (1) angular velocities and ( ) ( ) are the feed- ( ) forward linear and angular velocities. Feed-forward control velocities are calculated using ̇ ( ) ( ) ( ) ( ) ( ) ( ) reference velocities and error propagation mechanism. where ( ) and ( ) provides the centre point position of The calculated value of the desired feed-forward control vehicle at time t, ( ) is the orientation of the robot, ( ) action is used along with the delayed velocity error as ( ) is the linear velocity, is the angular velocity, ( ) is ( ) ( ) ( ) ( ) a Jacobian matrix which transforms the input velocities to ( ) [ ] [ ](9) ( ) ( ) ( ) robot velocities, ( ) representing the unmodeled dynamics or structural variations and d(t) is the where is the positive constant, ( ) ( ) disturbances and ( ) is a vector as shown below. ( ) and ( ) ( ) ( ) . ( ) ( ) ( ) ( ) (2) The feed-forward control action is computed based on velocity error ( ) generated by the previous incorrect In general the uncertainties and disturbances are control signal. assumed to be bounded, and define as ‖ ( )‖ and ‖ ( )‖ , where is the positive constant. IV. FEEDBACK FUZZY CONTROLLER DESIGN The kinematic control design objective is to follow the time varying reference trajectory defined as

( ) ( ) ( ) ( ) (3) The kinematic control is designed in such a way so as bring the position and orientation error to zero as with arbitrary initial error. The posture tracking error of the mobile robot is defined as follows

( ) ( ) [ ( )] Figure 2 Typical fuzzy logic control system ( ) ( ) ( ) ( ) ( ) Fuzzy control is very useful and effective tool for [ ( ) ( ) ] [ ( ) ( )] (4) approximating unknown system dynamics [10]. It offers human reasoning abilities to reject external disturbances ( ) ( ) and to capture model uncertainties which is difficult to The derivative of eq. (1) gives the posture tracking model using precise mathematical models. The main goal error as of Fuzzy Logic Controller (FLC) is to generate the

©2015 Engineering and Technology Publishing 179 Journal of Automation and Control Engineering Vol. 3, No. 3, June 2015

feedback linear and angular velocities in such a way that ∑ ̅ (∏ ( )) the error between the reference trajectory and the robot ( ) ( ) (12) trajectory is forced to zero so that the robot precisely ∑ (∏ ( )) tracks the desired trajectory. The general configuration of the fuzzy logic controller where ( ) is defined for product type of inference, (FLC), which is divided into four main parts [10]: centroid defuzzification and Gaussian membership fuzzifier, fuzzy inference engine, fuzzy rule base and functions, is the input vector, ̅ is the defuzzifier as shown in Fig. 2. In this paper, Multiple output at which ( ) attain maximum value, Input Single Output (MISO) fuzzy systems are consider which is expressed as ( ) , where is the adjustable parameter vector and

is the system input and is the system output as ( ) ( ) ( ) ( ) is the vector of the fuzzy basis function and ( ) is the Gaussian follows

( ) ( ( ( ) )) ̃ ( ) (10) membership function define as ̅̅̅ and ( ) [ ( ) ] (13)

( ) ( ( ( ) ( ))) ̃ ( ) (11) where , ̅ and ̅ are real defined in the range of where and are the output gains. The fuzzifier maps the observed crisp system input to the fuzzy sets . The inputs of first FLC are position error define in , whereas the defuzzifier performs the and its integral ∫ which outputs the linear feedback mapping from fuzzy sets to the crisp output space . The velocity ̃ . Second fuzzy controller uses the orientation mapping decision is based on the rule base and errors and as an input and generates the angular membership functions. The membership functions are feedback velocity as an output. The complete control defined in linguistic terms such as positive large (PL), structure of the proposed controller is shown in Fig. 3. positive medium (PM), positive small (PS), zero (Z), negative small (NS), negative medium (NM), and negative large (NL) to inputs and the output variable. The fuzzy rule table for both linear and angular velocities are shown in Table I and Table II respectively. The fuzzy rule base works on the mechanism of IF – THEN rules. In this paper, two fuzzy logic controllers are designed to estimate the linear feedback velocity ̃ ( ) and angular feedback velocity ̃ ( ). The fuzzy rule base comprise on 49 rules defined as Figure 3. Block diagram of the proposed controller

: if is and is then is V. RESULTS AND DISCUSSION where i = 1, 2,…M, M=49, and are input variables of FLC, is the output variable of the FLC, and

are linguistic terms defined by the membership functions ( ) , ( ) and ( ) respectively. The FLC inferred the output on the basis of fuzzy rule base and can be defined as

TABLE I: FUZZY TABLE for FLC 1 ( ̃ ) /∫ NL N NS Z PS P PL

NL PL PL PL P P PS Z N PL PL P P PS Z NS Figure 4. Reference linear and angular velocities NS PL P P PS Z NS N Z P P PS Z NS N N PS P PS Z NS N N NL P PS Z NS N N NL NL PL Z NS N N NL NL NL

TABLE II: FUZZY TABLE FOR FLC 1 ( ̃ )

NL N NS Z PS P PL NL PL PL PL P P PS Z N PL PL P P PS Z NS NS PL P P PS Z NS N Z P P PS Z NS N N PS P PS Z NS N N NL P PS Z NS N N NL NL Figure 5. Tracking performance analysis lamniscate curve trajectory PL Z NS N N NL NL NL with disturbances between Backstepping and Fuzzy control system.

©2015 Engineering and Technology Publishing 180 Journal of Automation and Control Engineering Vol. 3, No. 3, June 2015

In this section, the performance of the proposed In this paper, feed-forward and feedback kinematic controller is evaluated on wheeled Mobile Robot (WMR) controller for unicycle mobile robot trajectory tracking is for trajectory tracking. The effectiveness of the proposed presented. Feed-forward control velocities are calculated controller is also compared with the standard using reference velocities and error propagation backstepping controller. The lamniscate curve is selected mechanism. The calculated value of the desired feed- as reference trajectory which provides constantly forward control action is used along with the delayed changing linear and angular velocities as shown in Fig. 4. velocity error. Whereas, fuzzy logic control is used to The trajectory tracking performance of WMR in the compute the feedback velocities. The performance presence of output disturbances and model uncertainties comparison of the proposed controller is done with using proposed controller and backstepping kinematic standard backstepping controller. It is shown in the controller is shown in Fig. 5. Initial values for both simulation results that the proposed controller precisely controllers as assume as ( ) whereas follows the reference trajectory and shows better transient the disturbance signals are shown in Fig. 6. As it can be performance and zero steady state error. seen, the proposed controller shows better tracking performance and precisely follows the reference REFERENCES trajectories. The x and y position errors plots for both [1] R. Fierro and F. L. Lewis, "Control of a nonholonomic mobile controllers are shown in Fig. 7. The proposed controller robot: backstepping kinematics into dynamics," Journal of Robotic exhibits better transient performance and shows fast error Systems, vol. 14, pp. 149-163, 1997. convergence which indicates the better responsiveness for [2] R. W. Brockett, "Asymptotic stability and feedback stabilization," WMR. in Differential Geometric , R. W. Brockett, R. S. Millman, and E. H. J. Sussmann, Eds., ed Boston, MA Birkhauser, 1983, pp. 181-191. [3] S. Blažič, "A novel trajectory-tracking control law for wheeled mobile robots," Robotics and Autonomous Systems, vol. 59, pp. 1001-1007, 2011. [4] R. Rashid, I. Elamvazuthi, M. Begam, and M. Arrofiq, "Fuzzy- based navigation and control of a non-holonomic mobile robot," Journal of Computing, vol. 2, pp. 130-137, March 2010. [5] D. Gu and H. Hu, "Neural predictive control for a car-like mobile robot," International Journal of Robotics and Autonomous Systems, vol. 39, May 2002. [6] Y. Liyong and X. Wei, "An adaptive tracking method for non- holonomic wheeled mobile robots," presented at the 26th Chinese Control Conference Zhangjiajie, Hunan, China, 26-31 July, 2007. Figure 6. Disturbance signals [7] G. Klancar, D. Matko, and S. Blazic, "Wheeled mobile robots control in a linear platoon," Journal of Intelligent Robot System, vol. 54, pp. 709-731, 2009. [8] G. Oriolo, A. De Luca, and M. Vendittelli, "WMR control via dynamic feedback linearization: Design, implementation and experimental validation," IEEE Transactions on Control Systems Technology, vol. 10, pp. 835 - 851, November 2002. [9] M. Asif, M. J. Khan, and N. Cai, "Adaptive sliding mode dynamic controller with integrator in the loop for nonholonomic wheeled mobile robot trajectory tracking," International Journal of Control, Dec. 2013. [10] Z. Kovacic and S. Bogdan, Fuzzy Controller Design: Theory and Applications, CRC Press, December 12, 2005.

Mr. Muhammad Asif received B.S. degree in Biomedical engineering from the Sir Syed Figure 7a. Comparison of tracking error in X direction between University of Engineering and Technology, backstepping controller and proposed controller Karachi, Pakistan in 2003, and M.S. degree in Electrical and Electronic Engineering from the Universiti Sains Malaysia (USM) Malaysia, in 2007. Currently, he is pursuing his PhD in Control Engineering from NUST, Pakistan. He is also working as faculty member and researcher in the Department of Electronic Engineering, Sir Syed University of Engineering and Technology. His research addresses the issues and problems of industrial automation, navigation, mapping and design and implementation of statistical control algorithm for autonomous robots.

Dr M Junaid Khan did BE in Electrical Engineering in 1994 from NED University, Pakistan, MS in Control Engineering from Iowa State University, USA in 2002, then Phd in Figure 7b: Comparison of tracking error in Y direction between Automation from Tsinghua University in 2008. backstepping controller and proposed controller He has been the recipient of 03 research awards from Dept of Automation, Schneider Inc and VI. CONCLUSION Hua-wei Communications in 2005, 2006 and

©2015 Engineering and Technology Publishing 181 Journal of Automation and Control Engineering Vol. 3, No. 3, June 2015

2007 respectively. He has to his credit a number of publications in Sir Syed University of Engineering and Technology, Karachi. He has a indexed journals and few in conferences. He has the honor to teach and keen interest in the field of control engineering and adaptive signal research in top Chinese universities i.e. Tsinghua University, Beijing processing. Institute of Technology, Chinese Academy of Science, Huazhong University, Xian Jiaotong University and Jiangnan University, Sichuan Muhammad Rehan is Lecturer at Sir Syed University. Currently he is working as the Dean of Dept of Electronics University of Engineering & Technology, and Power Engineering, National University of Sciences and Karachi, Pakistan where he is contributing in Technology. research on diversified topics including Control systems, Robotics, Signal processing Mr. Muhammad Safwan received BS degree and Wireless Sensor Networks. He received in Electronic Engineering from Sir Syed his B.S. degree in Electronic Engineering University of Engineering and Technology, from Sir Syed University of Engineering & Karachi, Pakistan in 2012 and doing MS degree Technology in 2008 and M.S. degree in in Electrical Engineering from Graduate School Electrical Control Engineering from National of Engineering Sciences & Information University of Sciences & Technology, Karachi, Pakistan in 2013. His Technology, Hamdard University, Karachi, research interests are in the broad areas of Control systems and Signal Pakistan. He is working as junior Lecturer in processing, with a high focus on Wireless Sensor Networks.

©2015 Engineering and Technology Publishing 182