def __update_max_distance_from_start(self): curr_dists = utils.point_dist_vec(self.robot_positions, self.map.start_point) self.max_distance_from_start = np.maximum(self.max_distance_from_start, curr_dists)
def __update_target_distances(self): self.target_distances = utils.point_dist_vec(self.robot_positions, self.map.end_point) return self.target_distances