Skip to content

Commit ece317c

Browse files
committed
2 parents 3146531 + 4f70fd6 commit ece317c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PathPlanning/AStar/a_star.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __str__(self):
2727
return str(self.x) + "," + str(self.y) + "," + str(self.cost) + "," + str(self.pind)
2828

2929

30-
def calc_fianl_path(ngoal, closedset, reso):
30+
def calc_final_path(ngoal, closedset, reso):
3131
# generate final course
3232
rx, ry = [ngoal.x * reso], [ngoal.y * reso]
3333
pind = ngoal.pind
@@ -104,7 +104,7 @@ def a_star_planning(sx, sy, gx, gy, ox, oy, reso, rr):
104104
# This path is the best until now. record it!
105105
openset[n_id] = node
106106

107-
rx, ry = calc_fianl_path(ngoal, closedset, reso)
107+
rx, ry = calc_final_path(ngoal, closedset, reso)
108108

109109
return rx, ry
110110

0 commit comments

Comments
 (0)