Skip to content

Commit e49b6cf

Browse files
committed
address github bot
1 parent 6391677 commit e49b6cf

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

PathPlanning/TimeBasedPathPlanning/BaseClasses.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from abc import ABC, abstractmethod
22
from dataclasses import dataclass
3-
import math
43
from PathPlanning.TimeBasedPathPlanning.GridWithDynamicObstacles import (
54
Grid,
65
Position,

PathPlanning/TimeBasedPathPlanning/PriorityBasedPlanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
class PriorityBasedPlanner(MultiAgentPlanner):
2424

25+
@staticmethod
2526
def plan(grid: Grid, start_and_goals: list[StartAndGoal], single_agent_planner_class: SingleAgentPlanner, verbose: bool) -> tuple[list[StartAndGoal], list[NodePath]]:
2627
"""
2728
Generate a path from the start to the goal for each agent in the `start_and_goals` list.
@@ -41,7 +42,7 @@ def plan(grid: Grid, start_and_goals: list[StartAndGoal], single_agent_planner_c
4142

4243
paths = []
4344
for start_and_goal in start_and_goals:
44-
if True:
45+
if verbose:
4546
print(f"\nPlanning for agent: {start_and_goal}" )
4647

4748
grid.clear_initial_reservation(start_and_goal.start, start_and_goal.index)

tests/test_priority_based_planner.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ def test_1():
2424
obstacle_arrangement=ObstacleArrangement.ARRANGEMENT1,
2525
)
2626

27-
grid_side_length = 21
28-
grid = Grid(
29-
np.array([grid_side_length, grid_side_length]),
30-
obstacle_arrangement=ObstacleArrangement.ARRANGEMENT1,
31-
)
32-
3327
m.show_animation = False
3428

3529
start_and_goals: list[StartAndGoal]

0 commit comments

Comments
 (0)