TORCS WORKS Jang Su-Hyung.

Slides:



Advertisements
Similar presentations
Racing Vehicle Control
Advertisements

Optimized Sensory-motor Couplings plus Strategy Extensions for the TORCS Car Racing Challenge COBOSTAR Cognitive BodySpaces for Torcs based Adaptive Racing.
By Luigi Cardamone, Daniele Loiacono and Pier Luca Lanzi.
Western Oregon University Oregon Department of Transportation Transportation Safety Division Driver Risk Prevention Curriculum Introduction to Backing.
lesson 4.3 PARKING MANEUVERS Parking your car is a skill.
Genetic fuzzy controllers for uncertain systems Yonggon Lee and Stanislaw H. Żak Supported by National Science Foundation under grant ECS
Artificial Intelligence in Game Design Introduction to Learning.
Car Racing Competition. Goal  Learn or design a controller for TORCS that races as fast as possible alone or in the presence of others drivers  “Spiritual.
RACE CAR STRATEGY OPTIMISATION UNDER SIMULATION Naveen Chaudhary Shashank Sharma.
Starting, Moving, and Stopping the Vehicle
Evolving a rule system controller for automatic driving in a car racing competition Diego Perez, Yago Saez Member, IEEE, Gustavo Recio, Pedro Isasi Presented.
Evolving Driving Controllers using Genetic Programming Marc Ebner and Thorsten Tiede.
Evolving Neural Network Agents in the NERO Video Game Author : Kenneth O. Stanley, Bobby D. Bryant, and Risto Miikkulainen Presented by Yi Cheng Lin.
Using a GA to Create Prey Tactics Presented by Tony Morelli on 11/29/04.
Design of Autonomous Navigation Controllers for Unmanned Aerial Vehicles using Multi-objective Genetic Programming Gregory J. Barlow March 19, 2004.
1. 2 overview Background on video games Background on video games Neural networks Neural networks NE NE NEAT NEAT rtNEAT rtNEAT NERO NERO.
Advanced Topics in Evolutionary Algorithms Meta-GP Crossover operator evolver for Torcs car setup optimization problem Mati Bot & Shimi Azrad.
Marcus Gallagher and Mark Ledwich School of Information Technology and Electrical Engineering University of Queensland, Australia Sumaira Saeed Evolving.
Natural Laws and Driving
Evolving Multi-modal Behavior in NPCs Jacob Schrum – Risto Miikkulainen –
C. Benatti, 3/15/2012, Slide 1 GA/ICA Workshop Carla Benatti 3/15/2012.
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
Jorge Munoz, German Gutierrez, Araceli Sanchis Presented by: Itay Bittan.
Study on Genetic Network Programming (GNP) with Learning and Evolution Hirasawa laboratory, Artificial Intelligence section Information architecture field.
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
CoG and Speeding Building SPEED July 28, July-2011 Center of Gravity The Center of Gravity is the point where the object/figure balances Geometry.
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
James Ihrig Awrad Mohammed Ali.  In our project we will use HyperNeat C++ to train a neural network to drive a car using TORCS as a platform.  This.
Artificial Intelligence in Game Design Complex Steering Behaviors and Combining Behaviors.
Mike Taks Bram van de Klundert. About Published 2005 Cited 286 times Kenneth O. Stanley Associate Professor at University of Central Florida Risto Miikkulainen.
Drivers Education Mr Ressler. ` What is Black Ice? How does it affect a person’s driving ability? How do we handle driving in icy conditions?
科技英文作業 黃方世 陳竹軒. Introduction Talking about video games. Training agents for what. Focus on training Non-player-character (NPC).
Behavior Control of Virtual Vehicle
CSCI1600: Embedded and Real Time Software Lecture 12: Modeling V: Control Systems and Feedback Steven Reiss, Fall 2015.
Pac-Man AI using GA. Why Machine Learning in Video Games? Better player experience Agents can adapt to player Increased variety of agent behaviors Ever-changing.
NEURO-FUZZY LOGIC 1 X 0 A age Crisp version for young age.
Evolving Multimodal Networks for Multitask Games
Artificial Intelligence in Game Design Lecture 8: Complex Steering Behaviors and Combining Behaviors.
Acceleration Acceleration – the rate at which velocity changes  Can be an: Increase in speed Decrease in speed Change in direction.
Riza Erdem Jappie Klooster Dirk Meulenbelt EVOLVING MULTI-MODAL BEHAVIOR IN NPC S.
A field of study that encompasses computational techniques for performing tasks that require intelligence when performed by humans. Simulation of human.
Robot Intelligence Technology Lab. 10. Complex Hardware Morphologies: Walking Machines Presented by In-Won Park
CAP6938 Neuroevolution and Artificial Embryogeny Real-time NEAT Dr. Kenneth Stanley February 22, 2006.
1 Algoritmos Genéticos aplicados em Machine Learning Controle de um Robo (em inglês)
Evolutionary Computation Evolving Neural Network Topologies.
CAP6938 Neuroevolution and Artificial Embryogeny Real-time NEAT Dr. Kenneth Stanley February 22, 2006.
St. Francis Prep Driver Education
Unit 5 VEHICLE HANDLING SAFE VEHICLE CONTROL
Evolutionary Algorithms Jim Whitehead
Orientation to Controls Moving Stopping & Steering Smoothly
Chapter 12 Driving in Adverse Conditions
FUZZY NEURAL NETWORKS TECHNIQUES AND THEIR APPLICATIONS
HyperNetworks Engın denız usta
Unit 2 Basic Vehicle Control
Functions Algebra
Dr. Kenneth Stanley September 25, 2006
CSCI1600: Embedded and Real Time Software
Evolving Multimodal Networks for Multitask Games
Power and limits of reactive intelligence
Motion Planning for Multiple Autonomous Vehicles
CIS 488/588 Bruce R. Maxim UM-Dearborn
Velocity & Distance vs Time Graphs
lesson 4.3 PARKING MANEUVERS Parking your car is a skill.
Dr. Kenneth Stanley February 6, 2006
Velocity & Distance vs Time Graphs
EE368 Soft Computing Genetic Algorithms.
Boltzmann Machine (BM) (§6.4)
Emergency Situations & Vehicle Malfunctions
lesson 3.3 STARTING, STOPPING, STEERING, AND TARGETING
Rules of the Road Chapter 11
Presentation transcript:

TORCS WORKS Jang Su-Hyung

Social Network Base Code by Berniw Rule GA Controller by Diego Prerez Stuck Speed limit Distance Accelerator Rule GA Controller by Diego Prerez Input Data Base Individual Rule GA Individual Evolving a Fast Controller for TORCS Using NEAT by Luigi Cardamone NEAT Sensors and Controllers Controller Design Social network define our relationship to others in society. such connections help us define social context, which in turn affects the roles we embody The roles that we play and the social networks that develop around them help us define our individual identity.

Stuck

Stuck

Stuck

Stuck

Stuck

About Speed Limit

About Speed Limit

Distance

Accelerator

Input Data 1 Angle - to Discretization to range: [0,4]

Input Data 2 Track Position -1 to 1 Discretization to range: [0,1]

Input Data 3 Speed 0 to …(km/h) Discretization to range: [0,3]

Input Data 4 Track 19 sensors, from 0 to 100 Discretization to range: [0,3] If any < 20 :1 If any < 100 : 0 Else : 2

Base Individual 1 First approach Angle : [0.4] Track Position : [0,1] Speed : [0,3] Track : [0,2] Each Rule : Steering : [-1.1] Acceleration : [0,1] Gear bound 3000 rpm 6000 rpm

Base Individual 2 First approach Second approach Evolve a GA maximizing the distance raced TORCS did not behave in a stable way Second approach Find the rule set that allows the vehicle to end a lap, centered on the track. Minimize angle to track axis.

Rule GA Individual Rules from base individual compose the GA individual. N rules, depending on base individual. Including left (conditions) and right (actions) sides.

Rule GA Step Create a new rule by genetic operators. Substitute the new one for the most similar in the individual. If fitness decreases, new rule stays. If not, recover the previous one. combination of lap time (40%) and damage (60%).

Sensors and effectors

NeuroEvolution selection cross over mutation Input Hidden Output 1 selection mutation cross over population A B C D Fitness evaluation Search space reproduction Chromosome

NEAT(encoding) NeuroEvoloution of Augmenting Topologies

NEAT(mutation)

NEAT(crossover)

rtNEAT

Sensors and effectors The following sensors were used: Track sensors at -90°,-60°,-30°,+30°,+60°,+90° Frontal sensor: max reading among the frontal track sensors at -10°,0°,10° Car speed The network controls Steering wheel Gas/Brake pedals

Controller design To avoid wasting time with fast but slower controller, we set gas pedal to 1 (the max value) when the car is on a straight In addition, the neural controller does not deal with gear shifting and the scripted policy provided is used instead We also used a very simple scripted policy to avoid at least the opponents that are “close and in front” of the bot

Evaluation of Controllers The fitness is computed on an entire lap as Where Tout is the number of game tics the bot was outside the track Savg is the average speed D is the distance raced As soon as a Tout becomes greater than 500 game tics, the evaluation is immediately stopped

An example of behaviors evolved

Hacked controller Simon M. Lucas Based on SimpleSoloController http://cig.dei.polimi.it/index.php?s=simplesolocontroller Java Low recover ability Over accelerate Target Speed Normal : 100 km/h Safety mode : 50 km/h

Hacked controller Change Target Speed Track Position Limit TrackFac Normal : 250 km/h Safety : 167 km/h Track Position Limit 0.3 -> 0.15 More effort to stay close to the centerline of the track TrackFac 0.38 Steering angle : 0.01 -> 0.005 Reduce the risk of skidding Manually chosen parameter

Homework 1 TORCS 지능형 드라이버 Bot 만들기 바이너리 파일(dll) Source Code 테스트 결과 Presentation 자료 4월 13일 자정까지 neogates@sclab.yonsei.ac.kr

Question