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];
}