Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation...

34
Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-J ia Huang Department of Automation Eng ineering National Formosa Uni versity

Transcript of Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation...

Page 1: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Simulation of Robot Soccer Game

Kuang-Chyi Lee and Yong-Jia Huang

Department of Automation Engineering National Formosa University

Page 2: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Outline

Introduction Simulation system Tasks of soccer robot Simulation Conclusions

Department of Automation Engineering, National Formosa University

Page 3: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Introduction

• OpenGL simulator – model of collision and friction

• fuzzy angular velocity strategy

Return

Department of Automation Engineering, National Formosa University

Page 4: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Simulation system

•Robot soccer simulator

•Models of collision

Return

Department of Automation Engineering, National Formosa University

Page 5: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Robot soccer simulator

1. OpenGL

2. Motion dynamics

3. Select strategy

Department of Automation Engineering, National Formosa University

Page 6: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Institute of Mechanical & Electro-Mechanical Engineering , National Formosa University

Page 7: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Start

Timer2

Timer1

Timer3

Goal?

Motion modeling

Strategy planning of

Robot soccer A

Strategy planning of

Robot soccer B

Score

Initialize

Yes

Yes

Yes

Yes

No

No

No

No

End the game?

end

Yes

No

Department of Automation Engineering, National Formosa University

Return

Page 8: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Models of collision

Friction coefficient Football dynamics Collision dynamics

Return

Department of Automation Engineering, National Formosa University

Page 9: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Friction coefficient

00.020.040.060.08

0.10.120.14

0 50 100 150 200 250 300 350 400

Velocity(cm/s)

Fric

tion

coef

fice

nt

0009.00002.02*710*53*910*2)( vvvv

Return

Department of Automation Engineering, National Formosa University

Page 10: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Football motion dynamics

Rolling without sliding Rolling and sliding

Return

Department of Automation Engineering, National Formosa University

Page 11: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Rolling without sliding

bV

gmb

r

rwVb

Return

Department of Automation Engineering, National Formosa University

Page 12: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Rolling and sliding

r

g

2

5

Return

gtvv 0

tr

gww

2

50

Department of Automation Engineering, National Formosa University

Page 13: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Collision dynamics

Robot and football Football and boundary Football and goal corner

Return

Department of Automation Engineering, National Formosa University

Page 14: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Robot and football

t

n

nbv )(

nRv

Return

tRtR vv )()( '

tbtb vv )()( '

bR

bb

bR

RbRnR mm

evm

mm

vemmv

)1()()( '

bR

RR

bR

bbRnb mm

evm

mm

vmemv

)1()(

)( '

Department of Automation Engineering, National Formosa University

Page 15: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Football and boundary

fN

n

t

tbv )(

nbv )(

sin)( btb VV

fVV btb sin)( '

cos)( bnb VV

Department of Automation Engineering, National Formosa University

cos)( 'bnb eVV

Return

Page 16: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Football and goal corner

score

continue

45

Return

45

Department of Automation Engineering, National Formosa University

bv

tn

xbv )(

ybv )(

Goal

Goal corner

Goal line

Page 17: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Tasks of soccer robot

Fuzzy control Deployment Ball finding Shooting Avoidance Goalkeeper

Return

Department of Automation Engineering, National Formosa University

Page 18: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Fuzzy control

Fuzzy system

Plante

e

eel GCGEVV

eer GCGEVV

Department of Automation Engineering, National Formosa University

Page 19: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Error of angle

r

e

d

dx

dy

x

y

edr

Department of Automation Engineering, National Formosa University

Page 20: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Membership functionNB NM Z PS PM

0

1 PBNS

LN MN Z MP LP

0

1

Department of Automation Engineering, National Formosa University

Page 21: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Defuzzifier

)(

)(*

1

1

i

p

i

i

p

ii

y

yyU

Return

Department of Automation Engineering, National Formosa University

Page 22: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Attack

Department of Automation Engineering, National Formosa University

Edge area

Edge area

Attack areaDefense area

Interception area

Return

Page 23: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Interception

Edge area

Edge area

Attack areaDefense area

Interception area

Department of Automation Engineering, National Formosa University

Return

Page 24: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Defense

Department of Automation Engineering, National Formosa University

Edge area

Edge area

Attack areaDefense area

Interception area

Return

Page 25: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Attack

Department of Automation Engineering, National Formosa University

Ball position

Attack area

No obstacle

Obstacle

pp BR

pp BR

Find ball

Shoot

pp BR pp EB Find

ball

pp RE

pp BE

pp RB Pass

pp ER Avoid & find ball

pp RB

pp ER

Avoid &

shootpp RE

Shoot

Return

Page 26: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Interception

Department of Automation Engineering, National Formosa University

Ball position

Free area

No obstacle

Obstacle

pp BR

pp BR

Find ball

Carry ball into attack

area

pp BR pp EB Find

ball

pp RE

pp BE

pp RB Find help point

pp ER Avoid & find ball

pp RB

pp ER

Avoid & find

holding

pp RE

Carry ball into attack

area

Return

Page 27: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Defense

Department of Automation Engineering, National Formosa University

Ball position

Defense area

No obstacle

Obstacle

pp BR

pp BR

Find ball

Carry ball into defense

area

pp BR pp EB Find

ball

pp RE

pp BE

pp RB Find help point

pp ER Avoid & find ball

pp RB

pp ER

Avoid & find

holding

pp RE

Carry ball into defense

area

Return

Page 28: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Ball findingG(x,y)

B(x,y)

R1(x,y)

R2(x,y)

bmxyL :

22 1

m

bymxd

Return

Department of Automation Engineering, National Formosa University

Page 29: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Shooting

1 main minor

↑ ↓ ↑ ↓ passing assist to attack

→ ↓ ↑ ↑ shooting rebounding point

↓ ↑ ↓ ↑ shooting rebounding point

12

31

1 2 3

Department of Automation Engineering, National Formosa University

Return

Page 30: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Avoidance

Candidate point bmxyL :

22 1

m

bymxd

Department of Automation Engineering, National Formosa University

Return

Candidate point

Page 31: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Goalkeeper

O點

P點

Oy-Py>0,robot up Oy-Py<0,robot down

Department of Automation Engineering, National Formosa University

Return

Page 32: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Simulation (Video)

Return

Department of Automation Engineering, National Formosa University

Page 33: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Conclusions

An OpenGL simulator for robot soccer game is implemented.

The model of collision friction are considered. A fuzzy angular velocity strategy is proposed.

Department of Automation Engineering, National Formosa University

Return

Page 34: Simulation of Robot Soccer Game Kuang-Chyi Lee and Yong-Jia Huang Department of Automation Engineering National Formosa University.

Thanks for your attention

Department of Automation Engineering, National Formosa University