RoutePathfinder.unobstructed¶
- RoutePathfinder.unobstructed(segment: list) bool ¶
Check that no component’s bounding box in self.design intersects or overlaps a given segment.
- Parameters:
segment (list) – 2 vertices, in the form [np.array([x0, y0]), np.array([x1, y1])]
- Returns:
True is no obstacles
- Return type:
bool