Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
float hormodular::SimulatedModularRobotInterface::getTravelledDistance ( ) [virtual]

Returns the distance travelled by the simulated modular robot.

This distance is not the actual distance travelled, but the point-to-point distance between the initial point and the final point.

Implements hormodular::ModularRobotInterface.

{
    calculatePos();
    return sqrt( pow( current_pos.first - start_pos.first, 2) +
                 pow( current_pos.second - start_pos.second, 2));
}
 All Classes Functions Variables Friends