Darwin Neuroevolution Framework
|
Domain: Drone Vision. More...
#include <domain.h>
Public Member Functions | |
size_t | inputs () const override |
Number of inputs to a Brain. | |
size_t | outputs () const override |
Number of outputs from a Brain. | |
bool | evaluatePopulation (darwin::Population *population) const override |
Assigns fitness values to every genotype. More... | |
![]() | |
virtual unique_ptr< core::PropertySet > | calibrateGenotype ([[maybe_unused]] const Genotype *genotype) const |
Optional: additional fitness metrics (normally not used in the population evaluation, ie a test set) | |
Domain: Drone Vision.
A simple vision test: look at the red ball, using only the camera pixels as input. The target ball starts moving in a random direction and will bounce off the walls.
The inputs are the color channels from the drone's camera, plus optionally the depth channel.
Output | Value |
---|---|
0,1 | force vector (x, y) applied to the drone |
2 | torque applied to turn the drone |
|
overridevirtual |
Assigns fitness values to every genotype.
Having a good fitness function is a key part of evolutionary algorithms:
true
if the evolution goal was reached Implements darwin::Domain.