#include <BB2004InvKinWalkingEngine.h>
Inheritance diagram for BBInvKinIndividual:


Public Member Functions | |
| BBInvKinIndividual () | |
| Constructor. | |
| BBInvKinIndividual (const InvKinWalkingParameters ¶meters) | |
| Constructor. | |
| virtual void | init (const BBIndividual &initial) |
| The function initializes the current individual with another one. | |
| virtual void | interpolate (const BBIndividual &other) |
| The function interpolates between the current individual and another one. | |
| virtual void | extrapolate (const BBIndividual &other) |
| The function extrapolates between the current individual and another one. | |
| virtual void | mutate () |
| The function mutates the current individual. | |
| virtual double | getFitness () const |
| The function returns the fitness of the individual. | |
| double | getSpeed () const |
| The function returns the speed of the walk of the individual. | |
| double | getSmoothness () const |
| The function returns the smoothness of the walk of the individual. | |
| void | setWalkCharacteristics (double speed, double smoothness) |
| The function sets the speed and the smoothness of the walk using the individual. | |
| void | getParameters (InvKinWalkingParameters ¶meters) const |
| The function copies the genes into walking parameters. | |
| void | dump () const |
| The function prints the genes. | |
Private Types | |
| enum | { numOfGenes = 27 } |
Private Attributes | |
| double | genes [numOfGenes] |
| The genes. | |
| double | fitness |
| The fitness of this individual. | |
| double | speed |
| The speed of the walk using this individual. | |
| double | smoothness |
| The smooothness of the walk using this individual. | |
Static Private Attributes | |
| double | geneScale [numOfGenes] |
| An array that estimates the range of value of a certain gene. | |
Definition at line 22 of file BB2004InvKinWalkingEngine.h.
|
|
Definition at line 25 of file BB2004InvKinWalkingEngine.h. |
|
|
Constructor.
Definition at line 39 of file BB2004InvKinWalkingEngine.h. |
|
|
|
The function initializes the current individual with another one.
Implements BBIndividual. Definition at line 34 of file BB2004InvKinWalkingEngine.cpp. |
Here is the call graph for this function:

|
|
The function interpolates between the current individual and another one. The result is stored in the current individual.
Implements BBIndividual. Definition at line 42 of file BB2004InvKinWalkingEngine.cpp. |
Here is the call graph for this function:

|
|
The function extrapolates between the current individual and another one.
Implements BBIndividual. Definition at line 61 of file BB2004InvKinWalkingEngine.cpp. |
Here is the call graph for this function:

|
|
The function mutates the current individual.
Implements BBIndividual. Definition at line 55 of file BB2004InvKinWalkingEngine.cpp. References geneScale, and random(). Referenced by init(). |
Here is the call graph for this function:

|
|
The function returns the fitness of the individual.
Implements BBIndividual. Definition at line 75 of file BB2004InvKinWalkingEngine.h. Referenced by BB2004InvKinWalkingEngine::learn(). |
|
|
The function returns the speed of the walk of the individual.
Definition at line 81 of file BB2004InvKinWalkingEngine.h. Referenced by BB2004InvKinWalkingEngine::learn(). |
|
|
The function returns the smoothness of the walk of the individual.
Definition at line 87 of file BB2004InvKinWalkingEngine.h. References smoothness. Referenced by BB2004InvKinWalkingEngine::learn(). |
|
||||||||||||
|
The function sets the speed and the smoothness of the walk using the individual.
Definition at line 77 of file BB2004InvKinWalkingEngine.cpp. Referenced by BB2004InvKinWalkingEngine::learn(). |
|
|
The function copies the genes into walking parameters.
Definition at line 127 of file BB2004InvKinWalkingEngine.cpp. References ASSERT, InvKinWalkingParameters::bodyShiftOffset, InvKinWalkingParameters::bodyShiftX, InvKinWalkingParameters::bodyShiftY, InvKinWalkingParameters::counterRotation, InvKinWalkingParameters::footMode, InvKinWalkingParameters::foreCenterX, InvKinWalkingParameters::foreFootLift, InvKinWalkingParameters::foreFootTilt, InvKinWalkingParameters::foreHeight, InvKinWalkingParameters::foreWidth, InvKinWalkingParameters::groundPhase, InvKinWalkingParameters::hindCenterX, InvKinWalkingParameters::hindFootLift, InvKinWalkingParameters::hindFootTilt, InvKinWalkingParameters::hindHeight, InvKinWalkingParameters::hindWidth, InvKinWalkingParameters::legPhase, InvKinWalkingParameters::legSpeedFactorR, InvKinWalkingParameters::legSpeedFactorX, InvKinWalkingParameters::legSpeedFactorY, InvKinWalkingParameters::liftPhase, InvKinWalkingParameters::loweringPhase, InvKinWalkingParameters::maxStepSizeX, InvKinWalkingParameters::maxStepSizeY, and InvKinWalkingParameters::stepLen. Referenced by dump(), and BB2004InvKinWalkingEngine::learn(). |
|
|
The function prints the genes.
Definition at line 177 of file BB2004InvKinWalkingEngine.cpp. References OutMessage::finishMessage(), getDebugOut(), OutMemory::getLength(), getParameters(), idText, and OutMessage::text. Referenced by BB2004InvKinWalkingEngine::learn(). |
Here is the call graph for this function:

|
|
Initial value:
{
200, 200, 200,
200, 200, 200,
50, 50,
1, 1,
1, 1, 1,
50, 50,
100,
1, 1, 1,
1, 1, 1,
0.5, 0.5,
10, 10, 10
}
Definition at line 19 of file BB2004InvKinWalkingEngine.cpp. |
|
|
The genes.
Definition at line 30 of file BB2004InvKinWalkingEngine.h. Referenced by extrapolate(), and interpolate(). |
|
|
The fitness of this individual.
Definition at line 31 of file BB2004InvKinWalkingEngine.h. Referenced by extrapolate(), and interpolate(). |
|
|
The speed of the walk using this individual.
Definition at line 31 of file BB2004InvKinWalkingEngine.h. |
|
|
The smooothness of the walk using this individual.
Definition at line 31 of file BB2004InvKinWalkingEngine.h. Referenced by getSmoothness(). |
1.3.6