Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
hormodular::GaitTable::GaitTable ( const std::string  file_path)

Creates a gait table from a file containing the table data.

Parameters:
file_pathPath to the file containing the table data
{
    //-- Check if the file exists
    this->file_path = file_path;
    std::ifstream file(file_path.c_str());
    if (file.good())
    {
        loadFromFile(file_path);
    }
    else
    {
        std::cerr << "[GaitTable] File \"" << file_path << "\" does not exist" << std::endl;
    }
}

Here is the call graph for this function:

 All Classes Functions Variables Friends