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

n  Acta Phys. Sin. Vol. 61, No.

4 (2012) 040503

uO{1r.

o1)3) 1) t2)3)
1) ( e>zUL:, 400065 )
2) ( uEO, 430074 )
3) ( e>5>X, 400065 )
( 2010 c 10  22 F; 2011 c 6  15 F?Uv )

1r<du({!U|^p , NO, dO(r

'. du1wX, 5OJ;, dkJu CPU+GPU 


 PoincareN{. T{u#Od, 'D CPU {z. ud, Vv
1r., 5/:?1O, =//G+[!A, 
S3
/(, X8 k Cz'X, uy
#n
by,

'c: PoincareN, 1r, Vv<, b


PACS: 05.45.a, 45.40.Ln

1
1r<=g(
Uy31r. du({,
)$5 [1] , dU|^p, =^
Uv/-EU. e{
OJU, Uy/
1r. d1rU
D<U
Lu, Vv<uJ

#g.
1r@d McGeer u 1990 cJ [2] ,
L Cornell, Delft, MIT |
, u<c
%+, 'Xy1r. L
, a.U1rV$, 
6O. d, 9
(C7. =

6 UEk, ku
OnM(, 1rC
. d, IS
. u
1r, Garcia Goswami 
{z/

;5, uyXO\,
y
?\b [3,4] , Schwab Wisse K
?O
, uy [5] ; C, I
S7w<
/
, uy
eZb [6,7].
3{, ?nV >/, <
~ 6 / Poincare  . l z,
PoincareNO?1. ), ~
^ Newton- Raphson S{ [7] , , du
4, ?15}. 3
, ^N{ [6,7] , duXE
:O\,
\,
PoincareN5O{;. d
X
O
'. =ku
/|, //
G(, U^3N5K
 [8] . 8Oe#,
?
n CPU /?n GPU kOU, c
Up1G1-, 1OU.
8c GPU OUpu CPU , O
, Od. Ou

* I[g,7 (1O: 61104150, 10972082), 8 (1O: cstcjjA40044) uEgM#7 (1O:


011906), ]K.
E-mail: ql78@cornell.edu

http://wulixb.iphy.ac.cn

c 2012 In Chinese Physical Society


040503-1

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

g`, yNOUz|^,
5u [9] . X GPU ^uO
[10] , <OH5
7, L
3yk* GPU, BU$z
5UJ,, l {L/<O%,
l O? [11] .
d,  k J u  
 PoincareO{, )5: PoincareN
OK, , Vv1r{z
., O/G(, ?
[/1.

2 5: PoincareNO
u n gX
x = f (x),

(1)

 S : {x|s(x) = 0, s(x)

> 0} Poincare, K
A PoincareN g : S S : u?
: x S, g(x) Ll x u3X (1) ^
e2g S :.
3 g C85, ~~:
NO, O
X S O
\. ~X, 3N{, z 103
, KIO 106 :, nC 109 . 8c
~)', 3(
 e, OJ2?$.
3?nXd5O, ^ CPU O
D{INBOmO
, $k{O?.
y:
 PoincareNpO, e^ CPU GPU
pNO?1\.
# OpenCL IO [10] , 3 CPU
1S, ^uN; 3 GPU 1
SS, z:M (work-item) ?
11O. GPU kNO, zq
kN?n, z?n?n
. dup, 8c GPU 
,  64 | (work-group),
B OpenCL $1(O.
3SO, , zI
g:I. d, krU1
gu| X , , g5E

 GPU w (global memory) , ^ Xd LT


B, XU?l Xd Ig
: xd ?11O. O , GPU (
J Xd , CPU 2rE X . ,
,
^
~, 'X .!
)m!), kX
!)^X~.
gu~| P , , rE
 GPU ~S (constant memory) , ^ Pd L
TB. 3OEl Pd I
~. ~S^2n 4,
E.
{N6X 1 . S
OpenCL z!SM!
D!S19(JA
. SS)~)!
9: Newton-Raphson S
.
O , 3), 
{^CgA Runge-Kutta {. 8c
J, ~^o
C{, X RungeKuttaFehlberg {!Dormand
Prince {!CashKarp {. XJ
, {?U, ^{, X
; Runge-Kutta o, ^5
{.
# GPU | FMA(Fused Multiply-Add)
$, ={\{$ \V
, z?nz1
g$. d, 3{y, GPU V
FMA $`z, =k|uJpO,
U%C GPU OUn. {
O?83 f (x) C@^
, ;.\$, dIc
?1:`z.

{u^, 3S
MATLAB , ^| X P \
, ? MEX . uK, du
f s )Cz, dISAN
. ^ OpenCL ?) MEX , g
S Sg?U. d, I
^?6?U f (x), s(x) =
y#KO. duU
lmu?,
d^B.

040503-2

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

Platform

Context

Xd
n xd

i <sn<e

t/i/ t
xt=xd h

stn=s(xn),
h=hxn/xtn

GPU

th
xn


Command Queue

th
xn e

sn=s(xn),
i=i

h/h

e <emax?

Kernel

XP

i/

t >tmax?

s(xt) < 0,
s(xn)0?
t >h

t=thxt=xn,

i <

xn

t NaN

sn=s(xn)

xn Xd
n

1 {6, S, mSS

3 {1r.

{1r.X 2 , d^
, ^X/, | (stance leg), ,
^{ (swing leg). , =
: m : M , @oT.C
V{.. l 2 1rLw, 
{ 2gu 2 , |{
I, me1r. .1
deX5 [3] :
= sin( k),
= sin()[2 cos( k)] + sin( k),

(2)

k L. p6/
s(, ) = 2 = 0,

+ = ,

(3)

+ = 2 ,
+ = cos(2 ) ,
+ = cos(2 )(1 cos(2 )) .

(4)

`, ; 6/, XG
La=#GUY$1.

?nXY5, 6/
X Poincare. duXdm
YX (2) (4) , d
A PoincareN g EN H.
| ^ { ? 1 O , - x =
)
(x1 , x2 , x3 , x4 )T = (, , ,
T , u

x3

x4

f (x) =
,

sin(x1 k)

2
sin(x2 )[x3 cos(x1 k)] + sin(x1 k)
(5)

s(x) = x2 2x1 s(x)


= x4 2x3 , (6)

040503-3

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

swing
leg

M
stance leg

2 {1r.1rL

C
x =r(x ),

r(x) =

d, k

x1
2x1
cos(2x1 )x3

cos(2x1 )(1 cos(2x1 ))x3


H = r g,

(7)

( g )O(5. 3NO
, xd : x1 x3 (

D), 3Sm|^ (9) xd *


o xt ; 3S(, 2 r(xn )
 x1 x3 D xd .
0.26

x/

(8)

w,, O H 'O PoincareN g. r


=d x1 x3 , x r(x) u S
(=1I x2 =d x1 ),

0.24

0.22

0.20

+
+
x+
4 = cos(2x1 )x3 (1cos(2x1 )) = x3 (1cos(2x1 )),

0.010

0.012

0.014
k

0.016

0.018

3 1r
k = [0.009, 0.0192]

d, 3J x , x2 x4 v
x2 = 2x1 ,
x4 = x3 (1 cos(2x1 )),

(9)

E = 0.5x23 + cos(x1 k),

(10)

@oEN H w x1 ox3 N.


Garcia uy, TX3k
 k < 0.0151, X k O,
y
, ?\b, X 3 [3] .
Schwab Wisse L,

 [5] .
eL5: H NO,
[/T/GS(
. uN H d PoincareN g N r
. uc, d (2) J, x1 x3 (=
v
)
d, 3 (2) )L E C,
=d: x1 x3 . |^ (11),

'y{
,  k = 0.009.
H 
3 : xo = (x1 , x3 ) =
(0.200310900687949, 0.19983247317447), 3
 S   : ? 1 O .
3 MATLAB , k^ ode45 O, ,
^ C MEX S5\, ^{5O
.
Bu', O|^ Dormand
Prince ) , O  n . (
JXL 1 , CPU AMD Phenom II X4
965@3.4GHz, GPU HD5830. w,, ~5 ode45
), ^ C SU*J, {
q' C SJz, (J{ ode45 J
p
. 3, { ode45 C S
(J 3 S. d, {
U
3yeJ,O.

040503-4

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

5: PoincareNOU, l
)?: 1) *r
1; 2) L5JpE,
[\; 3) UX
Cz5, k|uX(
.
0.01

xx/k

0
-0.01

J, 3 x
1 l 0  1
 1920 :, 3 x
3 l 0.035  0.015
 1080 :, oO 1920 1080 :. +
N{O;EO, 3
+
O(5. du{4,
^S{5Op, B
O(r/G(. u
;, H 3 xo ?Au 1, d
3 xo , eo , TS?:
u xo . d, e:\T, K@T
fu xo .

-0.03

0.0

0.2

0.4

0.6

0.8

/10-3 rad2

-0.02

1.0

4 k = 0.009 )

Schwab Wisse LN{, ^ 200 250


:
H , uy/G[
. T x1 + x3 = k
e, du\Uv
, de
:. duT/G[C,
Bu*
, \C
(
x1 , x
3 ) = Q(x1 , x3 ),

1 1

1
,
Q=
2 1 1
x1 ox3 ^^= /4. u x
1 o
x3 ,

1.5

1.0

0.5

0.005

0.01
k

0.015

0.02

5 {

e, kO k = 0.009 : xo
 .  eo = 5 105 ,
109 ? 1 O , ( J X 4 . k 
(e) o 0.001091 rad2 , >
.w5~E,.
(, ,

,
#O, uy%Xgq
i@(, X 4 , `TkX
/(.

L 1 { ode45 C MEX SO(J'


:

1024 1024

2048 4096

ode45
/s

C S
/s

{
/s

C S(

C S
' ()

ode45 (J

ode45
' ()

106

4393

13.87

0.190

6.455107

73.2

6.396107

23175

123.5

6.5691010

27598
34875

109

10093

45.16

0.366

6.7871010

1012

32965

170.64

0.945

6.6211013

180.5

5.7831013

101.8

6.261107

32461

106

35256

110.55

1.086

6.402107

109

80257

364.29

2.204

6.5571010

165.3

6.6791010

36422

1012

258832

1346.16

6.772

6.3091013

198.8

6.1931013

38221

u.n,
e 0.0001 , k 
Cz'X. ^{?1O. k,
ESk:, G:,
o48o. (JX 5
, X k O, oAN

4~ 0, `3N?\
. , , ^O 4 {5O
3
. (J3 k [0.0123, 0.0129]
, ,e, wuo.
d, p
Garcia 3z [3] uy 3 
 , AT3#f (),

040503-5

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

X 9 . , , 3 k O 0.01293
bG,, Xk:
/. `u#, k m
[0.01229, 0.01292]. LO, '
, uy
 k O\ O,
o'~ 12%25%m. d k
3d, kV?\#,
U.

.
0.01

xx/k

Xo3

Xo

-0.01

Xo2

Xo1

-0.02
-0.03

0.2

0.4

0.6

0.8

1.0

0.21

0.208
x

6 k = 0.0125 f

0.206

x x

0.5

x/

0.204

x/

0.202
0.0123

0.0125

0.0127

0.0129

8 #n
z
0.5
0.4

-0.5

6
t

10

x x

0.45

12

0
-0.2

7 k = 0.0125 n

-0.4
-0.5

-0.45

e
#f?1
. k k = 0.0125, f
: xo (0.22477993, 0.22139495),
X 6 . 3S48T: ,
=en::

20

40

60
t

80

100

120

9 k = 0.0129 #b

4 (

xo1 (0.20312090, 0.20429593),


xo2 (0.22211583, 0.22173218),
xo3 (0.23671673, 0.23067387).

L xo2 = H(xo1 ), xo3 = H(xo2 )


xo1 = H(xo3 ), `n;,
X 7 . X 6 ,
p3, >.
.

?n ur
, IO k 'X. k,
0.000001 , k l 0.0125 e4~, uy
3 k ~ 0.01228 Tn;,, X
k:G. , , 2
, k l 0.0125 4O, y


, X 8 , ?\bG,

 J
CPU+GPU  
 PoincareNO{. UJpOz
, ~5:O , ^
3 X  1  . | ^  { 
5OU, :
Vv
1r.. k, LO k = 0.009
, p, uy
>.
/(. , , N! k, ^O
{,
X8
, uy k O ~; ,

;, 3
,
Cz. uy3
k [0.01229, 0.01292] y#. T

040503-6

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

X k O\, dnmu)
,
? yb.
#U,
o 1/4. ku@
r1r.nn, ;<O.
, , du CPU+GPU O5u

, d{A^c2,, ")

Poincare5OK, C\
[, ruy#y!&#5,
#uyud.

[1] Winter D 1991 Biomechanics and Motor Control of Human Movement (2nd ed) (New York: Wiley)
[2] McGeer T 1990 I. J. Robotic Res. 9 62
[3] Garcia M, Chatterjee A, Ruina A, Coleman M 1998 J. Biomech.
Eng. 120 281
[4] Goswami A, Thuilot B, Espiau B 1998 I. J. Robotic Res. 17 1282
[5] Schwab A, Wisse M 2001 Basin of attraction of the simplest walking model. In: International Conference on Noise and Vibration,
(Pennsylvania: ASME)
[6] Liu N, Li J F, Wang T S 2008 Mechanics in Engineering 30 18 (in

Chinese)[7w, od, U 2009 30 18]


[7] Liu N, Li J F, Wang T S 2009 Acta Phys. Sin. 58 3772 (in Chinese)[7w, od, U 2009 n 58 3772]
[8] Hong L 2010 Chin. Phys. B 19 030513
[9] Kirk D, Hwu W M 2010 Programming Massively Parallel Processors (Burlington: Elsevier)
[10] Munshi A 2010 The OpenCL Specification Version 1.1. (Khronos
OpenCL Working Group)
[11] Li Q, Tan Y, Yang F 2011 Acta Phys. Sin. 60 030206 (in Chinese)[o, , 2011 n60 030206]

040503-7

n  Acta Phys. Sin. Vol. 61, No. 4 (2012) 040503

A study of basin of attraction of the simplest walking


model based on heterogeneous computation
Li Qing-Du1)3) Zhou Hong-Wei1) Yang Xiao-Song2)3)
1) ( Key Laboratory of Network Control & Intelligent Instrument of Ministry of Education, Chongqing University of Posts and Telecommunications,
Chongqing 400065, China )
2) ( School of Mathematics and Statistics, Huazhong University of Science and Technology, Wuhan 430074, China )
3) ( Institute for Nonlinear Circuits and Systems, Chongqing University Posts and Telecommunications, Chongqing 400065, China )
( Received 22 October 2010; revised manuscript received 15 June 2011 )

Abstract
Passive dynamic walking becomes an important development for walking robots due to its simple structure and high energy
efficiency, but it often falls. The key to this problem is to ascertain its stable gaits and basins of attraction. In order to handle the
discontinuity, massive numerical computation is unavoidable. In this paper, we first propose an algorithm to compute Poincare maps
in heterogeneous platforms with CPU and GPU, which can take the best performance of the newest heterogeneous platforms and
improve the computing speed by more than a hundred times. With this algorithm, we study the simplest walking model by sampling
massive points from the state space. We obtain high resolution images of the basin of attraction, and reveal its fractal structure. By
computing the relation between the stable gaits and their basins and by varying the slop k, we find a new three-period stable gait and a
period-doubling route to chaos, and we also study the new gait and its basin.

Keywords: Poincare map, passive dynamic walking, bipeds, chaos


PACS: 05.45.a, 45.40.Ln

* Project supported by the National Natural Science Foundation of China (Grant Nos. 61104150, 10972082), the Natural Science Foundation
Project of CQ CSTC (Grant No. cstcjjA40044), and the Independent Innovation Foundation of HUST(Grant No. 011906).
E-mail: ql78@cornell.edu

040503-8

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