Skip to content

Commit 68c4c78

Browse files
committed
Fix path not connecting to start node
1 parent f2c651f commit 68c4c78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PathPlanning/BreadthFirstSearch/breadth_first_search.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def calc_final_path(self, ngoal, closedset):
128128
ry.append(self.calc_grid_position(n.y, self.miny))
129129
n = n.parent
130130

131+
rx.append(self.calc_grid_position(n.x, self.minx))
132+
ry.append(self.calc_grid_position(n.y, self.miny))
133+
131134
return rx, ry
132135

133136
def calc_grid_position(self, index, minp):

0 commit comments

Comments
 (0)