automated parallel parking using fuzzy logic

21
EML 5930 Mobile Robotics (17 November, 2003) Slide: 1 Intelligent Parallel Parking Control of Autonomous Ground Vehicles in Tight Spaces Yanan Zhao, Emmanuel G. Collins. Jr. Dept. of Mechanical Engineering Florida A&M University- Florida State University Prepared through collaborative participation in the Robotics Consortium sponsored by the U. S. Army Research Laboratory under the Collaborative Technology Alliance Program, Cooperative Agreement DAAD19-01-2-0012. The U. S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation thereon.

Upload: guest66dc5f

Post on 18-Jan-2015

4.314 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 1

Intelligent Parallel Parking Control of Autonomous

Ground Vehicles in Tight Spaces

Yanan Zhao, Emmanuel G. Collins. Jr.

Dept. of Mechanical EngineeringFlorida A&M University- Florida State University

Prepared through collaborative participation in the Robotics Consortium sponsored by the U. S. Army Research Laboratory under the Collaborative Technology Alliance Program, Cooperative Agreement DAAD19-01-2-0012. The U. S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation thereon.

Page 2: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 2

OutlineOutline

• Introduction

• Parking space

• Parking algorithm

• Fuzzy logic controller design

• Genetic fuzzy systems

• Simulation results

• Experimental implementation

• Conclusions

Page 3: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 3

IntroductionIntroduction

• The objective of the research is to study reverse-motion maneuvering which can be used to hide autonomous ground vehicles (AGVs) during missions, for example between trees or in crevices or small buildings, preventing them from being detected or attacked.

• Reverse motion is necessary under the cases

• when the forward path is blocked,

• or when forward navigation has difficulty to maneuver a vehicle into a tight space.

• The reverse-motion maneuvering algorithm studied here was designed to emulate the parallel parking process of an experienced human driver.

• Parallel parking is also important for industrial and commercial vehicles.

Page 4: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 4

Introduction (cont’d)Introduction (cont’d)

• Current approaches to automatic parallel parking can be classified into two groups.

• Path tracking approach, • a feasible geometry path is planned in advance, taking

into account the environmental model as well as the vehicle's dynamics and constraints. Control commands are generated to follow the reference path.

• Skill-based approach, • fuzzy logic or neural networks are used to acquire and

transfer an experienced human driver's parking skill to an automatic parking controller. The control command is generated by considering the orientation and position of the vehicle relative to the parking space.

Page 5: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 5

Introduction (cont’d)Introduction (cont’d)

• A skill-based fuzzy logic approach was used in the design based on several considerations:• fuzzy logic provides a convenient and efficient way of

implementing expert parking rules,

• the control algorithm is robust to errors in sensor data and to fluctuations in the system parameters,

• the control algorithm can be easily transferred from one platform to another with few modifications, and

• it allows various behaviors to be easily combined through a command fusion process.

• A three step parking algorithm was proposed and fuzzy controllers were developed for each of the steps.

Page 6: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 6

Parking Space DetectionParking Space Detection

• Detected parking space

• Defined local coordinate system

Contour of detected obstacles

Page 7: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 7

Parking AlgorithmParking Algorithm

• The maneuvering process has three steps:• Step 1: reach a desired ready-to-reverse position,

which is• the vehicle reach an intermediate desired y position without

considering the orientation angle, which is

• the ready-to-reverse position is reached by moving forward and adjusting the orientation at the same time. Thus the desired x position and orientation are reached.

-3 -2 -1 0 1 2 3

-0.5

0

0.5

1

1.5

2

2.5

3

3.5

intermediate position final position

initial position

)65.0,5.0( bhll pp

)65.0,9.0( bhl pp

Page 8: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 8

Parking Algorithm (cont’d)Parking Algorithm (cont’d)

• Step 2: reverse into the parking space,• first with an increasing orientation angle and then with a

decreasing orientation angle

• Step 3: adjust the orientation by moving forward,

• The 2nd and 3rd steps can be repeated several times to reach the desired final position.

-2 0 2

0

1

2

3

-2 0 2

0

1

2

3

-2 0 2

0

1

2

3

Step 2 (1) Step 2 (2) Step 3

Page 9: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 9

Fuzzy Controller: Moving to a Fuzzy Controller: Moving to a Ready-to-Reverse PositionReady-to-Reverse Position

• The FLC designed for the first substep of step 1:• Input: heading angle difference

• Output: steering angle rate

• Fuzzy rules

• Membership functions

N Z P

P Z N

x

y

target

b

-4 -3 -2 -1 0 1 2 3 40

0.2

0.4

0.6

0.8

1

MFS OF GOAL-SEEKING INPUT: HEADING ANGLE DIFFERENCE

N Z P

-1.5 -1 -0.5 0 0.5 1 1.50

0.2

0.4

0.6

0.8

1

MFS OF GOAL-SEEKING OUTPUT: STEERING

N Z P

Page 10: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 10

Fuzzy Controller: Moving to a Fuzzy Controller: Moving to a Ready-to-Reverse Position (cont’d)Ready-to-Reverse Position (cont’d)

• FLC designed for the second substep of step 1:• Input: orientation angle

• Output: steering angle rate

• Fuzzy rules

• Membership functions

NB NM Z PM PB

PB PM Z NM NB

-2 -1.5 -1 -0.5 0 0.5 1 1.5 20

0.2

0.4

0.6

0.8

1

MFS OF ORIENTATION-SEEKING INPUT: HEADING ANGLE DIFFERENCE

NB NM Z PM PB

-1.5 -1 -0.5 0 0.5 1 1.50

0.2

0.4

0.6

0.8

1

MFS OF ORIENTATION-SEEKING OUTPUT: STEERING

NB NM Z PM PB

Page 11: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 11

Fuzzy Controller: Backing up the Fuzzy Controller: Backing up the Vehicle Into Maneuvering SpaceVehicle Into Maneuvering Space

• The control command is determined by the position of the vehicle relative to the parking space and the vehicle's orientation• Three inputs:

• Output: steering angle rate

S B VB

S PB PB

=N B PM PB PB

VB PM

S Z Z

=Z B Z PB PB

VB Z

S NB Z

=P B NM Z PM

VB NB

11 / da yx

,/,/ 11 pddpaa hyylxx

Fuzzy rules

Page 12: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 12

Fuzzy Controller: Backing up the Vehicle Fuzzy Controller: Backing up the Vehicle Into Maneuvering Space(cont’d)Into Maneuvering Space(cont’d)

• Membership functions of inputs and output

• The FLC for step 3 is the same as substep 2 of step 1.

0 0.5 1 1.5 2 2.50

0.2

0.4

0.6

0.8

1

MFS OF REVERSE PARKING INPUT: X DISTANCE

S B VB

0 0.5 1 1.5 2 2.50

0.2

0.4

0.6

0.8

1

MFS OF REVERSE PARKING INPUT: Y DISTANCE

S B VB

-2 -1.5 -1 -0.5 0 0.5 1 1.5 20

0.2

0.4

0.6

0.8

1

MFS OF REVERSE PARKING INPUT: ORIENTATION ANGLE

N Z P

-1.5 -1 -0.5 0 0.5 1 1.50

0.2

0.4

0.6

0.8

1

MFS OF REVERSE PARKING OUTPUT: STEERING

NB NM Z PM PB

xa1 yd1

Page 13: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 13

Size of the Parking SpaceSize of the Parking Space• The size of the parking space has significant impact

on the degree of difficulty of the parallel parking maneuvering.

• To make vehicles maneuver smoothly and safely in tight spaces, fuzzy controllers were extensively fine tuned• both manual and genetic algorithm tuning approaches

were tried for the fuzzy controllers.

• The algorithm has the ability to park vehicles in a space that is 1.4 times the length and 1.2 times the width of the vehicles.• a tighter space compared with the spaces used in the

literatures.

Page 14: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 14

Fine-tuning of FLC Using GAsFine-tuning of FLC Using GAs

• Genetic algorithms (GAs) are a part of evolutionary computing. GAs search the solution space of a function through the use of simulated evolution, i.e., the survival of the fittest strategy.

• GAs have the ability to learn effective fuzzy logic controllers. GAs were used to determine optimal membership functions and scaling factor for the second step only in the research.

• The main design issues of the genetic fuzzy system include:• selection of design variables (parameters to be optimized).

• determination of suitable fitness function representing the controller performance.

Page 15: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 15

Fine-tuning of FLC Using GAs Fine-tuning of FLC Using GAs (cont’d)(cont’d)

• The triangular-shaped MFs can be represented by

• The trapezoidal-shaped MFs can be represented by

• Tuning the MFs requires the adjustment of the values of these parameters (22 overall).

• Output scaling factor:

xc

cxbbc

xc

bxaab

axax

cbaxf

,0

,

,

,0

),,;(

xg

gxffg

xgfxe

exdde

dxdx

gfedxf

,0

,

,1

,

,0

),,,;(

NG

Page 16: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 16

Tuning for a Skid-steering SystemTuning for a Skid-steering System

• The ATRV-Jr uses skid steering for vehicle maneuvering.

• The fitness function was chosen as

• The 1st and 2nd terms consider the relative position of the AGV to the boundaries of the space.

• The 3rd term considers the orientation of the vehicle with respect to the horizontal axis.

• The 4th term is to prevent the AGV from colliding with the boundaries of the parking space.

• A GA was implemented with a population size of 20 and 100 generations.

)23( penaltyh

y

h

y

l

x

p

c

p

d

p

a

Page 17: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 17

Simulation ResultsSimulation Results

• The proposed algorithm was seen to always successfully park the vehicle from any initial position if the desired ready-to-reserve position was reached.

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

-0.5

0

0.5

1

1.5

2

ADJUST FORWARD

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2

-0.5

0

0.5

1

1.5

2

BACK UP PROCESS

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

ADJUST FORWARD

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

FINAL PARKING POSITION

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

BACK UP PROCESS

-3 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

PARKING SPACE AND INITIAL POSITION OF ROBOT

-3 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

REACH THE FIRST POSITION

-2 -1.5 -1 -0.5 0 0.5 1 1.5 2-0.5

0

0.5

1

1.5

2

REACH THE POSITION TO BE READY FOR BACK UP

Page 18: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 18

Experimental ImplementationExperimental Implementation

• Maneuvering process of an ATRV-Jr from an initial position to the final position.

Page 19: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 19

Experimental Implementation Experimental Implementation (cont’d)(cont’d)

Page 20: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 20

ConclusionsConclusions

• A solution to automatic parallel parking of autonomous ground vehicles by the use of fuzzy logic was developed.

• GAs provide a systematic approach to determine the effective MFs and scaling factors for the fuzzy logic controller.

• Both simulation and experimental implementation results illustrate the effectiveness of the parallel parking scheme to maneuver the vehicle into tight spaces.

The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Laboratory or the U. S. Government.

Page 21: Automated Parallel Parking Using Fuzzy Logic

EML 5930 Mobile Robotics (17 November, 2003) Slide: 21

Quiz Material Quiz Material • Know all of the material in the Introduction including:

• The general schematic of fuzzy logic (given in class).

• The reason fuzzy logic used?

• The graphical explanation of why fuzzy logic tends to be robust (given in class).

• Be able to determine the degree of membership of a fuzzy variable in fuzzy sets given a graph of the membership functions.

• Be able to read the rule bases given in the presentation.

• Be able to give a parameterization of the triangular- and trapezoidal-shaped membership functions.

• Be able to give a general explanation of how genetic algorithms work.

• Be able to describe why a genetic algorithm was used in this problem.

• Be able to give an explanation of the fitness function used for the fuzzy-genetic algorithm.