Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
float hormodular::GaitTable::at ( int  id,
int  parameter 
)

Returns the value of the specified parameter for a given ID.

Returns:
The value stored at (id, parameter) on the gait table. If the ID was not found, returns 0 (and shows an error message).
{
    int tableRow = lookForID(id);

    if ( tableRow == -1)
    {
        std::cerr << "[GaitTable] Error: ID "<< id <<" not found on gait table." << std::endl;
        return 0;
    }

    return data[tableRow][parameter];
}
 All Classes Functions Variables Friends