Microsoft Word - cet-01.docx CHEMICAL ENGINEERING TRANSACTIONS VOL. 46, 2015 A publication of The Italian Association of Chemical Engineering Online at www.aidic.it/cet Guest Editors: Peiyu Ren, Yancang Li, Huiping Song Copyright © 2015, AIDIC Servizi S.r.l., ISBN 978-88-95608-37-2; ISSN 2283-9216 Adaptive Fuzzy Sliding Mode Control Method for Vision- Based Food Packaging Line Robot Joint Jing Lua, Chong Tian*b, Miaochao Chenc a School of Basic Department, Langfang Polytechnic Institute, Hebei 065001, China b School of Mathematics and Statistics, Zhoukou Normal University, Henan 466001, China c School of Applied Mathematics,Chaohu University, Anhui 238000, China tianchong@zknu.edu.cn In the cold frozen food product packaging production line, as the products’ geometric parameter is changing, so the manual work remains the main ways in today’s food packaging production line, in order to enhance the degree of automation, this paper designed a control system of Vision-Based food packaging line with Adept robot and proposed the double adaptive fuzzy sliding mode control to investigate joint trajectory control of food packaging line robot. The simulation results indicate that the proposed double adaptive fuzzy sliding mode control method can effectively guide the joint trajectory and is much better than traditional sliding mode control. 1. Introduction On the frozen food packaging line, control system generally delivers the unpacking products to the site without implementing accurate control of the products position. This makes most robots can`t be used in such productive process due to the robot off-line programming requires accurate modeling of the working environment. Although simple and repetitive work it is, but the change of packing product geometric parameters in a certain range makes today's food packaging line still be a highly intensive labor work. How to bring the robot operating into food packaging line is a research has important application value. Its key technology is the introduction of external sensors which processing the information on the spot online , so as to control the robot. sliding mode variable structure has a strong robust stability to the perturbation and external disturbances of system parameters, so it provides a good solution for complex system control problem. Many scholars integrated fuzzy logic system with sliding mode control and this method has become an effective solution to the nonlinear and uncertain dynamical systems control. It is also be used to ease the implementation difficulties of conventional sliding mode control which was confirmed(Choi and Kim(1997), Ha, Rye and Durrant-Whyte(1999), Kaynak, Erbatur and Ertugrul(2001), Tong and Li(2003), Chen and Chen(1998), Noroozi, Roopaei and Jahromi(2009), Roopaei, Sahraei and Lin(2010), Xiang and Chen(2011), Wang, Rad and Chan(2001), Akbarzadeh and Shahnazi.(2005), Bai et al.(2009), Liu, Liu and Jiang Jihai(2010), Lin, Mao and Cao Yunpu(2001), Hu and Zhou(1991), Zheng, Cheng and Gao(1995), TKIN(1992), Park and Teruo(1999), Carrasco et al.(1997)). Choi and Kim(1997), Ha, Rye and Durrant-Whyte(1999), Kaynak, Erbatur and Ertugrul(2001), Tong and Li(2003), Noroozi, Roopaei and Jahromi(2009), Roopaei, Sahraei and Lin(2010) designed different fuzzy sliding mode control methods applying them into different nonlinear system and the outcomes were positive. Wang, Rad and Chan(2001), Akbarzadeh and Shahnazi.(2005), Bai et al.(2009), Liu, Liu and Jiang Jihai(2010) combined adaptive algorithms with fuzzy sliding mode control to enhance robust stability and weaken the high frequency chattering phenomenon in the control signal. This paper designed a control system of Vision-Based food packaging line with Adept robot and proposed the double adaptive fuzzy sliding mode control to investigate joint trajectory control of food packaging line robot. The simulation results indicate that the proposed double adaptive fuzzy sliding mode control method can effectively guide the joint trajectory and is much better than traditional sliding mode control. DOI: 10.3303/CET1546156 Please cite this article as: Lu J., Tian C., Chen M.C., 2015, Adaptive fuzzy sliding mode control method for vision-based food packaging line robot joint, Chemical Engineering Transactions, 46, 931-936 DOI:10.3303/CET1546156 931 2. System design Frozen food packaging line vision-based robot control system is shown in figure 1, which is composed of host workstation, the visual system and robot system. The system uses the robot to grab, localize the moving objects and placed them in position. Vision system consists of three parts, namely, the CCD camera, the coordinate converter and image processing software, including image processing algorithm for system to get information quickly and the initialized image equipment. Figure 1: Vision-based robot control system for frozen food packaging line After control task was determined, according on the visual-based algorithm and the robot posture, host computer will transmission data to the low-level robot system. The system will determine the location relationship between the finger and the actual grab objects based on images that CCD camera detected, and then the robot control algorithm is designed to adjust the position of the robot, so as to achieve the capture of objects. 3. Double adaptive fuzzy sliding mode control design In recent years, the sliding mode control is widely used in motion control because of its merits in simple algorithm, strong robust stability, High Reliability, quick response and not sensitive to disturbance and parameter changes which was confirmed (Kaynak, Erbatur and Ertugrul(2001)). But because of time lag and spatial lag switch, inertia of system and uncertainty factors, after the state trajectory reaches sliding mode surface, the sliding mode variable structure control system is difficult to strictly sliding along the sliding mode to the balance, but crossing back and forth in the sliding mode surface on both sides, which resulting in a jitter. So it is easy to stimulate high-frequency unmodeled dynamic, so as to damage the system performance. In order to weaken the jitter of system, Tong and Li(2003) using the reaching law to weaken jitter problem produced by variable structure control. Chen and Chen(1998) designed a variable structure controller with a filter, effectively eliminate the chattering in the control. At the same time, adaptive control, neural network, fuzzy control and genetic algorithm (GA) and other advanced methods which was confirmed (Kaynak, Erbatur and Ertugrul(2001)) are applied to weaken the dithering phenomenon in the sliding mode variable structure control. This paper proposed the double adaptive fuzzy sliding mode control to investigate joint trajectory control of food packaging line robot. 3.1 control design Consider the SISO nonlinear system )( ) ( ) ( )(, ,x f x t g x t u t d t= + + (1) Where )( ,f x t and )( ,g x t are unknown nonlinear functions, )( ,g x t >0, ( )d t is the external disturb. Tracking error is ( ) ( ) ( )e t x t r t= − (2) Define the integral sliding mode surface as: ( ) ( ) ( ) ( ) ( ) ( ) ( )1 2 30 t s t x t r t k e t k e t k e t d t= − − − −   (3) Where 1k , 2k and 3k are non-zero positive constants and can satisfy the Hurwitz stability criterion. When the sliding mode control is in the ideal state, ( ) ( ) 0s t s t= = ,we have 932 ( ) ( ) ( ) ( ) ( )1 2 3 0s t e t k e t k e t k e t= + + + = (4) Suppose )( ,f x t , )( ,g x t and ( )d t are known, from the equation(4), we can get the sliding mode control law as ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) * 1 1 2 3, ,u t g x t f x t d t r t k e t k e t k e t − = − − + − − −   (5) In practical application, )( ,f x t , )( ,g x t and ( )d t are all known, ( ) * u t can`t be obtained easily. This paper use the fuzzy system to approaching ( ) * u t .Compared with traditional two input fuzzy controller, This article selects the switching function ( )s t as the input of fuzzy controller to constitute a single input fuzzy system, so largely reduced the number of fuzzy rules. The fuzzy rule of this controller is as follows: Rule:If s is isF , Then u is iα . Where 1, 2, , ,i m=  i sF and iα are the fuzzy set. Gravity method is adopted to improve the fuzzy system blurred, take iα for adjustable parameter at the same time and get the output of the controller is: ( ), Tfzu s α αξ= (6) Where 1, 2 ... mα α α α =   , [ ]1 2, ... mξ ξ ξ ξ= , 1 i i m i i ω ξ ω = =  . According to the fuzzy approximation theory, there is a optimal fuzzy system to approach ( ) * u t , we have ( ) ( ) * * *,fzu t u s α ε α ξ ε= + = + (7) The ε is the approximation error of fuzzy system, satisfy | ε | < E |. Use ( )ˆ,fzu s α to approaching ( ) * u t ,then ( )ˆ ˆ, Tfzu s α αξ= , where α̂ is the estimated value of *α ,define *ˆα α α= − .From equation (27), we can get *ˆ fz fzu u u= − *ˆ fz fzu u ε= − − αξ ε= − (8) To compensate for the fuzzy approximation error between ( )ˆ,fzu s α and ( ) * u t ,we introduced the switching control law vsu ,now total control law expressed as t fz vzu u u= + (9) The system structure of double adaptive fuzzy sliding mode control is shown in Fig.2. Figure 2: Double adaptive fuzzy sliding mode control system 933 3.2 self-adaptive control algorithm design From equation (3), we have ( ) ( ) ( ) ( ) ( )1 2 3s t e t k e t k e t k e t= + + + (10) then equation(5)can be treated as ( ) ( ) ( ) ( ) ( )1* , ,u t g x t g x t u t s t−= −   (11) From equation(9)and (11),we can obtain ( ) ( ) ( ) * ˆ ,s t g x t u t u = −   ( ) ( ) * , fz vzg x t u u u t  = + −   (12) when switching controller, the switching gain is difficult to determine, it is often determined by experience in the actual control. If the switch gain is too large, then it will produce larger chattering. If the switch gain is too small, the control system will be unstable. Define Lyapunov function as ( ) ( ) ( ) ( )2 2 1 2 , ,1 2 2 2 Tg x t g x tV t s t Eαα η η = + + (13) where *ˆα α α= − , ( ) ( )ˆE t E t E= − . 1η and 2η are positive constants, ( )Ê t is the estimated switching gain. The adaptive law and switch control are used to achieve ( ) 0V t ≤ , ( )1ˆ s tα α η ξ= = − (14) ( ) ( )2ˆE E t s tη= = (15) ( ) ( )( )ˆ sgnvzu E t s t= − (16) Then we have ( ) ( ) ( ) ( )2 2 1 2 , ,1 2 2 2 Tg x t g x tV t s t Eαα η η = + + (17) 1 2 * 1 2 1 2 1 ( ) ( ) ( ) ( , ) / ( , ) / ( ) ( , )[ ( )] ( , ) / ( , ) / ( ) ( , )[ ] ( , ) / ( , ) / ( ) ( , )( ) ( , ) ( ( ) / ) T T fz vs T vs T vs V t s t s t g x t g x t EE s t g x t u u u t g x t g x t EE s t g x t u g x t g x t EE s t g x t u g x t s t g αα η η αα η η αξ ε αα η η ε α ξ α η = + + = + − + + = − + + + = − + + + 2( , ) /x t EE η 2 ˆ ˆ( ) | ( ) | ( , ) ( ) ( , ) ( , )( ( ) ) / ˆ ˆ( ) | ( ) | ( , ) ( ) ( , ) ( ( ) ) | ( ) | ( , ) E t s t g x t s t g x t g x t E t E E E t s t g x t s t g x t E t E s t g x t ε η ε = − − + − = − − + − ( ) ( , ) | ( ) | ( , )s t g x t E s t g x tε= − − ( | |) | ( ) | ( , ) 0E s t g x tε= − − ≤ (18) 934 4. Numerical simulation study In order to verify the effectiveness of the proposed algorithm in this paper, a joint of Adept was take as the research object to run a simulation. Assume joint servo system`s transfer function is as follows: 2 133 ( ) 25 G s s s = + (19) in the Simulation, sampling period is set to 0.001 s, Fuzzy controller and switch controller parameters respectively take η1 = 200, η2 = 1, the initial value of α̂ and Ê are 0.1.7 membership functions are used to approaching * ( )u t in the sliding mode control. Under the condition of same parameter variations and external load, respectively, we run the simulation of the hydraulic servo system, using the proposed adaptive fuzzy sliding mode control and the conventional proportional – integral- differential (PID) control. The results are shown in Fig3,Fig4 and Fig.5. The proposed double adaptive fuzzy sliding mode control can ensure the good tracking effect (Fig. 3 a), and converge within the limited time (4 s). The tracking error is affected by the system initial state from 0.2 mm rapidly reduced to zero(Fig. 4 a) and keep near the zero line. The maximum stable error is only 3μm. And the simulation results of conventional PID control method show that the conventional PID control has a good real- time tracking (Fig.3 b), but the tracking error is significantly larger, steady-state error is 15μm. The steady- state error is five times compared with the double adaptive fuzzy sliding mode control, and has obvious oscillation (Fig.4 b). (a) Double adaptive fuzzy sliding mode control (b) PID control Figure 3: Position trailing (a) double adaptive fuzzy sliding mode control (b) PID control Figure 4: tracking error 5. Conclusions (1)Designed a food packaging production line control system based on visual and Adept robot, the adaptive fuzzy sliding mode control is put forward. The integrating the fuzzy control, sliding mode control and adaptive control gives full play to their respective advantages. This method don`t rely on the accurate mathematical model which is the traditional control system needed for, and can effectively track changing signal. It has strong invariance to bounded disturbance and parameter perturbation which is superior to the conventional PID control. 935 (2)The double adaptive fuzzy sliding mode control used adaptive fuzzy controller which can adjust parameters online based on fuzzy rules, it can smooth the discontinuous control and achieve the goal of weaken chattering. Simulation examples show that this system has a good dynamic response performance, high steady state accuracy and strong robustness to the parameter perturbation and load changes. Acknowledgments This work is supported by the Natural Science Foundation of Chaohu University(No. XLY-201503). Reference Akbarzadeh T. and Shahnazi R., 2005, Direct adaptive fuzzy PI sliding mode control for a class of uncertain nonlinear systems[C] IEEE International Conference on System,Man and Cybernetics. Hawaii: IEEE Press, 2:1058-106. http://dx.doi.org/10.1109/ICSMC.1571532 Bai H., Wang Q. J., Xu Z. and Guan C., 2009, Mode Robust Adaptive Control for Valve Controlled Asymmetric Cylinder System[J].Transactions of the Chinese Society of Agricultural Machinery, 40(10):193-198. Carrasco J. M., Quero J. M., RidaoI F. P., Perales M. A. and Franquelo L. G., 1997, Sliding mode control of a DC/DC PWM converter with PFC implemented by neural networks[J]. IEEE Trans on Circuits and Systems-I: Fundamental Theory and Applications, 44(8): 743 -749 Chen C. S. and Chen W. L., 1998, Robust adaptive sliding mode control using fuzzy modeling for an inverted- pendulum system[J]. IEEE Trans IE, 45:297–306. Choi S. B. and Kim J. S., 1997, A fuzzy sliding mode controller for robust tracking of robotic manipulators[J]. Mechatronics,7:199–216. http://dx.doi.org/10.1016/S0957-4158(96)00045-1 Ha Q. P., Rye D. C. and Durrant-Whyte H. F., 1999, Fuzzy moving sliding mode control with application to robotic manipulators[J]. Automatica, 35(4):607–16. http://dx.doi.org/10.1016/S0005-1098(98)00169-1 Hu Y. M. and Zhou Q. J., 1991, Variable structure control for a control system with time-delay[J]. Acta Automatica Sinica, 17(5):587 -591. Kaynak O., Erbatur K. and Ertugrul M., 2001, The fusion of computationally intelligent methodologies and sliding mode control-A survey[J]. IEEE Trans IE, 48(1):4-17. http://dx.doi.org/10.1109/41.904539 Lin Y., Mao J. Q. and Cao Y. P., 2001, A robust VS-MRAC with a low variable structure control gain[J]. Acta Automatica Sinica, 27(5): 665 -670. Liu T., Liu Q. H. and Jiang J. H., 2010, Adaptive Fuzzy Sliding Mode Control for Hydrostatic Transmission System[J].Transactions of the Chinese Society of Agricultural Machinery, 41(1).,29-33 . Noroozi N., Roopaei M. and Jahromi M. Z., 2009, Adaptive fuzzy sliding mode control scheme for uncertain systems[J]. Commun Nonlinear Sci Numer Simulat, 2009,14: 3978-3992. http://dx.doi.org/10.1016/j.cnsns.2009.02.015 Park K. B. and Teruo T., 1999, Terminal sliding mode control of second-order nonlinear uncertain systems[J]. Int J of Robust and Nonlinear Control, 9(11): 769 -780 Roopaei M., Sahraei B. R. and Lin T. C., 2010, Adaptive sliding mode control in a novel class of chaotic systems[J]. Commun Nonlinear Sci Numer Simulat, 15:4158-4170. http://dx.doi.org/10.1016/j.cnsns.2010.02.017 Tkin V. I., 1992, Sliding Modes in Control Optimization[M]. Berlin:Spring-Verlag. Tong S. and Li H. X., 2003, Fuzzy adaptive sliding mode control for MIMO nonlinear systems[J]. IEEE Trans FS,11(3): 354–60. Wang J., Rad A. B. and Chan P. T., 2001, Indirect adaptive fuzzy sliding mode control: PartⅠ: Fuzzy switching[J]. Fuzzy Set and System, 122:21-30. http://dx.doi.org/10.1016/S0165-0114(99)00179-7 Xiang W. and Chen F. Q., 2011, Adaptive sliding mode control scheme for a class of chaotic systems with mismatched perturbations and input nonlinearities[J]. Commun Nonlinear Sci Numer Simulat, 16:1-9. http://dx.doi.org/10.1016/j.cnsns.2010.02.021 Zheng F., Cheng M. and Gao W. B., 1995, Variable structure control of a class of time-delay system[J]. Acta Automatica Sinica, 21(2): 221-225 936