Top Banner
RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma
15

RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

May 25, 2018

Download

Documents

phungduong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

RACE CAR STRATEGY OPTIMISATION

UNDER SIMULATION

Naveen Chaudhary

Shashank Sharma

Page 2: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Objective

Computation of optimal racing line given

a track

Design a controller for traversing a car on

this optimal racing line found

Page 3: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Motivation

Traditional methods require large

amount of computational resources and

are impractical for fast pace and real time

games.

Problem demands a more efficient and

fast solution

Enthusiast in computer games.

Page 4: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Determination of optimal path

◦ Track represented as a set of connected polygons

◦ Waypoints are defined on the connected edges

◦ Sharp turns avoided

◦ Three consecutive points should not bend too

much towards different directions

Page 5: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Track representation

Track represented as connected polygons [5]

Page 6: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Choice of direction along the width

Probability density along width of track [6]

Page 7: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Choice of points

Sharp turns to be avoided [6]

Page 8: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

How to select the path?

Set the starting point 0

For each point i chose the point i+1

Run many times and compare

Best energy and best time path are

selected

◦ Energy Consumption

𝐸 = |𝐾 𝑠 |𝑠

𝑑𝑠

Where, K is the curvature of the path s

Page 9: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Forward looking algorithm

Linear approximation of probability density function [6]

Page 10: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Design of controller to drive on

optimal path found ANN implementation

Inputs- ◦ Current speed of the car

◦ Angle of the car with the axis

◦ Current gear

◦ Lateral speed of the car

◦ R.P.M of the wheels

◦ Current position on the track

Outputs- ◦ Accelerate / brake value

◦ Gear change

◦ Steering

Page 11: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Cost function for ANN

Distance from optimal racing line

Difference between current speed and

max possible speed at that point

Page 12: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Platform

TORCS (The Open Racing Car Simulator)

◦ http://www.torcs.sourceforge.net/

Page 13: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

References

[1] Jung-Ying Wang and Yong-Bin Lin, “Game AI: Simulating Car Racing Game by Applying

Pathfinding Algorithms”, International Journal of Machine Learning and Computing, Vol 2,

No.1, Feb 12.

[2] J. Togelius and Simon M. Lucas, “Evolving Controllers for Simulated Car Racing”, Proceedings

of the congress on evolutionary computation, 2005, pp. 1906-1913.

[3] C. H. Tan , J. H. Ang , K. C. Tan and A. Tay "Online adaptive controller for simulated car

racing", Proc. IEEE Congr. Evol. Comput., pp.2239 -2245 2008.

[4] L. Cardamone , D. Loiacono and P. L. Lanzi "On-line neuroevolution applied to the open

racing car simulator", Proc. IEEE Congr. Evol. Comput., pp.2622 -2629 2009.

[5] L. Cardamone, D. Loiacono, P.L. Lanzi, and A.P. Bardelli, “Searching for the optimal racing

line using genetic algorithms”, In Computational Intelligence and Games (CIG), 2010 IEEE

Symposium on, pages 388-394, aug. 2010.

[6] Y. Xiong, “Race Line Optimization” thesis submitted to MIT, September 2010.

Page 14: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Questions??

Page 15: RACE CAR STRATEGY OPTIMISATION UNDER SIMULATIONnaveen/cs... · RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma

Thank You