Step Class Reference
#include <step.h>
List of all members.
Constructor & Destructor Documentation
Step::Step |
( |
string |
name |
) |
|
Create a simple container for the step
- Parameters:
-
| name,the | name will be used to locate the file storing the step, and to configure properties of the step itself the name should be something like WalkForwardLeftStart where the format is WalkTypeValueLeftClass (Value is optional) |
Member Function Documentation
void Step::getInitialPose |
( |
float ** |
positions, |
|
|
float ** |
hardnesses | |
|
) |
| | |
Get the initial pose for this step. Note that you will get a rubbish pose if this step is not a starting step!
- Parameters:
-
| | a pointer to an array where the positions of the initial pose are stored |
| | a pointer to an array that will be updated to point to where the hardnesses are stored |
void Step::getNextFrame |
( |
float ** |
positions, |
|
|
float ** |
hardnesses | |
|
) |
| | |
Get the next frame of positions and hardnesses for this step
- Parameters:
-
| positions,a | pointer to the array where the positions will be stored |
| hardnesses,a | pointer to the array where the hardnesses will be stored Pointers to arrays are used so that no data actually needs to be transferred, I just set the pointer to the next frame |
Returns true if this step has finished, false otherwise Postconditions: This step is also reset, so that when it is used again we start from the begining
Member Data Documentation
The documentation for this class was generated from the following files:
- /Users/jason/Code/naowalkoptimiser/src/Locomotion/Walk/step.h
- /Users/jason/Code/naowalkoptimiser/src/Locomotion/Walk/step.cpp