examples.dlife.robot.player.evolution
Class EvolvedObstacleAvoidance
java.lang.Object
examples.dlife.robot.player.evolution.EvolvedObstacleAvoidance
public class EvolvedObstacleAvoidance
- extends Object
Illustration of how to evolve a neural controller for a robot. This example
specifically shows how to evolve a neural network controller for obstacle
avoidance behavior with a Hemisson robot. It may be useful to review the
dlife.ga, dlife.nn and dlife.robot.player packages
before tackling this example.
To run this example:
- Complete the Basic dLife Installation.
- Complete the Player/Stage
Setup.
- Execute the following command from the dLifeDist directory:
java examples.dlife.robot.player.EvolvedObstacleAvoidance
- A Player/Stage simulation window should appear and the following sequence
of events will occur:
- Each controller in the population will be used in turn to control the
Hemisson for 5 seconds.
- The fitness of each controller will be evaluated (see
HemissonNeuroController).
- When each of the controllers of have a turn the next generation of
controllers will be created.
- Steps 1-3 will be repeated for 5 generations. The minimum, average and
maximum fitness of the population will be printed following each generation.
The source code for this class is contained in the file:
- Version:
- Jun 30, 2010
- Author:
- Grant Braught, Dickinson College
|
Method Summary |
static void |
main(String[] args)
Run the evolution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvolvedObstacleAvoidance
public EvolvedObstacleAvoidance()
main
public static void main(String[] args)
- Run the evolution.
- Parameters:
args - none