From 7a8016e3254f122fb734b1562b8ed3a98a2a032d Mon Sep 17 00:00:00 2001 From: rezaxdi Date: Wed, 6 Feb 2019 01:28:49 +0330 Subject: [PATCH] Update a_star.py Typo fix in function name --- PathPlanning/AStar/a_star.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PathPlanning/AStar/a_star.py b/PathPlanning/AStar/a_star.py index 65dfe88f..8917630d 100644 --- a/PathPlanning/AStar/a_star.py +++ b/PathPlanning/AStar/a_star.py @@ -27,7 +27,7 @@ class Node: return str(self.x) + "," + str(self.y) + "," + str(self.cost) + "," + str(self.pind) -def calc_fianl_path(ngoal, closedset, reso): +def calc_final_path(ngoal, closedset, reso): # generate final course rx, ry = [ngoal.x * reso], [ngoal.y * reso] pind = ngoal.pind @@ -104,7 +104,7 @@ def a_star_planning(sx, sy, gx, gy, ox, oy, reso, rr): # This path is the best until now. record it! openset[n_id] = node - rx, ry = calc_fianl_path(ngoal, closedset, reso) + rx, ry = calc_final_path(ngoal, closedset, reso) return rx, ry