Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
hormodular::ModularRobot::ModularRobot ( hormodular::ConfigParser  configParser,
std::string  robotInterfaceType = "simulated" 
)

Creates a ModularRobot, specifying the type of robot to be created.

Parameters:
configParserConfigParser object containing the robot configuration
robotInterfaceTypeOptional parameter specifying the type of robot to which the ModularRobot will be connected, either a simulated robot (default) or a real robot connected via serial port.
{
    this->configParser = configParser;

    //-- Create as many modules as needed
    for(int i = 0; i < configParser.getNumModules(); i++)
        modules.push_back( new Module(configParser, i) );

    //-- Create robot, simulated type
    robotInterface = createModularRobotInterface( robotInterfaceType, configParser);

    step_ms = 0.25;

    reset();
}

Here is the call graph for this function:

 All Classes Functions Variables Friends