|
Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
|
A gait table to store all the parameters needed of robot locomotion. More...
#include <GaitTable.h>
Public Member Functions | |
| GaitTable (const std::string file_path) | |
| Creates a gait table from a file containing the table data. | |
| float | at (int id, int parameter) |
| Returns the value of the specified parameter for a given ID. | |
| std::vector< float > | getParameters (int id) |
| Returns the value of all the parameters for a given ID. | |
| std::vector< float > | operator[] (int id) |
| Returns the value of all the parameters for a given ID. | |
| int | getNumParameters () |
| std::vector< unsigned long > | getIDs () |
| Returns a vector containing all the IDs from all the entries on the table. | |
| int | reload () |
| Erases the current table and loads the data from the file again. | |
Private Member Functions | |
| int | lookForID (unsigned long id) |
| Returns the index of the row containing the data for the given ID. | |
| int | loadFromFile (const std::string file_path) |
| Loads a gait table from a file: | |
| void | saveToFile (const std::string file_path) |
| Saves the gait table to a Matlab/Octave file. | |
Private Attributes | |
| std::vector< std::vector< float > > | data |
| Contains all the gait table data. | |
| std::vector< unsigned long > | ids |
| int | num_parameters |
| std::string | file_path |
A gait table to store all the parameters needed of robot locomotion.
1.7.4