DCOLLINS::ANN::SimWorld - a simulated world for robots to play in
version 0.004
DCOLLINS::ANN::SimWorld::new( )
Creates a DCOLLINS::ANN::SimWorld object ready to test robots.
Has many parameters. Important may be fitness_function, a coderef to a function that takes age, total_pain, total_battery, battery_used, pain_given, weights, uniq_squares For standardization, these are the parameters that SimWorld will pass to the network: Current battery power (0-1) Current pain value (0-1) Differential battery power ((-1)-1) Differential pain value ((-1)-1) Proximity readings, -45, 0, 45 degrees (0-1) Current X location (0-1) Current Y location (0-1) Currently facing: N, S, E, W (0-1)
These are the parameters that SimWorld will expect as outputs from the network: Rotate L Rotate R Forwards Reverse Stop The largest value will be accepted. If no output is greater than 1, SimWorld will interpret as a stop.
$environment->run_robot($robot);
Returns a hashref with the following information: fitness => Num age => Num total_pain => Num total_battery => Num battery_used => Num pain_given => Num
Dan Collins <dcollin1@stevens.edu>
This software is Copyright (c) 2011 by Dan Collins.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install DCOLLINS::ANN::Robot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DCOLLINS::ANN::Robot
CPAN shell
perl -MCPAN -e shell install DCOLLINS::ANN::Robot
For more information on module installation, please visit the detailed CPAN module installation guide.