Вы находитесь на странице: 1из 6

KINEMATIC AND DYNAMIC MODELING OF A SIX

LEGGED ROBOT
J. Barreto, A. Trigo?, P. Menezes? , J. Dias?,
A.T. de Almeida? 1;2

 Instituto de Sistemas e Robotica


E.S.T.G - Instituto Politecnico de Leiria
2400 Leiria, Portugal
?Instituto de Sistemas e Robotica
Dept. Electrical Engineering - University of Coimbra
3030 Coimbra, Portugal

Abstract: Legged vehicles can walk on rough and irregular surfaces with a high degree
of softness . This is one of the main reasons why legged machines have received
increasing attention by the scienti c community. This article presents a simulator for
a six leg machine. Both kinematic and dynamic models are developed. Kinematic
equations are derived with Denavit-Hartenberg method. The Free Body Diagram
method, based on the dynamic equations of isolated rigid bodies, is used to overcome
the diculties in dynamic modeling. Some results of simulation are presented.

Keywords: Legged robots, Hexapodal robots, Modelization, Dynamics, Kinematics

1. INTRODUCTION at the cost of lower speed and increased control


complexity. Legged vehicles can walk on rough
Most of the vehicles that we are familiar with and irregular surfaces with a minimum of de-
use wheels for their locomotion. Wheeled vehi- struction and a high degree of softness. This ex-
cles can achieve high speed motion with a rela- plains the importance of legged robots on mobile
tive low control complexity. Unfortunately they robotics research.
present several limitations in rough and irregular The legged locomotion on natural terrain presents
surfaces. Even with complex suspension systems a set of complex problems (foot placement, obsta-
they are only able to overcome relatively small ir- cle avoidance, load distribution by the supports,
regularities on the terrain. The US army estimates general vehicle stability, etc) that must be taken
that the wheel can only reach 50% of the places into account both in mechanical construction of
on earth. Whenever environment is a concern, vehicles and in development of control strategies.
the destruction maded in building suitable tracks One way to handle these issues is using models
is another problem ((Raibert, 1989)(Waldron, that mathematically describe the di erent situ-
1989b)(Waldron, 1989a)). The legged locomotion ations. Therefore modelization becomes a useful
is one alternative that overcomes these diculties. tool in understanding systems complexity and
It introduces more exibility and soil adaptation in testing and simulating di erent control ap-
proaches.
1 jpbar,ttrigo,paulo,jorge,aalmeida@isr.uc.pt
2 This work was partially nanced by NATO Scienti c Modelization techniques for legged mechanical
A airs Decision on the framework of the NATO Science structures are developed in this paper. The
for Stability Program, PO-ROBOT project
2.1 Direct kinematics
2 3
y

z x cos(1 ) 0 sin(1 ) 0
0 A1 = 6 sin(1 ) 0 , cos(1 ) 0 7 (1)
4 0 1 0 05
0 0 0 1
2 3
cos(2 ) , sin(2 ) 0 ,a: cos(2 )
1 A2 = 6 sin(2 ) cos(2 ) 0 ,a: sin(2 ) 7 (2)
4 0 0 1 0 5
Fig. 1. The hexapodal structure 0 0 0 1
2 3
cos(3 ) , sin(3 ) 0 c: cos(3 )
2 A3 = 6 sin(3 ) cos(3 ) 0 c: sin(3 ) 7
4 0 0 5 (3)
LEG

0 1
i

x1
y1
z1
θ
2i 0 0 0 1
a x2
y2
z2
θ
3i ,r0 = F (1 ; 2 ; 3 ) = 0 A1 (1 ):1 A2 (2 ):2A3 (3 ):[0; 0; 0; 1]t (4)
!
θ
1i

z0
y3 The Denavit-Hartenberg (D-H) method is one
of the most popular technics used in kinematic
x0 y0 z3
c

x3
modeling of manipulators (Fu, 1987)(Megahed,
1993)(Kanade, 1994). The described robot legs
are similar to simple manipulators with 3 DOF.
Therefore D-H method can be used to compute
leg1 leg2

the transformation matrices between referential


γ 1 =120 γ 2 =60

frames (Fig.2). Derived transformation matrices


L
are presented in equations (1), (2), (3), where a
11
00
yc
leg3 γ 3 =180
d
γ 4 =0 leg4
and c are the length of links. Leg direct kinematic
problem can be solved by these matrices. Function
xc

(4) shows it by computing tip coordinates on the


zc

base system given an arbitrary triad of joint angles


(1 ; 2 ; 3).
γ 5 =240 γ 6 =300

2 3
leg5 leg6

Fig. 2. The coordinate systems for each leg. Legs , cos( i ) sin( i ) 0 d: cos( i )
c A0i = 6 7
location around the central body. 4 0 0 1 0
sin( i ) cos( i ) 0 ,d: sin( i ) 5 (5)
0 0 0 1
Denavit-Hartenberg method is used in deriving a i Ac =
3D kinematic model of a six leg robot. Dynamic 2
modelization is performed using the Free Body C (y )C (z ) S (y )S (x ) , C (y )S (z )C (x )
Diagram method (FBD). The FBD method is in- 6
4 ,C (S(y)zS)(z ) S (y )S (zC)C((z)xC) (+xC)(y )S (x )
troduced as an alternative to Lagrangian Formal- 0 0
ism and is based in the dynamics of isolated rigid 3
bodies. A simulator is built to validate achieved C (y )S (z )S (x ) + S (y )C (x ) Rx
models. Some simulation results are presented at ,C (z )S (x ) Ry 7
C (y )C (x ) , S (y )S (z )S (x ) Rz 5
(6)
the end of the article. 0 1

The six legs and the central body must be in-


tegrated to solve the global kinematic problem.
Consider the referential located at the center of
2. THE KINEMATIC EQUATIONS the body (Fig.2). Legi coordinates in body refer-
ential are obtained using the transformation ma-
The considered 3D structure is formed by a cen- trix of equation (5). Note that d = L:cos( 6 ) and
tral body, with an hexagonal shape and six legs. each leg has a di erent i associated with it. For
The legs are similar and simetrically distributed simulation purposes it is important to be able to
around the body (Fig.1). Each leg is composed by compute robot coordinates in an inertial frame
two links and three rotary joints (Fig.2). Two of located somewhere in space. The transformation
these joints are located at the junction of the leg matrix between body referential and the inertial
with central body (horizontal (1i ) and vertical frame is presented in equation (6). It depends
(2i ) rotation). The third joint is located at the of the 6 DOF of the robot central body. Three
knee, connecting the upper and lower link (verti- DOF are the angular positions (x ; y ; z ) of the
cal rotation (3i )). Therefore each leg has 3 DOF body around the inertial axes. The other three are
(degree of freedom).Considering six legs and the the coordinates of the mass center (Rx; Ry ; Rz ) in
additional 6 DOF for central body translation and inertial frame. The considered rotation sequence
rotation, the system has a total of 24 DOF. is (Y,Z,X).
2.2 Inverse kinematic -
+ φz -
-
-

00
11
(Rx, Ry)

(1 ; 2 ; 3) = F ,1(px ; py ; pz )


11
00
(7) +
θ
23
00
11
θ
24
+
+

Equation (4) computes tip coordinates given an Y


θ33 θ 34

arbitrary triad of joint angles values. The inverse


- + -
+

function (equation 7) calculates joint angles given Inertial X

tip coordinatest. The derivation of inverse kine-


Frame γ = 180 γ =0
3 4

matics equations is essential for foot placement al- Fig. 3. Independent variables of 2D kinematic
gorithms, trajectory planning, obstacle avoidance, model.
etc.
F,1 = atan( py ) (8) complex structures like legged robots.(Fu, 1987)
1 px (Megahed, 1993)
In this work an alternative method, called Free
F,1 = ,acos( a ,2caM+ M ) +
2 2 2 Body Diagram (FBD), is used to model the dy-
2 namics of legged robots. It is based in dynamic
+atan(, p 2pz 2 ) (9) equations of isolated rigid bodies (a standard in
px + py mechanics) and integrates some concepts of the
last two methods.
F,1 =  + acos( a ,2caM+ M ) +
2 2 2 The dynamic modeling of the 3D structure with
3 six legs is a huge problem that would lead to
+acos( c , 2acM+ M ) a great amount of equations. Thus, to explain
2 2 2
(10)
p
dynamic modeling using FBD approach, a simpli-
M = p2x + p2y + p2z ed planar structure is considered. However the
formalism of FBD method can be extended to 3D
The function presented in equation (4) is injective, structures.
there is merely one inverse function. Using the
transformation matrices derived above as well as The simpli ed 2D structure has two legs and
some basic geometric concepts, equations (8), (9) a central body (Fig.3). The legs used in the
and (10) are obtained. planar example are the 3 and 4 of the equivalent
3D structure (Fig.2). Each leg is composed by

= JF ,1 (px; py ; pz):V (11) two links and two rotary joints (1i disappears).
Considering central body with 3DOF (translation
Equation (11) relates the linear velocity of the in X and Y and rotation around Z), the system
tip with the angular velocity of the joints. This has a total of 7 DOF. It is necessary to reach a
expression comes from the derivation of (7) where kinematic model of the system and to select the
JF,1 is the jacobian of F,1 . independent or generalized kinematic variables.
Planar transformation matrices 2 A3 , 1 A2 , c A1,
i A are derived from 3D transformation matrices.
3. THE DYNAMIC EQUATIONS c
Note that if values of - Rx; Ry ; z ; 23; 24; 33; 34
Dynamic modeling of mechanical structures can - are known at a given instant of time, struc-
be a complex problem. In robotics, more specif- ture position can be determined in an unam-
ically, in manipulators, there are two main clas- biguous way. These variables are the seven in-
sical methodologies used for dynamic modeling: dependent kinematic variables (or the indepen-
Lagrange and Newton-Euler. dent generalized variables of Lagrange Formalism
(Wells, 1989)).
The Lagrange approach is based on the energy
principles. It works with scalar quantities, instead
of vectors, handling the internal forces between 4. INTRODUCTION TO THE FBD METHOD
the elements of the system in an implicit way. This X
method, although computationally expensive, can Fxext = M:ax (12)
be particularly useful to obtain a state space X
model.(Fu, 1987) (Goldstein, 1950) (Wells, 1989). Fyext = M:ay (13)
The Newton-Euler method applies the vectorial ,M!z = X ,! ,,!
ri  F ext (14)
dynamic equations to each element of the struc- i
i
ture. The nal system is achieved by joining all
the elements equations. The internal forces are Mz = ICM : (15)
handled in an explicit way, as well as inertial
and Coriolis forces. Most of the times Newton- The FBD method is based in rigid body dynam-
Euler technique is dicult to use in modeling ics. Given a 2D body, its position in an inertial
C
B points where forces are applied must be calculated
. These points are: the mass centers (gravitical
Tjy3 B
Ty3 Tx3 Ty4 Tjy4
-Tx3 Tx4 -Tx4 Tjx4

forces), the contact points of the links(tension


-Tjy3 Fg
Tjx3 -Ty3 -Ty4 -Tjx4
Fga4

forces) and the supports (friction forces)(Fig. 5).


-Tjx3 Fga3
-Tjy4
A
A

Y
Fgc3 Fgc4
They are essential to compute the rotation force
N3
Fa3
N4
Fa4 moments . The arm vectors coordinates (ri in
Inertial
Frame
X
equation 14) can be determined by subtracting
pairs of points coordinates in the inertial frame
Fig. 4. Free Body Diagram referential.
(Rax3, Ray3) (Rx, Ry) (Rax4, Ray4) With planar transformation matrices the deriva-
11 0
1 0 0(Rjx4, Rjy4)
1
tion of inertial points coordinates as a function
(Rjx3, Rjy3)
11
00 1 00
0 1 0
1
(Rbx3, Rby3) (Rbx4, Rby4)

1
0 1
0
of the seven independent kinematic variables is
straight forward. These functions describe the re-
(Rcx3,Rcy3 ) (Rcx4, Rcy4)
0
1
Y

00
11
(Rpx3, Rpy3)
00
11
11
00
00(Rpx4, Rpy4)
11 strictions in motion imposed by structure con g-
Inertial X
uration. In the example of 2D structure the ve
rigid bodies are connected and, consequently, the
Frame

Fig. 5. Auxiliary points motion of each one is dependent of the others.


frame is determined in an unique way by the XY
coordinates of the center of mass (CM) and a
rotation angle. Equations (12), (13), (14) and (15) 4.2 Rotation versors of isolated rigid bodies
describe the dynamic behavior of the body when ,!
a set of external forces Fiext is applied. Equations Mr = ,
!:,,
M !
vers (16)
(12) and (13) calculate the translational motion
of the CM due to the applied resultant force (in For each ! isolated body, the resultant force mo-
X and Y directions). Equation (14) computes the ment (, M( Mx; My ; Mz)) is calculated in an in-
force moment Mz and equation (15) determines ertial frame placed outside the structure. To
the angular acceleration. Notice that M is the determine the angular acceleration it is neces-
mass and ICM is the inertial moment for rotation sary to compute the component of force moment
around an axis parallel to inertial frame Z axis and (,!
M r (Mrx ; Mry ; Mrz)) with the direction of body
passing through CM. If an inertial moment IP is rotation axis (equation 15). In D-H method the Z
considered the rotation axis will pass through a axis of the referential frames attached to the each
given point P instead of CM. joint is coincident with the joint rotation axis (Fig
This formulation can be extended to a 3D body. 2). Thus, rotation axis versor , ,! is determined
vers
Its position is determined by XYZ coordinates by computing Z versor coordinates in the inertial
referential frame. These are easily derived using
of CM, thus it has three dynamic equations for
translation. If the body motion is completely the kinematic transformation matrices. ,! M r is cal-
free and can rotate around inertial X, Y and Z culated in equation (16) using scalar product.
directions, three rotation equations are needed. Considering the 2D structure, the rotation axis
For the general case the dynamic behavior is of the central body (, ,,,!
verscp ) and both links of
described by six equations. ,,,, ! , ,,,!
leg 3 (versa3 ; versc3 ) have the same direction and
In the study example, 2D structure is formed orientation of the Z axis in the inertial frame. For
by ve rigid bodies: the central body (cp), the leg 4 (, ,,,!
vers ,,,,!
a4 ; versc4 ) the direction is the same of
superior links (a3, a4) of both legs and the inferior Z, but the orientation is symmetric.
links (c3, c4). Each element must be isolated to
build the FBD diagram with all the applied forces
(Fig.4). The external forces to the structure are 4.3 The system of dynamic equations
the gravitic forces and the friction forces on the
tips (friction on the joints is not considered). The From the FBD diagram (Fig.4) the dynamic equa-
contact forces between the di erent elements are tions of each element of 2D structure can be de-
internal to the system. rived. For the central body (C):
8
>
>
> m d2Rx = T + T
>
>
>
cp
dt 2 x3 x4
4.1 Auxiliary points coordinates >
>
> d 2R
< mcp dt2 = Ty3 + Ty4 , mcp g
y
>
To avoid dealing with inertial forces and complex > ,,! X4
,! !
, ,! (17)
transformations, dynamic equations are derived in
>
>
>
>
M cp = [( R bi , R )  T yi ]
>
>
> i=3
an inertial referential located outside the struc- >
: Icp d 2z = ,
> 2
,,,!
vers ,,!
cp:Mcp
ture. Therefore the inertial coordinates of the dt
For the upper link of generic legi (B) (Fig.4): dependent of the soil features. If the tip doesn't
8 slide along the surface than Fa  S N, else
>
>
> m d2Raxi = T , T Fa = D N. Usually S  D . In each instant
>
>
>
a
dt2 jxi xi
of time the leg must be in one of three states: non
>
>
> d 2R
< ma dt2 = Tjyi , Tyi , ma g contact(ST3), contact without sliding(ST2), and
ayi
>
,M,! ,! ,! ,!
ai = [(Rbi , Rai )(,Tyi )]+ (18) contact with sliding(ST3).
>
>
>
>
>
,! ,!
+[(Rji , Rai )Tji ] ,! ST1 ST2 ST3
>
>
>
>
> d 2 ,,!i:,M,!ai ,vers
,vers ,,,!ai:,M,!
cp Ni = 0 Rpxi = a Fai = D :Ni
: dt2 = 2i
I , I Fai = 0 Rpyi = b Rpyi = %(Rpxi )
a cp
If the leg is in state ST1 then Rpyi > %(Rpxi )
For the lower link of generic legi (A) (Fig.4): and (Rpxi; Rpyi) are the tip coordinates. The leg
8 is raised and no forces are exerted on the tip. The
>
>
> m d2 Rcxi = F , T rst column equations are added to the global
>
>
>
c
dt2 ai jxi
>
>
> d 2R system of equations .
< mc dt2 = Ni , Tjyi , mc g
> cyi
,M,!ci = [(,R!ji , ,R!ci)(,,T!ji)]+ (19) When the leg is in contact with the soil at point
(a,b) two cases can be considered. If it doesn't slip
>
>
>
>
>
,! ,! ,
+[(Rpi , Rci )(Ffi )]! along the surface (state ST2) than friction force
>
>
> ,,,! ,,! ,,,! ,,!
: d 23i = versci:Mci , versci:Mai
> can't be directly computed. However tip remains
2
>
dt Ic Ia in the same position whose coordinates are known.
Second column equations are added to the global
The eight last equations are generic for legi system and determination of (Ni ; Fai) becomes
(i=3,4).The inertial mass of the central body, the possible. If the computed value of Fai is higher
superior link and the inferior link are respectively than S :Ni it means that the static friction force
mcp ; ma and mc . The inertial moments Icp ; Ia; Ic is not enough to keep the tip in (a,b). In this case
are computed for the CM of the constituents, g is the leg is in state ST3. Third column equations,
the gravitic acceleration and , F!fi (Fai ; Ni) (i=3,4) instead of second column, are added to the global
refers to the friction force. system whose solutions are recalculated.
Notice that the last rotation equation of (18) and
(19). Beside the use of versors explained above,
diferential angular acceleration between two con-
secutive elements are computed, instead of abso- 4.5 Mathematical resolution
lute acceleration referred to the semi-positive X
axis. This is done as a way to avoid more equations Derived a system with the same number of vari-
and variables. The body rotation angle is the same ables and independent equations (non singular),
in the kinematic and dynamic modeling. solutions must be determined. Consider a period
For 2D structure example 20 dynamic equations of time t and make the discrete sampling of the
are obtained. In previous sections more 25 kine- variables. A system of non-linear discrete equa-
matic equations were derived to compute the aux- tions is obtained by replacing the second order
iliary points (Rai ; Rci; Rbi; Rji; Rpi) and the ro- derivatives by a discrete approximation. In each
tation versors (, ,,,!
vers ,,,,! ,,,!
cp , versai , versci ) in function moment t = , k:t,!system solution gives the ap-
of the seven independent kinematic variables. If plied forces (!Ti ; Tji; etc) and predicts the posi-
applied external forces are known the dynamic tion of the structure in the next moment(Rx[k +
description of the system is concluded. 1]; Ry[k + 1]; z [k + 1]; etc).
To simulate the 2D structure behavior in a contin-
4.4 Foot-soil interaction uous way the set of derived equations must be suc-
cessively solved (k=0,1,2,...). Consider the instant
In this example the external forces are the gravitic of time n:t. Structure position was determined
forces and the friction forces at the tips. The rst in last iteration (k=n-1). Therefore, using the 25
ones are constant and easy to compute, but the kinematic equations, the inertial coordinates of
same can't be said for the second ones. auxiliar points and rotation versors can be di-
rectly computed. Replacing them in expressions
There are a wide variety of foot soil interaction (17), (18) and (19) the dimension of non-linear
modeling. The model that is used considers a rigid algebraic system is reduced in the 25 kinematic
surface whose shape is described in the inertial equations. That is an important advantage of
frame by y = %(x). The friction forces , F!f (Fa ; N) discrete sampling. The resultant system has 24
(N is the normal reaction of the soil) are evaluated discrete dynamic equations that can be solved by
with the help of two coecients, S and D , applying the Newton method.
Tips of both legs

0.750

0.600

0.450

0.300

0.150

0.000

-0.150

-0.300

-0.450

-0.600

-0.750
0.000 0.034 0.068 0.102 0.136 0.170 0.204 0.238 0.272 0.306 0.340
Rpx3 Rpy4
Rpy3
Rpx4

Forces on the tips

45

Fig. 6. The hexapodal simulator. Views of the 36

structure during the fall 27

5. SIMULATION AND RESULTS


18

A kinematic and dynamic simulator was pro-


0

grammed using the derived models (Fig.6). In this


-9

section the results of one of the many realized


-18

experiments is presented.
-27

-36

Rx Ry z 23 33 24 34 -45

0 0.6 0 0 245 0 255


0.000 0.034 0.068 0.102 0.136 0.170 0.204 0.238 0.272 0.306 0.340
N3 Fa4
Fa3
N4

Consider that the structure falls from a starting Fig. 7. Graph1: Evolution of tips position of both
position (Fig. 6). The initial values of indepen- legs in inertial frame (Position(m) versus
dent kinematic variables are in the table. The Time(s)). Graph2: Applied forces on the tips
considered period of time is 0.01s and the friction of both legs (Force(N) versus Time(s)).
coecients are S = 0:4 and D = 0:3. Note that
for t=0 the structure is not in contact with the 7. REFERENCES
ground. Fu, K.S. (1987). ROBOTICS: Control, Sensing,
To illustrate the studies that can be realized using Vision, and Intelligence. McGraw-Hill Book
the simulator, Fig.7 depicts the evolution tip's Company.
position and applied friction forces. Note that leg Goldstein, Herbert (1950). Classical Mechan-
4 touches the ground 0.02s before leg 3. The rst ics (Chapter 1). Addison-Wesley Publishing
one reaches the soil 0.20s after the start of motion. Company.
Around moment 0.24s both legs start slipping. Kanade, Yangsheng Xu & Takeo (1994). Space
Robotics: Dynamics and Control. Kluwer
Academic Publishers.
6. DISCUSSION AND CONCLUSIONS Manko, David J (1993). A General Model
of Legged Locomotion on Natural Terrain.
Kluwer Academic Publishers.
In this article we have exploited basic rigid body Megahed, Said M (1993). Principles of Robot
dynamic concepts to model complex structures. Modelling and Simulation. Wiley Publishers.
The FBD dynamic equations are intuitive, easy to Raibert, Marc H. (1989). Robotics Science (Cap
derive and allow the computation of the internal 16). MIT Press, Cambridge, Massachusetts.
forces and moments. Waldron, Shin-Min Song & Kenneth J (1989a).
Lagrange Formalism is a powerful tool that can Machines That Walk. The MIT Press.
be particularly useful when a state space model Waldron, Vijay R. Kumar & Kenneth J. (1989b).
of the dynamic system is intended. Some e orts Robotics Science (Cap 16). MIT Press, Cam-
have been done to reach a state space model of the bridge, Massachusetts.
described 2D structure using Lagrange approach. Wells, Dare A. (1989). Theory and Problems
However, due to the complexity of the derived of Lagrangian Dynamics. McGraw-Hill Book
expressions, the symbolic inversion of matrix D Company.
((Fu, 1987)(Manko, 1993)), when possible, needs
a huge amount of computation time.

Вам также может понравиться