Skip to content
Snippets Groups Projects
Commit c79f1316 authored by rachelmoan's avatar rachelmoan
Browse files

if a robot is marked as not a part of a grid, skip it

parent 27856a0f
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,8 @@ class Subproblem:
# any robot whose current and next node are in the subproblem are considered
# involved in the subproblem
for r in self.all_robots:
if r.outside_grid:
continue
pos_curr = r.current_position
pos_next = r.goal
x = pos_curr[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment