(8)
CrossMark
Available online at www.sciencedirect.com
ScienceDirect
Procedía Computer Science 73 (2015) 86 - 93
The International Conference on Advanced Wireless, Information, and Communication
Technologies (AWICT 2015)
Trajectory generation using predictive PID control for stable
walking humanoid robot
Safa Bouhajara*, Elyes Maherzib, Nahla Khraief, Mongi Besbesb,Safya Belghitha
aNational school of Engineers of Tunis,Tunis El Manar,Tunisia bSignals and Mechatronic Systems, High School of Technology and Computer Science, Tunisia
Abstract
Predictive control presents a solution to the problem of the trajectory generation for a humanoid robot. This control strategy is introduced by Katayama13 and improved by Kajita1, in those literatures, the theory of predictive control is used to calculate the trajectory of the mass center of the cart table to track a reference trajectory and give it for the ZMP. However this control has an inconvenience such as the non respect of real-time constraints, due to the computation time and the output response establishing. In this paper we propose the predictive PID controller that imitate the calculated time and reduce the complexity of the control algorithm. The aim of this new control approach for biped robot is to make walking smoother and more efficient.
© 2015 The Authors.PublishedbyElsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.Org/licenses/by-nc-nd/4.0/).
Peer-reviewunderresponsibilityof organizingcommittee of the International Conference on Advanced Wireless, Information, and Communication Technologies (AWICT 2015)
Keywords: Walking robot, Cart table model, ZMP model, Predictive PID;
1. Introduction
The control of autonomous robots is a complex problem due to the presence of many parameters. This becomes more complicate for biped humanoid robots because they are naturally unstable when moving and this make the task of control more difficult. Humanoid robots control still need to be greatly improved, both in terms of their modelling and in the design of their control. Contrary to robot manipulators, the mass centre and the notions of the Zero Point Moment are predominant among humanoids and its will be central to the management of their balance.
* Corresponding author.
E-mail address:safa.bouhajer@gmail.com
1877-0509 © 2015 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.Org/licenses/by-nc-nd/4.0/).
Peer-review under responsibility of organizing committee of the International Conference on Advanced Wireless, Information, and Communication
Technologies (AWICT 2015)
doi:10.1016/j.procs.2015.12.052
This paper fits in this context. The control theory involves physical interaction between an articulated system and its environment. This close relationship is in fact a common set of fundamental problems such as the planning and implementation of robust stable dynamic movements. Those problems are for the most part, far from being resolved.
The most substantial fundamental problem with this physical interaction is the laws that govern the contact forces between the robot and the ground. But many usual methods of the theory of control cannot ensure a satisfying control of such dynamic systems. The solution could be the predictive control methods that consider the dynamic behaviour in its entirety1' 2. In this context, this paper which aims to provide a new control strategy adapted to humanoid robots whose complexity continues to increase.
In many works in humanoid robotic, the PID controller presents a solution for the problem of the control walk motion of the robot6. In this study, we are interested in the predictive PID control to improve the performance of PID controller. We used the predictive characteristic of GPC control to synthesis this proposed controller5. The advantage of this proposed method is to simplify the implementation in real time processing. The Predictive PID solves the problem of Optimal Control in a prediction horizon. The main advantage of this proposed method is that the input variables and future trajectories can easily be incorporated into the control design.
The first part of this paper presents the ZMP Preview Control scheme, proposed in1, 9, in order to generate dynamically stable motions through a cart table approximation for the dynamics of the Mass Centre of a humanoid robot. The second part presents the generalized predictive control GPC algorithm. This algorithm law is used in the design of the proposed controllers. The third part presents the predictive PID control based on GPC control.
2. Cart-table model
The cart table model presented in (figure 1) is proposed by1 in objective to simplify the model of a walking humanoid robot. In This simplified model the robot is represented by a 2-D cart-table of the same mass and at the height of the center of mass zc.
Ol tí
Fig.l.Cart Table Model
m: The mass
Y : The position of the (ZMP) COP x : The horizontal position of COM (center of mass) x : The horizontal acceleration Zc: The altitude g: The norm of the gravity
This simplified model proves an extreme efficiency in the context of walking pattern generation. The equation of motion is represented by:
ttmp = mg (x " Y ) " mxzc = 0
Y = x —— x (2)
Equation (2) obtained binds the ZMP position on an axis to the position and the acceleration of the COM on this same axis. Thus, a system of differential decoupled equations facilitating the resolution. Several methods can be used to solve this system of differential equations, analytically as in14 or using the theory of predictive control as in13. The advantage of analytical solutions is their accuracy; in fact, these methods provide exact solutions to the system (2). However, their inclusion in a "real-time" system is more problematic. The predictive control method disadvantage is nevertheless the error inherent in the size of the prediction horizon. Given its ease of integration in the context of a "real-time" system, this method is chosen as a basis.
3. Pattern generation with preview control
Kajita et al 1propose, for this pattern generation method, considering the jerk of the center of mass:
d x -= ux
With the introduction of this new quantity, the equation of movement along x direction becomes
x "0 1 0" x "0 "
x = 0 0 1 x + 0 ux
x 0 0 0 x 1
1 0 —^ g
The second equation is obtained from previous results in the cart-table model of the ZMP. This is a classic dynamic system withY as known constant (predefined desired ZMP). Using the Taylor formula to the order three to discretize the equations with sampling period T, the following system is obtained:
f x(k + 1) = Ax(k) + Bu(k) [Y = Cx( k )
x(k ) = x(kT ) x(kT ) x(kT )
u (k ) = uk (kT ) Y (k ) = Y (kT )
1 0 — g
4. Predictive control for the Cart-Table using GPC control
In this part of paper, the generalized predictive control law is used to synthesis the predictive PID. This method of control introduces the predictive output of process and the optimal control parameters for calculate the error between output signal and the set-point at a simple instant k. This obtained error can be put in the conventional form of PID controller3, 7.
We start this study by considering the discrete-time state space representation of a SISO system, described by the equation (5).
In the first step we take the difference between x(k +1) and x(k), we obtained the equation (7):
x(k +1) - x(k) = A( x(k) - x(k -1)) + B(u (k) - u (k -1)). (7)
The following equations represent the difference between the state variables and the control variables given by:
(k +1) = xd (k +1) - xd (k) (8)
(k) = xd (k) - xd (k -1) (9)
Au (k) = u(k) - u (k -1) (10)
We connect Ax(k) to the output y(k) to obtain the integration effect and we chose the new augmented state vector X (k ) .
X (k) = [AxT y ]T (11)
The new state space model with the embedded integrator is:
~Ax(k +1)" " A 0T' "Ax(k)" " B '
_ y (k +1) _ CA 1 _ y (k) _ 1 CB
Au (k)
y (k) = [0 1]
"Ax(k)"
" A 0r" ' B '
Bp = CB
Cp = [0 1]
In the rest of the paper, this augmented model will be used in the design of predictive control.
The prediction of the plant output with the future control variable is the important step in the predictive control design. Let the sampling instant k; with k>0.
Au (k), Au (k +1),..., An (k + nc -1) (13)
The future vector of control movement is denoted by:
AU = [Au(k), Au(k +1),..., Au(k + nc - 1)f (14)
Where nc is called the control horizon, means that the variation inputs have zero in moments upper or equal to the control horizon. The control horizon can be nc < np .
The augmented state space, where Xp and Yp are the predicted input and output vectors respectively as:
x(k f1|k) " " A ' " B 0 0 " Au(k)
x(k- f 2| k) A2 X (k) + AB B 0 Au(k + 1)
x(k 4 np | k) Anp Anp-1B Anp~2 B . Anp-ncB A u(k+nc -1)
Xp H V AU
' y(k+1|k)" ' CA' " CB 0 0 " ~ Au(k)
y(k+2|k) = CA2 X(k)+ CAB CB ■ 0 Au(k+1)
_ y(k+np | k)_ CAnp CA"p~1B CAnp~2B • CAnp~"cB Au(k+nc-1)
5. Predictive PID approach based on GPC
5.1. Conventional PID structure
The discrete form of PID controller given by the following equation:
Au (k) = [kp .e(k) + k, X e(k) + kd (e(k) - e(k -1)]
PID controllers could be written as 7:
Po z+Az ~2 n\ u (k) = ————-p-^— e(k)
Where j30 = kp + kt + kd , Px = -kp - 2kd and ¡52 - kd , and e(k) represents the error at sample k. Where the three gain of the conventional PID controller are kp , ki and kd are the proportional, integral and derivative gains respectively.
The velocity form of PID controller can be obtained with the control input increment at instant k:
Au(k) = u(k) - u(k-1) = fi0e(k)+fte(k-1)+fi2e(k - 2) (19)
The equation (19) can be written in matrices form as:
Au (k) = KpUE (k) = Kpd [yr (k) - Y (k)] (20)
E (k) = [e(k) e(k -1) e(k - 2)]
Kpd = [A A A] (2D
5.2. Proposed predictive PID control
Consider the following quadratic cost function presented by equation (22), where the first principal part minimizes the errors between the reference signal and the output signal. And the second part minimizes the control effort. Propose yr (k) the set-point signal at sample time k.
Jy = (yr - Yp)T (yr - Yp) + AUTRAU (22)
The aim of the proposed predictive PID controller is to maintain the output signal provided as close as possible to the reference signal3.
The optimal parameter vector AU can be obtained by substituting of equation of the new state space output give by (16) into (22), Jy is expressed as:
Jy = (yr - FX(k))T (yr - FX (k)) - 2AUtOt (yr - FX(k))+AUT (OtO+R)AU (23)
The necessary condition of the minimum J is obtained as:
—y- = 0
From the first derivative of the cost function J :
3J„ , rp rp
y = 20T (y - FX(k)) + 2(Ot0 + R)AU = 0 (24)
From which we find the optimal control vector solution as:
A U = (O r 0+ R )-10 r (yr - FX (k )) (25)
e(k) = (yr - FX(k)) (26)
W = ® + RTl®T (27)
With the obtained results given by (27), we can conclude the equality of two gains:
Kpid= KGPCpid
6. Simulation result
The simulation results obtained considers the following parameters:
Table l.Simulation parameters.
Parameters T = 5[ms], . = 0.814[m], R = 1.0 x 106 Q = 1.0x 10~6
Fig. 2. Predictive state feedback using Predictive PID
Fig. 3. Limit cycle of the Robot center of mass trajectory using Predictive PID
In the figure 2, we can see that the closed loop responses of the output system using the predictive PID is provided immediately and follow the set point, the center of mass give a sable limit cycle presents in figure 3. That can generate a stable gait cycle.
7. Conclusion
In this paper we apply and simulate a predictive controller for the control of a cart table model. Simulations confirm that the designed predictive PID controller have the capability to follow the reference and exhibits a fast response. PID adapted better to the real time control of the process due to the reduced number of calculation operations .The implementation of such a controller can be performed on any processor. However, the GPC algorithm needs powerful computation time and consequently requires fast processors dedicated to this type of calculation.
Reference
1. Kajita. S,Hirukawa. H ,Humanoid Robot,Ohmsha Ltd, Tokyo,Japon.(2005) .
2. Kajita .S, Kanehiro. F,Kaneko. K Yokoi. K, wa. H. H, The 3DLinear Inverted Pendulum Model: A simple modeling for a biped walking
pattern generation,IEE,(2001).
3. Uren. K, Schoor. G.V, Predictive PID Control of Non-Minimum Phase Systems, InTech,(2011).
4. Zhenkai.Guo, Xinping.G,Nonlinear generalized predictive control based on online least squares support vector machines,Nonlinear Dynamics
(2014).
5. Samaneh.S.S, Naser.P, Ali.K, Amin.J,An o_-line NMPC strategy for continuous-time nonlinear systems using an extended modal series method,Nonlinear Dynamics (2014).
6. Muhammed Dangor, Olurotimi A. Dahunsi, Jimoh O. Pedro, M. Montaz Ali, Evolu- tionary algorithm-based PID controller tuning for nonlinear quarter-car electrohydraulic vehicle suspensions,Nonlinear Dynamics (2014).
7. Johnson. M. A,Moradi. M.H,PID Control New Identi_cation and Design Methods, Springer- Verlag London Limited(2005).
8. Parada Renato. M, Borges. A , Daniel.S , Peres. P L.D , Robust PID design for second- order processes with time-delay and structured
uncertainties, The 18th IFAC World Congress Milano(2011).
9. Zhu.C,Tomizawa.Y ,Luo .X,Kawamur.A, Biped Walking with Variable ZMP, Frictional Constraint, and Inverted Pendulum Model, Robotics
and Biomimetics, ROBIO, IEEE International Conference (2004).
10. Jong.H, Kyoung. D , Biped Robot Walking Using Gravity-Compensated Inverted Pendulum Mode and Computed Torque, International Conference on Robotics Automation (1998).
11. Touati . N, Chemori. A, Predictive control for the stabilization of a fast mechatronic system : from simulation to real-time experiments, The 6th IFAC Symposium on Mechatronic Systems (Mechatronics 2013), Hangzhou : China (2013).
12. Morimoto. J, Endo. G,Nakanishi. J, Modulation of simple sinusoidal patterns by a coupled oscillator model for biped walking, Proceedings of the IEEE International Conference on Robotics and Automation (2006).
13. Katayama, T., Ohki, T., Inoue, T., Kato, T.: Design of an optimal controller for a discrete-time system subject to previewable demand. Int. J. Control 41, 677-699 (1985).
14. Harada, K., Kajita, S., Kaneko, K., Hirukawa, H.: An Analytical Method on Real-time Gait Planning for a Humanoid Robot. Int. J. Hum. Robot. 3, 1-19 (2006).
15. Hirukawa, H., Kajita, S., Kanehiro, F., Kaneko, K., Isozumi, T.: The human-size humanoid robot that can walk, lie down and get up. Int. J. Robot. Res. 24, 755-769 (2005).