fitness_functions
Standard fitness functions for modular robots.
Module Contents
Functions
|
Calculate the distance traveled on the xy-plane by a single modular robot. |
- xy_displacement(begin_state: revolve2.modular_robot_simulation.ModularRobotSimulationState, end_state: revolve2.modular_robot_simulation.ModularRobotSimulationState) float
Calculate the distance traveled on the xy-plane by a single modular robot.
- Parameters:
begin_state – Begin state of the robot.
end_state – End state of the robot.
- Returns:
The calculated fitness.