Preserve route identity through reservation and export
This commit is contained in:
parent
cea23ef1b4
commit
286caa273b
1 changed files with 226 additions and 99 deletions
|
|
@ -45,7 +45,7 @@ class _Shift:
|
|||
|
||||
def _identify_layout(problem: RoutingProblem, margin: float) -> _Layout:
|
||||
columns: dict[tuple[float, float], list[Bounds]] = defaultdict(list)
|
||||
for obstacle in problem.static_obstacles:
|
||||
for obstacle in problem._blocking_polygons:
|
||||
if not obstacle.equals(box(*obstacle.bounds)):
|
||||
raise ValueError("Bundle routing requires axis-aligned rectangular obstacles")
|
||||
x0, y0, x1, y1 = obstacle.bounds
|
||||
|
|
|
|||
Loading…
Reference in a new issue