def load_configuration(robot_file):
    """ Read from file robot configuration
    generated for visualization

    :param robot_file: the file where the configuration is stored
    :return: a tuple containing a list of strings that represents robot modules
             and robot fitness
    """
    with open(robot_file) as in_file:
        modules = [line.strip().split(' ') for line in in_file]

    # last value is robot fitness
    return modules[:-1], float(modules[-1][-1])