Professional Documents
Culture Documents
Full paper
Abstract—Selecting an appropriate gait can reduce consumed energy by a biped robot. In this paper,
a Genetic Algorithm gait synthesis method is proposed, which generates the angle trajectories based
on the minimum consumed energy and minimum torque change. The gait synthesis is considered
for two cases: walking and going up-stairs. The proposed method can be applied for a wide range
of step lengths and step times during walking; or step lengths, stair heights and step times for going
up-stairs. The angle trajectories are generated without neglecting the stability of the biped robot. The
angle trajectories can be generated for other tasks to be performed by the biped robot, like going
down-stairs, overcoming obstacles, etc. In order to verify the effectiveness of the proposed method,
the results for minimum consumed energy and minimum torque change are compared. A Radial Basis
Function Neural Network is considered for the real-time application. Simulations are realized based
upon the parameters of the ‘Bonten-Maru I’ humanoid robot, which is under development in our
laboratory. The evaluation by simulations shows that the proposed method has a good performance.
Keywords: Biped robots; Genetic Algorithms; consumed energy; torque change; gait synthesis; neural
networks.
1. INTRODUCTION
¤
E-mail: gcapi@mnasu2.yz.yamagata-u.ac.jp
†
E-mail: nasu@mnasu2.yz.yamagata-u.ac.jp
676 G. Capi et al.
be minimized. Among other factors, such as the robot’ s weight and the motor type,
it also depends on angle trajectory synthesis.
Gait synthesis for the dynamic stable walking of biped robots is a complex
problem on which much research has been concentrated. In most of the previous
papers related to biped robots [1, 2], the angle trajectories of the leg part are
prescribed based on data taken from humans. The motion of the upper body is
calculated in order to have the Zero Moment Point (ZMP) inside the sole region.
Minimum consumed energy gait synthesis during walking is treated in [3]. The
body mass is considered concentrated on the hip of the biped robot. The Coriolis
terms of the torque are neglected. In [4], the body link is restricted to the vertical
position and the body forward velocity is considered to be constant. The consumed
energy, related to the walking velocity and step length, is analyzed in [5]. The
gait synthesis of the biped robot is generated based on the calculus of variation
method. As the number of d.o.f. is high, the calculation of the partial differential is
complex. Also, when the model or the constraints are changed, the formulation of
the optimum control is needed again. Biped walking on oor and stairs is treated
in [6]. The angular momentum of the locomotion system is put close to the reference
function given in advance by using the torque distributio n method. The distribution
functions of input torque are obtained by minimizing the joint torques. However,
their minimization goal is different from ours.
In this paper, a Genetic Algorithm (GA) approach is used as an optimization
tool. GA is known to be robust for search and optimization problems [7]. It has
been used to solve dif cult problems with objective functions that do not possess
properties such as continuity, differentiabilit y, etc. These algorithms manipulate
a family of possible solutions that allow for the concurrent exploration of several
promising areas of the solution space. We deal with two important tasks for
biped robot gait synthesis: Case 1 (walking) and Case 2 (going up-stairs). In
our work, the angle trajectories are generated based on Consumed Energy (CE)
and Torque Change (TC). By using the GA as an optimization tool it is easy to
include new constraints and add new variables to be optimized. Except for gait
synthesis optimization, we also consider the stability and real-time implementation .
The stability is veri ed through the ZMP concept. For the real-time application of
the proposed method, a Radial Basis Function Neural Network (RBFNN) is taught
based upon GA results.
The paper is organized as follows. Section 2 gives a brief introductio n of GA.
Section 3 deals with the gait and body motion. In Section 4, the problem formulation
and proposed method are discussed. Boundary conditions and GA variables are
treated in Section 5. Simulation results are given in Section 6. A Neural Network
implementation for the real-time application is presented in Section 7. Finally,
conclusions and future works are given in Section 8.
Application of GAs for gait synthesis optimization 677
2. GA
During motion, the arms of the humanoid robot will be xed on the chest.
Therefore, it can be considered as a ve-link biped robot in the saggital plane, for
walking and going up-stairs, as shown in Fig. 2a and b. This model assembles
most of the characteristics of the human equivalents of the two aforementioned
motions.
The motion of the biped robot is considered to be composed from a single support
phase and an instantaneous double support phase. The friction force between the
robot’ s feet and the ground is considered to be great enough to prevent sliding.
During the single support phase, the ZMP must be within the sole length, so the
contact between the foot and the ground will remain. In this paper, we calculate
the ZMP by considering the link mass concentrated at one point. In most of the
previous works, the moments generated by the motion of the lower limbs are not
considered for ZMP calculation [2]. However, the authors plan to include the
moments generated by the lower limbs in the future work. To have a stable periodic
walking motion, when the swing foot touches the ground, the ZMP must jump in
its sole. This is realized by accelerating the body link. To have an easier relative
motion of the body, the coordinate system from the ankle joint of the supporting leg
is moved transitionall y to the waist of the robot (O1 X1 Z1 ). Referring to the new
where mi is mass of the particle i, xw and zw are the coordinates of the waist with
respect to the coordinate system at the ankle joint of supporting leg, x i and zi are
the coordinates of the mass particle i with respect to the O1 X1 Z1 coordinate system
and xR i and zR i are the acceleration of the mass particle i with respect to the O1 X1 Z1
coordinate system.
Based on (1), if the position, x i , zi , and acceleration, xR i , zR i , of the leg part
(i D 1; 2; 4; 5), the body angle, µ3 , and the body angular velocity, µP3 , are known,
then because xR 3 , zR 3 are functions of l3 , µ3 , µP3 , µR3 , it is easy to calculate the body
angular acceleration based on the ZMP position. When going up-stairs, the vertical
position of the ankle joint of swing leg changes. For this reason, the ZMP position,
which is needed to calculate the body acceleration at the beginning of the step, is
determined related with the O2 X2 Y2 Z2 coordinate system. Let (0) and (f) be the
indexes at the beginning and at the end of the step, respectively. At the beginning of
the step, µR30 causes the ZMP to be in the position ZMPjump . At the end of the step,
the angular acceleration µR3f is calculated in order to have the ZMP at the position
ZMPf , so that the difference between µR3f and µR30 is minimal. Therefore, the torque
necessary to change the acceleration of the body link will also be minimal.
The problem, with respect to walking or going up-stairs, consists of nding the joint
angle trajectories to connect the rst and last posture of the biped robot for which
the CE or TC is minimal. It can be assumed that the energy to control the position
of the robot is proportional to the integration of the square of the torque with respect
to time, because the joint torque is proportional to current. Therefore, minimizing
the joint torque can solve the minimum CE problem. The cost function En, which is
a quantity proportional to the energy required for the motion, is de ned as follows:
³ Z tf Z tf ´
1 T 2
En D ¿ ¿ dt C 1¿jump 1t C C dt ; (2)
2 0 0
where tf is the step time, ¿ is the torque vector, 1¿jump and 1t are the addition
torque applied to the body link to cause the ZMP to jump and its duration time, and
680 G. Capi et al.
c denotes the penalty function vector. We consider the following constraints for our
system:
² The ZMP to be within the sole length.
² The distance between the hip and ankle joint of the swing leg must not be longer
then the length of the extended leg.
² The swing foot, during walking, must not touch the ground prematurely. When
going up-stairs the swing foot must not hit the step.
The results generated for minimum CE cost function are compared with the angle
trajectories that minimize the rate of change of the torque [8]. The cost function is
as follows:
³Z tf ³ ´T ³ ´ ³ ´2 Z tf ´
1 d¿ d¿ 1¿
Jtorque change D dt C C C dt : (3)
2 0 dt dt 1t 0
To have a continuous periodic motion, the posture of the biped robot is considered
to be the same at the beginning and at the end of the step. Therefore, the following
relations must be satis ed:
µ10 D µ5f ; µ20 D µ4f ; µ1f D µ50 ; µ2f D µ40 ; µ30 D µ3f : (5)
In order to nd the best posture for walking, the optimum value of µ10 , µ20 and µ30
must be determined by GA. For a given step length during walking or a given step
length and stair height when going up-stairs, it is easy to calculate µ40 and µ50 . When
referring to Fig. 2, it is clear that links 1, 2, 4 at the beginning of the step and links
2, 4, 5 at the end of the step change the direction of rotation. Therefore, we can
write:
µP10 D µP20 D µP40 D µP2f D µP4f D µP5f D 0: (6)
The angular velocity of link 1 at the end of the step and link 5 at the beginning of
the step is considered to be the same. This can be written in the form µP1f D µP50 . In
order to nd the best value of angular velocity, we consider it as one variable of GA,
because the rotation direction of these links does not change. GA will determine the
optimal value of the angular velocity of the body link, which is considered to be
the same at the beginning and at the end of the step. The following relations are
considered for the angular acceleration:
µR10 D µR5f ; µR20 D µR4f ; µR1f D µR50 ; µR2f D µR40 : (7)
In this way, during the instantaneous double support phase, we do not need to
apply an extra torque to change the angular acceleration of the links. To nd the
682 G. Capi et al.
upper body angle trajectory, an intermediate angle µ3p and its passing time t3 are
considered as GA variables.
To determine the angle trajectories of the swing leg during walking, the coordi-
nates of an intermediate point P .xp ; zp / and their passing time tp , are also consid-
ered as GA variables. The searching area for this point is shown in Fig. 2a. Based
on the number of constraints, the range of the time polynomial for µ1 , µ2 , µ3 , µ4 and
µ5 are 3, 3, 7, 6 and 6, respectively.
In order to determine the swing leg motion, the GA generates the coordinates of
two intermediate points and their respective passing time when going up-stairs. The
searching areas of these points are shown in Fig. 2b. To determine the trajectory of
µ1 , its minimum value µ1m and its passing time t1m are considered as GA variables.
Based on the number ofstraints, the ranges of the time polynomial for µ1 , µ2 , µ3 , µ4
and µ5 are 5, 3, 7, 7 and 7, respectively.
6. SIMULATION RESULTS
Table 1.
‘Bonten-Maru I’ parameters
real value representation offers higher precision. The best function parameters are
found after many simulations. The population size is 80. The maximum number of
generations is used as the termination function.
6.1. Walking
Based on the parameters of the ‘Bonten-Maru I’ the step length used in the
simulations varies from 0.2 to 0.55 m. In Table 3, the simulation results are
presented for the step lengths 0.3, 0.4 and 0.5 m, with their respective step time
0.7, 1 and 1.2 s. The bounds, within which the solution is sought, change according
to the step length and step time. Because the foot length is 0.18 m, if the step
length is smaller then 0.36 m, the ZMP can smoothly pass from one foot to the
Table 2.
Functions and parameters of GA
Table 3.
Variable space and GA results for walking
other during the instantaneou s double support phase. If the step length is larger
then 0.36 m, then the ZMP must jump to the new supporting foot. This makes the
problem more complex. For this reason, the simulation results are presented for the
step length 0.4 m. To determine the best step time, for which the CE is minimal,
Application of GAs for gait synthesis optimization 685
the simulations are performed for 13 different step times (0.5 – 1.7 s). Based on
these data, the graph presented in Fig. 5 depicts a parabolic relation between the
CE and step time. From this graph it is clear that a step time exists for which the
CE is minimal. The simulation results are presented for this step time, which in our
case is 1 s. The joint angle trajectories (µi ), the torque vector (¿i ) and the optimal
motion are shown in Figs 6 and 7 for minimum CE and minimum TC, respectively.
As can be seen from Figs 6a and 7a, the boundary conditions are satis ed. Based
on the simulation results, we see that the lower leg of the supporting foot tends to
be near the vertical position when minimum TC is used as the cost function. Its
angular velocity at the end of the step is greater for the minimum CE cost function.
Comparing Figs 6b and 7b, the torques change more smoothly when minimum TC
is used as a cost function. The ZMP position is presented in Fig. 8 for minimum
CE and minimum TC. The ZMP is always between the dotted lines, which present
the length of the foot. At the end of the step, the ZMP is at the position ZMPf ,
as shown in Fig. 2a. At the beginning of the step, the ZMP is not exactly at the
position ZMPjump because of the foot’ s mass. It should be noted that the mass of the
lower leg is different when it is in supporting leg or swing leg. The values of CE,
calculated by (2) for minimum CE and minimum TC gait synthesis, are presented in
Fig. 9. The minimum CE gait synthesis reduces the energy by about 25% compared
with minimum TC.
686 G. Capi et al.
In [3, 4], the body link is restricted to be all the time in the vertical position. In
order to compare our method with the methods presented in [3, 4], we carried out
some simulations , considering the body effect on the CE and the walking motion
stability. Figure 10 presents the optimal walking motion for step length 0.4 m and
step time 1 s, where the body is xed in the vertical position and the stability is
not considered. The CE is 3% lower compared with our optimal motion, as shown
in Fig. 9, but the calculated ZMP gets out of the sole length, as can be seen from
Fig. 11. For this reason, the walking motion is not stable. To move the ZMP in the
new supporting foot by actuating the lower limbs or the body link will require more
energy.
Figure 12. Relation between CE and step time for going up-stairs.
Table 4.
Variable space and GA results for going up-stairs
GA Limits GA results
variables CE TC
µ10 0.2 – 1 0.347731 0.306488
µ20 ¡1– ¡0:2 ¡0:796885 ¡0:976242
µ30 0.1 – 0.4 0.205325 0.239100
µ3p ¡0:2– 0.1 ¡0:018776 0.099969
t3 0.3 – 1.7 0.990702 0.977437
xp1 ¡0:18 – ¡0:53 ¡0:118207 ¡0:151582
yp1 0 – 0.04 0.021998 0.013008
tp1 0.0 –0.9 0.734127 0.605508
xp2 0.02 – 0.14 0.100995 0.010824
yp2 0.05 – 0.09 0.062078 0.064536
tp2 0.9 –1.8 1.236136 1.264377
µ1m 0–0.3 0.150837 0.271828
t1m 0.4 –1.4 0.898001 0.600012
µP1f 0–2 0.321921 0.380191
P
µ30 ¡1– 1 ¡0:139561 ¡0:191488
is straighter when the minimum CE is used as the cost function. The ZMP position
is presented in Fig. 15 for minimum CE and minimum TC. The motion is stable
because the ZMP is always within the sole length and at the end of the step the
ZMP is at the position ZMPf , as shown in Fig. 2b. For going up-stairs the value of
CE is presented in Fig. 16. The energy is reduced by nearly 40% when minimum
CE is used as the cost function.
7. NN IMPLEMENTATION
7.1. RBFNN
The RBFNN involves three layers with entirely different roles, as shown in Fig. 17.
The input layer connects the network to the environment. The second layer (hidden
layer) applies a non-linear transformation from input space to the hidden space,
which is of high dimensionality. The most widely used non-linear transfer function
690 G. Capi et al.
Figure 18. Relation between step length, stair height and CE.
Table 5.
GA and NN results
height. They differ from training examples, for which the RBFNN outputs are the
same with GA outputs. The input data of the NN have been [0.414 0.042] and [0.44
0.036]. The results generated by GA and the NN are presented in Table 5. Based on
these results the angle trajectories are shown in Fig. 19. The difference between the
NN and GA angle trajectories is small. The ZMP position, for the two simulations,
is presented in Fig. 20. The time to generate the solution by the NN is 0.11 s, which
is good for the real-time application. The value of CE of NN results for the rst
and the second simulation is only 3.4 and 2.1% more compared with GA results, as
shown in Fig. 21.
692 G. Capi et al.
In this paper a GA-based approach for optimization of biped robot gait synthesis
is presented. We considered two important tasks for the biped robot — walking
and going up-stairs. Our method can be applied to a wide range of step lengths
and step times during walking, and for a wide range of step lengths, stair heights
and step times when going up-stairs. The proposed method can generate the angle
trajectories for other tasks performed by biped robots such as overcoming obstacle,
going down-stairs, etc. By using GA as an optimization tool it is easier to include
new constraints and to add new variables to be optimized. To ensure a stable
motion, because the double support phase is very short, the jumping of the ZMP is
realized by accelerating the body link. By using a RBFNN, a real-time application
of the proposed method is considered. The performance evaluation is carried out by
simulation. Based on the simulation results, we conclude:
² For a given step length during walking or a given step length and stair height
when going up-stairs, there is a step time for which the CE is minimal.
² The motion is stable because the ZMP is within the sole length.
² The biped robot posture is straighter when minimum CE is used as the cost
function, which is similar to human motion.
² From the CE and the stability point of view, it is better for the robot body not to
be xed during motion.
Application of GAs for gait synthesis optimization 693
² When comparing the energy for CE and TC cost function, it is reduced nearly 25
and 40% for walking and going up-stairs, respectively.
In the future, the following problems will be considered:
² Using GA for the gait optimization of the biped robot when overcoming an
obstacle, going down-stairs, etc.
² Experiments with the ‘Bonten-Maru I’ humanoid robot.
Acknowledgement
The authors would like to thank the reviewers for their insightful comments and
Professor J. A. Meech (University of British Colombia ) for his suggestions.
REFERENCES
1. M. Vukobratovic, B. Borovac, D. Surla and D. Stokic, Biped Locomotion, Dynamics, Stability,
Control and Application. Springer-Verlag, Berlin (1990).
2. A. Takanishi, M. Ishida, Y. Yamazaki and I. Kato, A control method for dynamic biped walking
under unknown external force, in: Proc. IEEE Int. Workshop on Intelligent Robots and Systems,
Ibaraki, Japan, pp. 795– 801 (1990).
3. L. Roussel, C. Canudas-de-Wit and A. Goswami, Generation of energy optimal complete gait
cycles for biped robots, in: Proc. IEEE Int. Conf. on Robotics and Automation, Leuven, Belgium,
pp. 2036– 2041 (1998).
4. F. M. Silva and J. A. T. Machado, Energy analysis during biped walking, in: Proc. IEEE Int.
Conf. on Robotics and Automation, Detroit, MI, pp. 59 – 64 (1999).
5. P. H. Channon, D. T. Pham and S. H. Hopkins, A variational approach to the optimization of gait
for a bipedal robot, J. Mech. Eng. Sci. 210, 177– 186 (1996).
6. A. Sano, J. Furusho and W. Yabuki, Biped walking on the oor and stairs based on torque
distribution, in: Proc. IFToMM-jc Int. Symp. on Theory of Machines and Mechanisms, Nagoya,
Japan, pp. 663– 668 (1992).
7. D. E. Goldberg, Genetic Algorithm in Search Optimization, and Machine Learning. Addison
Wesley, Reading, MA (1989).
8. Y. Uno, M. Kawato and R. Suzuki, Formulation and control of optimal trajectory in human
multijoint arm movement, Biol. Cybernet. 61, 89 – 101 (1989).
9. T. Mita, T. Yamaguchi, T. Kashiwase and T. Kawase, Realization of high speed biped using
modern control theory, Int. J. Control 40, 107– 119 (1984).
10. Z. Michalewich, Genetic Algorithms C Data Structures D Evaluation Programs. Springer-
Verlag, Berlin (1994).
11. S. Haykin, Neural Networks a Comprehensive Foundation. Prentice-Hall, Englewood Cliffs, NJ
(1999).
694 G. Capi et al.
Leonard Barolli received the BE and PhD degrees in 1989 and 1997 from
Tirana University and Yamagata University, respectively. From April 1997 to
March 1999, he was a Post-Doctoral Fellow Researcher of JSPS at the Faculty
of Engineering, Yamagata University. From April 1999, he has been working
as a Research Associate at the Department of Public Policy and Social Studies,
Yamagata University. His research interests include network traf c control, fuzzy
control, genetic algorithms and agent-based systems. He is a member of SOFT
and the Information Processing Society of Japan.