World's Largest Science, Technology & Medicine Open Access Book Publisher
World's Largest Science, Technology & Medicine Open Access Book Publisher
World's Largest Science, Technology & Medicine Open Access Book Publisher
100,000+
2,900+ INTERNATIONAL 94+ MILLION
OPEN ACCESS BOOKS AUTHORS AND EDITORS DOWNLOADS
AUTHORS AMONG
BOOKS TOP 1% 12.2%
DELIVERED TO AUTHORS AND EDITORS
MOST CITED SCIENTIST FROM TOP 500 UNIVERSITIES
151 COUNTRIES
Chapter from the book MATLAB for Engineers - Applications in Control, Electrical
Engineering, IT and Robotics
Downloaded from: http://www.intechopen.com/books/matlab-for-engineers-
applications-in-control-electrical-engineering-it-and-robotics
1. Introduction
It is well known that legged locomotion is more efficientspeedy, and versatile than the
one by track and wheeled vehicles when it operates in a rough terrain or in unconstructed
environment. The potential advantages of legged locomotion can be indicated such as better
mobility, obstacles overcoming ability, active suspension, energy efficiency, and achievable
speed (Song & Waldron, 1989). Legged walking robots have found wide application areas
such as in military tasks, inspection of nuclear power plants, surveillance, planetary
explorations, and in forestry and agricultural tasks (Carbone & Ceccarelli, 2005; Gonzlez et
al., 2006; Kajita & Espiau, 2008).
In the past decades, an extensive research has been focused on legged walking robots. A lot
of prototypes such as biped robots, quadrupeds, hexapods, and multi-legged walking robots
have been built in academic laboratories and companies (Kajita & Espiau, 2008). Significant
examples can be indicated as ASIMO (Sakagami et al., 2002), Bigdog (Raibert, 2008), Rhex
(Buehler, 2002), and ATHLETE (Wilcox et al., 2007). However, it is still far away to
anticipate that legged walking robots can work in a complex environment and accomplish
different tasks successfully. Mechanical design, dynamical walking control, walking pattern
generation, and motion planning are still challenge problems for developing a reliable
legged walking robot, which can operate in different terrains and environments with
speedy, efficient, and versatility features.
Mechanism design, analysis, and optimization, as well as kinematic and dynamic simulation
of legged walking robots are important issues for building an efficient, robust, and reliable
legged walking robot. In particular, leg mechanism is a crucial part of a legged walking
robot. A leg mechanism will not only determine the DOF (degree of freedom) of a robot, but
also actuation system efficiency and its control strategy. Additionally, it is well understood
that a torso plays an important role during animal and human movements. Thus, the
aforementioned two aspects must be taken into account at the same time for developing
legged walking robots.
Computer aided design and simulation can be considered useful for developing legged
walking robots. Several commercial simulation software packages are available for
performing modeling, kinematic, and dynamic simulation of legged walking robots. In
particular, Matlab is a widely used software package. It integrates computation,
visualization, and programming in an easy-to-use environment where problems and
solutions are expressed in familiar mathematical notation. By using a flexible programming
environment, embedded functions, and several useful simulink toolboxes, it is relative
www.intechopen.com
460 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
easy and fast to perform kinematic and dynamic analysis of a robotic mechanical system
(Matlab manual, 2007). Additionally, motion control and task planning algorithms can be
tested for a proposed mechanism design before implementing them on a prototype.
In this chapter, the applications of Matlab tool for design and simulation of legged
walking robots are illustrated through three cases, namely a single DOF biped walking
robot with Chebyshev-Pantograph leg mechanisms (Liang et al., 2008); a novel biologically
inspired tripod walking robot (Liang et al., 2009 & 2011); a new waist-trunk system for
biped humanoid robots (Carbone et al., 2009; Liang et al., 2010; Liang & Ceccarelli, 2010). In
details, the content of each section are organized as follows.
In the first section, operation analysis of a Chebyshev-Pantograph leg mechanism is
presented for a single DOF biped robot. The proposed leg mechanism is composed of a
Chebyshev four-bar linkage and a pantograph mechanism. Kinematic equations of the
proposed leg mechanism are formulated and programmed in Matlab environment for a
computer oriented simulation. Simulation results show the operation performance of the
proposed leg mechanism with suitable characteristics. A parametric study has been carried
out to with the aims to evaluate the operation performance as function of design parameters
and to achieve an optimal design solution.
In the second section, a novel tripod walking robot is presented as inspired by tripod gaits
existing in nature. The mechanical design problem is investigated by considering the
peculiar requirements of leg mechanism to have a proper tripod walking gait. The proposed
tripod walking robot is composed of three leg mechanisms with linkage architecture. The
proposed leg mechanism is modeled for kinematic analysis and equations are formulated
for simulation. A program has been developed in Matlab environment to study the
operation performance of the leg mechanism and to evaluate the feasibility of the tripod
walking gaits. Simulation results show operation characteristics of the leg mechanism and
feasible walking ability of the proposed tripod walking robot.
In the third section, a new torso design solution named waist-trunk system has been
proposed for biped humanoid robots. The proposed waist-trunk system is composed of a six
DOFs parallel manipulator and a three DOFs orientation parallel manipulator, which are
connected in a serial chain architecture. In contrast to the traditional torso design solutions,
the proposed new waist-trunk system has a high number of DOFs, great motion versatility,
high payload capability, good stiffness, and easy-operation design features. A 3D model has
been built in Matlab environment by using its Virtual Reality (VR) toolbox. Kinematic
simulations have been carried out for two operation modes, namely walking mode and
manipulation mode. Operation performances have been evaluated in terms of
displacements, velocities, and accelerations. Simulation results show that the simulated
waist-trunk system can be very convenient designed as the torso part for humanoid robots.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 461
A different methodology can be considered such as constructing a biped robot with reduced
number of DOFs and compact mechanical design. At LARM, Laboratory of Robotics and
Mechatronics in the University of Cassino, a research line is dedicated to low-cost easy-
operation leg mechanism design. Fig. 1 shows a prototype of a single DOF biped robot fixed
on a supporting test bed. It consists of two leg mechanisms with a Chebyshev-Pantograph
linkage architecture.The leg mechanisms are connected to the body with simple revolute
joints and they are actuated by only one DC motor through a gear box. The actuated crank
angles of the two leg mechanisms are 180 degrees synchronized. Therefore, when one leg
mechanism is in non-propelling phase another leg mechanism is in propelling phase and
vice versa. A big U shaped foot is connected at the end of each leg mechanism with a
revolute joint equipped with a torsion spring. The torsion spring makes the foot contact with
the ground properly so that it has adaptability to rough terrain and the walking stability of
the biped robot is improved.
Fig. 1. A prototype of a single DOF biped robot with two Chebyshev-Pantograph leg
mechanisms at LARM
www.intechopen.com
462 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
xB = m cos + (c + f) cos
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 463
and
a
B = cos - (3)
m
a 2 + m 2 - c2 + d 2 a
C= - cos
2md d
a a 2 + m 2 - c2 + d 2
D = cos -
c 2mc
The five design parameters a, m, c, d, and f characterize the Chebyshev four-bar linkage,
which have a fixed ration with each other as reported in (Artobolevsky, 1979). A numerical
simulation can be carried out by using Eqs. (1), (2), and (3) with proper value of the design
parameters.
The pantograph mechanism PGBHIA with design parameters is shown in Fig. 2. The
point P is fixed and point B is connected to the output motion that is obtained by the
Chebyshev four-bar linkage. The transmission angles 1 and 2 are important parameters
for mechanism efficiency. A good performance can be ensured when |i-90|< 40
(i=1, 2) according to practice rules for linkages as reported in (Hartenberg and Denavit,
1964).
Referring to the scheme in Fig. 2, kinematic equations of the pantograph mechanism can be
formulated after some algebraic manipulation in the form, (Ottaviano et al., 2004),
1- 1+ k12 - k 2 2
1 = 2tan -1
k1 - k 2
1- 1+ k 2 2 - k 4 2
2 = 2tan -1 (4)
k3 - k 4
with
xB - p
k1 =
yB - h
b12 + yB 2 + x B 2 - (l2 - b 2 )2 + p2 + h 2 - 2px B - 2hy B
k2 =
2b1 (yB - h)
p - xB
k3 =
yB - h
www.intechopen.com
464 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
a b c d h m
50 20 62.5 62.5 30 25
f p l1 l2 b1 b2
62.5 30 300 200 75 150
Table 1. Design parameters of a prototype leg mechanism at LARM with structure of Fig. 2
(sizes are in mm)
Examples of simulation results of one leg mechanism are shown in Fig. 3. When the input
crank LE rotates around point L with a constant speed, the motion trajectories of point A
and point B can be obtained in the form of ovoid curves. A scheme of the zoomed view of
the ovoid curve in Fig. 3(a) is shown in Fig. 3(b) in which four characteristic angles of the
input crank actuation are indicated. The dimension of the ovoid curve is characterized by
the length L and height H. The generated ovoid curve is composed of an approximate
straight-line and a curved segment with a symmetrical shape. The straight-line segment
starts at the actuation angle =90 degs and ends at =270 degs. Actually, during this 180
degs interval the leg mechanism is in the non-propelling phase and it swings from rear to
forth. During the next 180 degs interval the actuation angle goes from =270 degs to =90
degs corresponding to the coupler curve segment. In this period, the foot grasps the ground
and the leg mechanism is in the propelling phase. The leg mechanism is in a almost
stretched configuration when =0 deg just as the leg scheme shows in Fig. 3(a).
Fig. 4 shows simulation results of the biped robot when it walks on the ground. In Fig. 4, the
right leg is indicated with solid line when in contact with the ground and the crank
actuation angle is at =0 deg, the left leg is indicated with dashed line when the crank is at
angle =180 degs and it swings from rear to forth. The trajectories of points A and point B
are also plotted as related to the non-propelling phase. It is noted that at the beginning and
the end of the trajectory, the density of the points is higher than in the middle segment.
Since the time periods are same between each plotted points, the velocity of the swinging
leg mechanism in the middle is higher than that at the start and end of one step.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 465
(a) (b)
Fig. 3. Simulation results of one leg mechanism: (a) computed trajectories of points A and B;
(b) generated ovoid curve at point A
A scheme of the biped motion and trajectories of critical points are shown in Fig. 5(a).
Referring to Fig. 5(a), when the leg mechanism is in a non-propelling phase, it swings from
rear to forth and the supporting leg propels the body forward. The swinging leg mechanism
has a relative swing motion with respect to the supporting leg mechanism. Therefore, the
velocity of point B1 in a non-propelling phase with respect to the global inertial frame is
larger than that during a supporting phase. This is the reason why the size of curve a-b-c is
larger than that the size of curve c-d-e in Fig. 5(b) even if the Chebyshev mechanisms
produce the motion with only 180 degs phase differences at the points B1 and B2.
Fig. 4. Simulation results for motion trajectories of the leg mechanisms during biped walking
Fig. 5(b) shows the trajectories of points A1, A2, B1, and B2 in a biped walking gait. The
trajectories are plotted with solid lines for the right leg mechanism and with dashed lines for
the left leg mechanism, respectively. The motion sequences of points B1 and A1 are
indicated with alphabet letters from a to e and a' to e', respectively. In Fig. 5(b), the trajectory
segments a-b-c of point B1 and a'-b'-c' of point A1 are produced by the right leg mechanism
while it swings from rear to forth. The trajectory segments c-d-e are produced while the
right leg is in contact with the ground. Correspondingly, c', d', and e' are at the same point.
The trajectories of points A2 and B2 for left leg mechanism are similar but have 180 degs
www.intechopen.com
466 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
differences with respect to the right leg mechanism. There are small circles in the trajectories
of point B1 and point B2 during the transition of the two walking phases. This happens
because there is a short period of time during which both legs are in contact with the ground
and a sliding back motion occus for the body motion of the biped robot.
(a) (b)
Fig. 5. Simulation results of biped walking: (a) motion trajectories of the leg mechanisms; (b)
a characterization of the computed trajectories of points A1, A2, B1, and B2
Fig. 6(a) shows plots of the computed transmission angles 1 and 2 of the right leg
mechanisms as function of the input crank angles 1. The value of the transmission angles
are computed between 50 degs and 120 degs. The transmission angles for left leg
mechanism have 180 degs time differences. Therefore, the proposed leg mechanism has an
efficient motion transmission capability. Fig. 6(b) shows the computed plots for angles 1
and 2 of the right leg mechanism. The value of 1 is between 18 degs and 100 degs as a
good contact with the ground. The value of 2 is between -5 degs and 100 degs and there is
no confliction between the legs and body.
(a) (b)
Fig. 6. Characterization angles of the right leg mechanism as function of angle 1: (a) angles
1 and 2; (b) angles 1 and 2
The acceleration of point A is computed by using kinematics equations, which are computed
in Matlab m files. Fig. 7(a) shows the computed acceleration values of point A along X axis
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 467
and Y axis, respectively. Similarly, Fig. 7(b) shows the accelerations of point P on the body
of the biped robot.
In Fig. 7(a), the acceleration of point A at the end of leg mechanism is computed between -1
ms2 to 10 m/s2 along X axis and between -10.5 m/s2 to -3.5 m/s2 along Y axis. The
acceleration along X axis reaches the maximum value when the input crank angle is at t=0.5
s (=20 degs) and the minimum value when it is at t=7.3 s (=325 degs).
In Fig. 7(b), the acceleration at point P is computed between -2.3 m/s2 to 9 m/s2 along X axis
and between -10.2 m/s2 to -0.2 m/s2 along Y axis. The acceleration in X axis reaches the
maximum value when one leg mechanism is in the middle of supporting phase and
acceleration in Y axis reaches the minimum value, correspondingly. The acceleration in X
axis reaches the minimum value during the transition phase of leg mechanisms and the
negative value shows that the biped robot in a double supporting phase and produces a
back sliding motion.
(a) (b)
Fig. 7. Computed accelerations during one biped walking gait: (a) accelerations of point A in
X and Y axes; (b) accelerations of point P in X and Y axes
An optimal design of the leg mechanism can perform an efficient and practical feasible
walking gait. By using the flexibility of Matlab environment with the elaborated
simulation codes. A parametric study has been proposed to characterize the operation
performance of the proposed single DOF biped robot as function of its design parameters.
Actually, the lengths of the linkages determine a proper shape and size of the generated
ovoid curve that is produced by the Chebyshev linkage through an amplification ration of
the pantograph mechanism as shown in Fig. 2. Therefore, only three parameters a, p, and h
can be considered as significant design variables. In Fig. 8, results of the parametric study
are plotted as function of parameter a as output of Matlab m files.
By increasing the value of parameter a, size of the ovoid curve is decreased in X axis and is
increased in Y axis as shown in Fig. 8(a). Particularly, the ovoid curve with an
approximately straight line segment is obtained when a=0.05 m. Fig. 8(b) shows the
corresponding trajectories of COG (center of gravity) and the feet of swinging leg when the
other leg mechanism is in contact with the ground. The step length L decreases and step
height H increases as function of the value of parameter a, as shown in Fig. 8(b).
In Fig. 9, results of parametric study are plotted as function of parameter p. In Fig. 9(a), by
varying parameter p the ovoid curve generated at point A has only displacements along X
www.intechopen.com
468 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
(a) (b)
Fig. 8. A parametric study of the leg mechanism as function of parameter a in Fig. 2: (a) generated
ovoid curves at point A; (b) trajectories of COG and foot trajectories of the swinging leg
(a) (b)
Fig. 9. A parametric study of the biped robot as function of parameter p in Fig. 2: (a)
generated ovoid curves at point A; (b) trajectories of COG and foot point of swinging leg
(a) (b)
Fig. 10. A parametric study of the biped robot as function of parameter h in Fig. 2: (a)
generated ovoid curves at point A; (b) trajectories of COG and foot point of swinging leg
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 469
without change of the step length L and step height H. The COG of the biped robot has
corresponding displacements along X axis. Similarly, by varying parameter h, the COG of
the biped robot has displacements along Y axis as shown in Fig. 10.
Therefore, the position of point P determines the location of the ovoid curve without any
shape change. Correspondingly, the location of COG of the biped robot can be as function of
the position of point P since the mass center of the leg mechanism varies correspondingly.
The parametric study have analyzed the shape of the generated ovoid curve as function of
three parameters a, p, and h. The parametric study whose main results are shown in Fig. 8,
9, and 10 has been aimed to check the motion possibility and design sensitivity of the
proposed leg mechanism. Interesting outputs of the parametric study can be considered in
the following aspects:
- The kinematic behaviour in terms of point trajectories is robust and well suited to
walking tasks.
- Variations of main design parameters do not affect considerably main characteristics of
the walking operation.
- The size of the walking step can be modified by changing the parameter a only.
- The size of height of swinging leg motion can be modified by changing the parameter h
only.
Therefore, an optimized mechanical design for leg mechanism and an efficient walking gait
for minimizing input crank torque can be determined by selecting proper design
parameters.
www.intechopen.com
470 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
Fig. 11. A 3D model of the proposed tripod walking robot in SolidWorks environment
Weight 10 kg
Dimension 300300600 mm
Table 2. Main specifications of the 3D model for the tripod walking robot in Fig. 11
The tripod walking robot is developed for payload transportation and manipulation
purposes. The proposed design of the tripod walking robot will be capable of moving
quickly with flexibility, and versatility within different environments. Therefore, in the
mechanical design, particular attentions have been focused to make the tripod walking
robot low-cost easy-operation, light weight, and compact. Particularly, commercial products
have been extensively used in the designed model to make it easy to build. Aluminum alloy
is selected as the material of the tripod walking robot since it has proper stiffness, mass
density, and cheap price.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 471
forth. The two legs in contact with the ground together with the robot body form a parallel
mechanism.
A scheme of the proposed leg mechanism for tripod walking robot is shown in Fig. 12(b).
The tripod walking robot is mainly composed of three one-DOF leg mechanisms. The three
leg mechanisms are the same design which is installed on the robot body to have a triangle
configuration in horizontal plane. All the three legs are fixed on the body and actuated by
DC motors. The leg mechanism is sketched with design parameters in Fig. 12(b).
The basic kinematics and operation characters of the proposed leg mechanism are
investigated in the work (Liang et al., 2009). This one-DOF leg mechanism is composed
of a Chebyshev four-bar linkage CLEDB and a pantograph mechanism BGMHIA. Points L,
C and M are fixed on the body. The Chebyshev mechanism and pantograph mechanism are
jointed together at point B through which the actuation force is transmitted from
the Chebyshev linkage to the pantograph leg. Linkage LE is the crank and is the input
crank angle. The transmission angles 1 and 2 of the leg mechanism are shown in the
Fig. 12(b).
When the crank LE rotates around point L, an ovoid curve with an approximate straight line
segment and symmetry path as traced by foot point. Each straight line segment has a 180
phase in the crank rotation input. The straight line segment represents the supporting phase
and the curve segment represents the swinging phase. When the leg mechanism operates in
a supporting phase it generates a horizontal motion to points L, C and M which are fixed at
the body. Therefore, the body of the robot is propelled forward without force conflict
between two legs contacting the ground.
In a tripod walking gait each leg must has 2/3 period of time in supporting phase and
another 1/3 time in swinging phase. In order to avoid the problem of force conflict between
legs, a solution is that the two legs on the ground can produce a straight line motion in
horizontal plane with the same speed and without waving in vertical direction. A careful
analysis will help to define a propel operation of the leg mechanism.
A feasible solution requires that the actuation speed of the input crank is twice during
swinging phase as compared with supporting phase. Ai (i=1, 2, 3) are the end points of three
leg mechanisms. They trace the same ovoid curve but with 90actuation phase differences in
supporting phase. Therefore, there will be always two legs in contact with the ground and
another leg swings in the air.
www.intechopen.com
472 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
Z
C3
Motor Motor Motor X
C1
C2
Body Leg
No.1
Leg Joint
B3 B1
No.3 B2
A3
Leg Torsional
No.2 Spring
A2 A1
(a) (b)
Fig. 12. The proposed tripod walking robot: (a) configurations of three leg mechanisms; (b) a
scheme of one leg mechanism with design parameters
In Fig. 13, the tripod walking robot is given at initial configuration with the input crank
angles 1=180 degs, 2=90 degs, and 3=270 degs. At this initial time, the three legs are on
the ground with two legs in supporting phase and the third leg is about to get into swinging
phase.
In Fig. 14, a sequence of snapshots are shown for the tripod walking robot walks in three
dimension space as computed in the numerical simulation. The trajectories of points Ai
(i=1,2, 3) of the feet are depicted with small curves. In Fig. 15, the movements of the legs for
tripod walking robot are shown in saggital plane. The positions of three feet are also shown
in horizontal plane as referring to the computed snapshots.
As shown in Fig. 15, at each step, there are always two legs contacting the ground. Actually, a
balancing mechanism can be installed on the body of the robot to adjust the gravity center
between the two legs, which grasp the ground at each step. A simple rotation mechanism with
a proper mass at end is likely to be installed on the body of robot as a balancing mechanism.
Therefore, with a very simple control algorithm and specially sized balancing mechanism the
tripod walking robot can walk with a static equilibrium even while it is walking.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 473
A typical walking cycle for the proposed tripod walking robot can be described as following
by referring to Fig. 13 and Fig. 15. The leg No.3 leaves the ground and swings from back to
forth in the so-called swinging phase; at the same time the leg No.1 and the leg No.2 are in
the supporting phase, since they are in contact with the ground and they propel the body
forward. The speed of the input crank in leg No.3 is twice than in leg No.2 and Leg No.1.
When the swinging leg No.3 touches the ground, it starts the propelling phase and the leg
No.1 is ready to leave the ground. When Leg No.2 touches the ground, the tripod robot
completes one cycle of walking.
Fig. 13. The tripod walking robot at initial configuration with 1=180 degs, 2=90 degs, and
3=270 degs
www.intechopen.com
474 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 475
(a) (b)
Fig. 16. The transmission angles of the three leg mechanisms during a simulated walking as
function of time; (a) transmission angle 1; (b) transmission angle 2
(a) (b)
Fig. 17. The transmission angles of three leg mechanisms as function of time; (a)
transmission angle 1; (b) transmission angle 2
(a) (b)
Fig. 18. The position of point A and point C in Saggital XY plane for three legs; (a) positions
of points A i (i=1, 2, 3); (b) positions of points Ci (i=1, 2, 3)
www.intechopen.com
476 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
(a) (b)
Fig. 19. The errors between points Ci (i=1, 2, 3) as function of time: (a) errors in X axis; (b)
errors in Y axis
(a) (b)
Fig. 20. The velocity of points Ai (i=1, 2, 3). as function of time: (a) velocity in X axis ; (b)
velocity in Y axis
The plots of velocity at points Ai (i=1, 2, 3) in X and Y axis are shown in Fig. 20(a) and .Fig.
20(b), respectively. It can be noted that the velocity reaches the maximum value when the
legs move to the highest point in a swinging phase in X axis. At the same point the velocity
in Y axis is zero and the sign of velocity is changed. In the supporting phase because points
Ai (i=1, 2, 3) are on the ground, the velocity is zero. Since the input crank speed is twice time
in swinging phase than that in supporting phase, the plots are discontinuous at the
transition point. Actually, this can be modeled as an impact between feet and ground that
can be smoothed by the above mentioned differences in the paths of Ci points.
Matlab programming has been suitable and indeed efficient both for performance
computation and operation simulation by using the formulated model for the design and
operation of the proposed tripod walking robot.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 477
Therefore, they can be better accommodated in our daily life environment (home, office, and
other public places) by providing services for human beings (Kemp et al., 2008). This
research field has attracted large interests since two decades and a lot of prototypes have
been built in the laboratories or companies. Significant examples of biped humanoid robots
can be indicated for example in ASIMO developed by HONDA Corporation (Sakagami et
al., 2002), HRP series developed at AIST (Kaneko et al., 2004), WABIAN series at the
Takanishi laboratory in the Waseda University, Japan (Ogura et al., 2006), HUBO series built
at KAIST in Korea (Ill-Woo et al., 2007), and BHR series built in the Beijing Institute of
Technology, China (Qiang et al., 2005).
A survey on the current humanoid robots shows that their limbs (arms and legs) are
anthropomorphically designed as articulated link mechanisms with 6 or 7 DOFs. However,
torsos of humanoid robots are generally treated as rigid bodies, which are passively carried
by the biped legs. The torsos of the existing humanoid robots like ASIMO, HRP, and HUBO
have almost a box shaped body with a small number of DOFs. A motivation of this kind of
designs is that the torso is used to store the computer, battery, sensors, and other necessary
devices, so that the whole system can be designed as compact, robust, and stiff. In addition,
due to mechanical design difficulties and complexity of controlling multi-body systems,
torsos have been designed by using serial mechanism architectures. However, this kind of
designs introduces several drawbacks, which give limitations on the motion capability and
operation performances for humanoid robots (Carbone et al., 2009). Therefore, it is
promising to design an advanced torso for humanoid robots by adopting parallel
mechanisms with a relative high number of DOFs.
Actually, the human torso is a complex system with many DOFs, and plays an important
role during human locomotion such as in walking, turning, and running. Humans
unconsciously use their waists and trunks to perform successfully tasks like bending,
pushing, carrying and transporting heavy objects. Therefore, an advanced torso system is
needed for humanoid robots so that they can be better accommodated in our daily life
environment with suitable motion capability, flexibility, better operation performances, and
more anthropomorphic characteristics.
In the literature, there are few works on design and control issues of the torso system for
humanoid robots. A humanoid robot named WABIAN-2R has been developed at Takanishi
laboratory in the Waseda University with a 2 DOFs waist and 2 DOFs trunk, (Ogura et al.,
2006). The waist and trunk of WABIAN-2R is a serial architecture and it is used for
compensating the moment that is generated by the swinging legs when it walks, and to avoid
the kinematics singularity in a stretched-knee, heel-contact and toe-off motion. A
musculoskeletal flexible-spine humanoid robot named as Kotaro has been built at the JSK
laboratory in the University of Tokyo. Kotaro has an anthropomorphic designed trunk system
with several DOFs and a complicated sensor system, and it is actuated by using artificial
muscle actuators. However, it is not able to walk, (Mizuuchi, 2005). A 3 DOFs parallel
manipulator named as CaPaMan2 bis at LARM has been proposed as the trunk module for a
low-cost easy-operation humanoid robot CALUMA with the aim to keep balance during
walking and for manipulation movements, (Nava Rodriguez et al., 2005). However, these torso
systems are fundamentally different from the proposed waist-trunk system.
www.intechopen.com
478 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
scheme of the skeleton of human torso. It can be noted that the human torso consists of three
main parts: thorax, waist, and pelvis (Virginia, 1999). The rib cages and spine column of the
upper part contribute to thorax. In the thorax, the heart and lungs are protected by the rib
cage. The human spine is composed of 33 individual vertebrae, which are separated by
fibrocartilaginous intervertebral discs and are secured to each other by interlocking
processes and binding ligaments. In particular, the lumbar spine, which is the waist
segment, is the most important and largest part of human spine. The main function of the
lumbar spine is to bear the weight of the human body. The spine is connected with the
pelvis by sacrum and the pelvis is connected with two femurs in the lower part.
Additionally, there are hundred pairs of muscles, flexible tendons, and ligaments, complex
blood and nervous system with different functions to make a human torso an important part
of the human body. Since the human torso is composed of three portions, namely the thorax,
waist, and pelvis. In Fig. 21(a), three black rectangles have been indicated on the skeleton of
the human torso as reference platforms for the thorax, waist, and pelvis, respectively. Fig.
21(b) shows the corresponding positions of these three parts on the human spine. Therefore,
a simply model with three rigid bodies has been proposed as shown in Fig. 22(a), which is
expected to imitate the function of human torso during difference human movements.
(a) (b)
Fig. 21. Schemes of human torso with reference platforms: (a) skeleton structure; (b) S curve
of a human spine
The proposed model in Fig. 22(a) is composed of three rigid bodies namely thorax platform,
waist platform, and pelvis platform, from the top to the bottom, respectively. The thorax
platform can be connected together to the waist platform by using parallel mechanism with
suitable DOFs, which has been named as the trunk module. The thorax platform is expected
to imitate the movements of human thorax. Arms, neck, and head of humanoid robots are
assumed to be installed a connected to the thorax platform. The pelvis platform is connected
to the waist platform with suitable mechanism, which has been named as the waist module.
Two legs are expected to be connected to pelvis platform.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 479
(a) (b)
Fig. 22. A new waist-trunk system for humanoid robots: (a) a model for imitating the
movements of human torso; (b) the proposed new waist-trunk system as modeled in
Matlab environment
The proposed waist-trunk system is illustrated in Fig. 22(b) as a kinematic model that has been
elaborated in Matlab environment. The design sizes of the proposed waist-trunk system are
close to the human torso dimensions as reported in (Kawuchi and Mochimaru, 2005).
In Fig. 22(b), upper part of the proposed waist-trunk system is named as trunk module,
which consists of a thorax platform, a waist platform, and six identical leg mechanisms to
obtain a 6 DOFs parallel manipulator structure. Actually, the proposed trunk module has
the same structure of a Stewart platform (Tsai, 1999; Ceccarelli, 2004).
In the trunk module, each leg mechanism is composed of a universal joint, a spherical joint,
and an actuated prismatic joint. The trunk module has six DOFs with the aim to imitate the
function of human lumbar spine and thorax to perform three rotations (flexion-extension,
lateral-bending, and transverse-rotation movements) and three translation movements. In
particular, head, neck, and dual-arm systems can be installed on the thorax platform in a
humanoid robot design
The lower part in Fig. 22(b) is named as waist module, which consists of a pelvis platform, a
waist platform, and three identical leg mechanisms to obtain a 3 DOFs orientation parallel
manipulator structure. This 3 DOFs orientation parallel platform is a classical parallel
mechanism, which has been designed as the hip, wrist, and shoulder joints for humanoid
robots as reported in a rich literature (Sadjadian & Taghirad, 2006). The waist module shares
waist platform with the trunk module but the leg mechanisms are installed on the counter
side in a downward architecture.
The pelvis platform is connected to the waist platform with three leg mechanisms and a
passive spherical joint. There are six bars connected with the passive spherical joint with the
waist platform and pelvis platform with the aim to make it very stiff. The waist module is an
orientation platform and has three rotation DOFs for yaw, pitch, and roll movements. The
rotation center is a passive spherical joint, which plays a role like the symphysis pubis in the
human pelvis to carrry the weight of the human body. The waist module is aimed to imitate
the function of human pelvis during walking, running, and other movements. In particular,
a biped leg system can be connected to the moving pelvis platform.
www.intechopen.com
480 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
(a) (b)
Fig. 23. 3D models in VRML: (a) a biped humanoid robot; (a) modeling details of the waist-
trunk system
In Fig. 24, a simulation procedure of the biped humanoid robot in Matlab virtual reality
toolbox is shown in several steps as described in the following:
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 481
Step 1. Movements of the moving platforms are computed according to assigned tasks. For
a walking mode, motion trajectory of the waist platform is determined as based on
the prescribed ZMP (zero momentum point) and COM (center of mass) trajectories.
The movements of the pelvis platform are functions of the walking gait parameters.
For a manipulation mode, the movements of waist platform and thorax platform
depend on the locations of the manipulated objects.
Step 2. The prescribed movements are the inputs of a motion pattern generator, where
walking pattern or manipulation pattern is generated for the simulated biped
humanoid robot.
Step 3. The computed reference trajectories of the actuated joints are the inputs of a direct
kinematics solver. By solving the direct kinematics of the biped humanoid robot,
positions and orientations of each component can be computed.
Step 4. The position and orientation for each component of the VRML model are updated for
each step of simulation. The computed movements of the simulated biped humanoid
robot are shown in animations, which are stored as videos in AVI format.
Therefore, two different operation modes of the proposed waist-trunk system can be
simultated and its operation performances can be conveniently characterized by using
elaborated codes included in the CD of this book.
Fig. 24. A scheme for a simulation procedure of the biped humanoid robot in Matlab
virtual reality toolbox simulation environment
www.intechopen.com
482 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
can be conveniently prescribed. During a normal walking, the movements of the pelvis
platform and thorax platform can be prescribed by using the equations listed in Table 4.
In Table 4, A(v, h) is the magnitude of the rotation angle around roll axis as function of the
walking parameters that can be determined by the walking speed v and step height l. A is
the magnitude of the rotation angle around pitch axis as function of the slope angle of the
ground. In particular, for a flat ground it is A() =0. A (v, l) is the magnitude of the rotation
angle around yaw axis as function of the walking parameters of the walking speed v and
step length l. W,0 and W,0 are the initial phase angles. =/Ts is the walking frequency. Ts
is the time period for one step of walking. The expressions in Table 4 can describe the
periodical motion of the walking. A similar motion generation method is also presented in
(Harada et al., 2009). The motion trajectories of the thorax platform can be prescribed
similarly but in opposite motion direction in order to have a counter rotation with respect to
the pelvis movements. This is aimed to preserve the angular monument generated by the
lower limbs for walking stability. Particularly, only the orientation angles have been
prescribed in the trunk module in the reported simulation. However, the position can be
prescribed independently since the thorax platform has 6 DOFs.
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 483
www.intechopen.com
484 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
(a) (b)
Fig. 26. Prescribed orientation angles for an operation of walking mode: (a) thorax platform;
(b) pelvis platform
(a) (b)
Fig. 27. Computed leg displacement of the trunk module: (a) for legs 1, 2, and 3; (b) for legs
4, 5, and 6
Fig. 28. Computed leg displacements of the waist module for the three legs
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 485
(a) (b)
Fig. 29. Computed velocities in Cartesian space: (a) thorax platform; (b) pelvis platform
(a) (b)
Fig. 30. Computed accelerations in Cartesian space: (a) thorax platform; (b) pelvis platform
www.intechopen.com
486 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
ZT = ZT,0 - 80 sin( t) T =0
XW = XW(W, W, W) W = 0
ZW = ZW(W, W, W) W =0
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 487
(a) (b)
Fig. 32. Prescribed orientation angles for a simulated operation of bending-manipulation
movement: (a) thorax platform; (b) waist platform
The prescribed orientation angles of the thorax platform and waist platform are shown in Fig.
32(a) and Fig. 32(b), respectively. The thorax platform rotates 60 degs around its pitch axis and
the waist platform rotates 30 degs around its pitch axis. The prescribed positions are plotted in
Fig. 33(a) and Fig. 33(b). The center point of the thorax platform moves 120 mm along X axis
and 80 mm along Z axis. The center point of the waist platform moves 66 mm along X axis and
17 mm along Y axis. Particularly, since the waist module is an orientation parallel manipulator,
the positions of the waist platform are coupled with its orientation angles and they can be
computed when the orientation angles are known. Fig. 34 shows the computed displacements
of the prismatic joints Sk (k=1,2,3) of the waist module. The computed displacements of the
prismatic joints Li (i=1,,6) of the trunk module are shown in Fig. 35.
(a) (b)
Fig. 33. Prescribed positions in Cartesian space for a simulated operation of bending-
manipulation movement: (a) thorax platform; (b) waist platform
Fig. 36 shows the computed velocities for the waist and trunk modules. The maximum
velocity has been computed as 600 mm/s along X axis of the thorax platform and 80 mm/s
along X axis of the waist platform. Fig. 37 shows the computed accelerations in the Cartesian
space with the maximum acceleration as 1000 mm/s2 along X axis of the thorax platform
www.intechopen.com
488 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
(a) (b)
Fig. 35. Computed leg displacements of the trunk module: (a) for legs 1, 2, and 3; (b) for legs
4, 5, and 6
(a) (b)
Fig. 36. Computed velocities in Cartesian space: (a) thorax platform; (b) waist platform
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 489
and 170 mm/s2 along X axis of the waist platform. It can be noted that the characterization
plots are quite smooth. The characterization values are feasible in proper regions for the
operation of both the parallel manipulators and the proposed waist-trunk system has
suitable and feasible operation performances for a robotic system as reported in the
characterization plots from Fig. 32 to Fig. 37.
(a) (b)
Fig. 37. Computed accelerations in Cartesian space: (a) thorax platform; (b) waist platform
From the reported simulation results, it is worth to note that a complex mechanical system
such as a humanoid robot can be conveniently modeled and evaluated in Matlab
environment due to its flexible programming environment and its powerful toolbox.
5. Conclusion
In this chapter, design and simulation issues of legged walking robots have been addressed
by using modeling and simulation in Matlab environment. In particular, Matlab is a
powerful computation and simulation software package, which is quite useful for the design
and operation performances evaluation of legged robotic systems. Three examples are
illustrated and they have been studied for motion feasibility analysis and operation
performances characterizations by taking advantages of Matlab features. Contributions of
this chapter can be indicated as follows.
A kinematic study of a Chebyshev-Pantograph leg mechanism has been carried out, and
equations are formulated in the Matlab environment. From the reported simulation
results, it shows that the practical feasible operation performance of the Chebyshev-
Pantograph leg mechanism in a single DOF biped robot. Additionally, a parametric study
has been developed by using the elaborated Matlab analysis code to look for an optimized
mechanical design and to determine an energy efficient walking gait.
A novel biologically inspired tripod walking robot is proposed by defining suitable design
and operation solution for leg mechanism. Simulation results show the proposed design
performs a tripod walking gait successfully. Operation performance of the leg mechanisms
and the tripod walking robot are reported and discussed by using results from Matlab
simulations.
A new waist-trunk system for humanoid robots has been proposed by using suitable
parallel architectures. The proposed system shows an anthropomorphic design and
operation with several DOFs, flexibility, and high payload capacity. Simulation results show
www.intechopen.com
490 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
that the proposed waist-trunk system can well imitate movements of human torso for
walking and manipulation tasks. Additionally, the proposed design has practical feasible
operation performances from the reported simulation results.
6. Acknowledgment
The first author likes to acknowledge Chinese Scholarship Council (CSC) for supporting his
Ph.D. study and research at LARM in the University of Cassino, Italy for the years 2008-
2010.
7. References
Song, S.M. & Waldron K.J. (1989). Machines That Walk-The Adaptive Suspension Vehicle, The
MIT press, Cambridge, USA.
Carbone, G. & Ceccarelli, M. (2005). Legged Robotic Systems, Cutting Edge Robotics ARS
Scientific Book, pp. 553-576, Wien, Austria.
Gonzlez-de-Santos, P.; Garcia, E. & Estremera, J. (2006). Quadrupedal Locomotion: An
Introduction to the Control of Four-legged Robots, Springer-Verlag, New York, USA.
Kajita, S. & Espiau, Bernard. (2008). Springer Handbook of robotics, Part G-16, Legged Robots,
Springer-Verlag, Berlin Heidelberg, Germany.
Sakagami, Y.; Watanabe, R.; Aoyama, C.; Matsunaga, S.; Higaki, N. & Fujimura, K. (2002).
The Intelligent ASIMO: System Overview and Integration, Proceedings of the 2002
IEEE/RSJ International Conference on Intelligent Robots and System, Lausanne,
September 30-October 4, pp. 2478-2483.
Raibert, M. (2008). BigDog, the Rough-Terrain Robot, Plenary talk of the 17th IFAC world
congress.
Buehler, M. (2002). Dynamic Locomotion with One, Four and Six-Legged Robots, Journal of
the Robotics Society of Japan, Vol. 20, No.3, pp. 15-20.
Wilcox, B.H.; Litwin, T.; Biesiadecki, J.; Matthews, J.; Heverly, M.; Morrison, J.; Townsend, J.;
Ahmad, N.; Sirota, A. & Cooper, B. (2007). Athlete: A Cargo Handling and
Manipulation Robot for The Moon, Journal of Field Robotics, Vol. 24, No.5, pp. 421-
434.
Matlab manual, (2007). The MathWorks, Inc. Available from http://www.mathworks.com
Liang, C.; Ceccarelli, M.; & Takeda, Y. (2008). Operation Analysis of a One-DOF Pantograph
Leg Mechanism, Proceedings of the 17th International Workshop on Robotics in Alpe-
Adria-Danube Region, RAAD2008, Ancona, Italy, September 15-17, Paper No. 50.
Liang, C.; Ceccarelli, M.; & Carbone, G. (2009). A Novel Biologically Inspired Tripod
Walking Robot, Proceedings of the 13th WSEAS International Conference on Computers,
WSEAS2009, Rodos Island, Greece, July 23-25, n. 60-141, pp. 83-91.
Liang, C.; Gu, H.; Carbone, G.; & Cecarelli, M. (2010). Design and Operation of a Tripod
Walking Robot via Dynamics Simulation, Robotica, doi:
10.1017/S02635747100000615.
Carbone, G.; Liang, C.; & Ceccarelli, M. (2009). Using Parallel Architectures for Humanoid
Robots, Kolloquium Getriebetechnik 2009, Aachen, Germany, September 16-18, pp.
177-188.
Liang, C.; Cecarelli, M.; & Carbone, G. (2010). Design and Simulation of a Waist-Trunk
System of a Humanoid Robot, Theory and Practice of Robots and Manipulators 18th
www.intechopen.com
Design and Simulation of Legged Walking Robots in MATLAB Environment 491
www.intechopen.com
492 MATLAB for Engineers Applications in Control, Electrical Engineering, IT and Robotics
Kawauchi, M. & Mochimaru, M. (2010). AIST Human Body Properties Database, Digital
Human Laboratory (AIST, Japan), Available on line: http://www.dh.aist.go.jp,
2010.
Tsai, L.-W. (1999). Robot Analysis The Mechanics of Serial and Parallel Manipulator, John Wiley
& Sons, New York, USA.
Ceccarelli, M. (2004). Fundamental of Mechanics of Robotic Manipulator, Kluwer Academic
Publishers, Dordrecht, Germany.
Sadjadian, H.; & Taghirad, H.D. (2006). Kinematic, Singularity and Stiffness Analysis of the
Hydraulic Shoulder: A 3-d.o.f. Redundant Parallel Manipulator, Journal of Advanced
Robotics, Vol. 20, n. 7, pp. 763781.
Visual Reality Toolbox Users Guide. (2007). The MathWorks, Inc. Available from
http://www.mathworks.com/access/helpdesk/help/pdf_doc/vr/vr.pdf
Siciliano, B. & Khatib, O. (2008). Springer Handbook of robotics, Springer-Verlag, Berlin
Heidelberg, Germany.
Harada, K.; Miura, K.; Morisawa, M.; Kaneko, K.; Nakaoka, S.; Kanehiro, F.; Tsuji, T. &
Kajita, S. (2009). Toward Human-Like Walking Pattern Generator. In Proceedings of
the 2009 IEEE/RSJ international Conference on intelligent Robots and Systems, St. Louis,
MO, USA, pp. 1071-1077.
www.intechopen.com
MATLAB for Engineers - Applications in Control, Electrical
Engineering, IT and Robotics
Edited by Dr. Karel Perutka
ISBN 978-953-307-914-1
Hard cover, 512 pages
Publisher InTech
Published online 13, October, 2011
Published in print edition October, 2011
The book presents several approaches in the key areas of practice for which the MATLAB software package
was used. Topics covered include applications for: -Motors -Power systems -Robots -Vehicles The rapid
development of technology impacts all areas. Authors of the book chapters, who are experts in their field,
present interesting solutions of their work. The book will familiarize the readers with the solutions and enable
the readers to enlarge them by their own research. It will be of great interest to control and electrical engineers
and students in the fields of research the book covers.
How to reference
In order to correctly reference this scholarly work, feel free to copy and paste the following:
Conghui Liang, Marco Ceccarelli and Giuseppe Carbone (2011). Design and Simulation of Legged Walking
Robots in MATLAB Environment, MATLAB for Engineers - Applications in Control, Electrical Engineering, IT
and Robotics, Dr. Karel Perutka (Ed.), ISBN: 978-953-307-914-1, InTech, Available from:
http://www.intechopen.com/books/matlab-for-engineers-applications-in-control-electrical-engineering-it-and-
robotics/design-and-simulation-of-legged-walking-robots-in-matlab-environment