From e18799cbb745d3cc3ff5cad707f401ee1f218834 Mon Sep 17 00:00:00 2001 From: Drake <1024507980@qq.com> Date: Sat, 7 May 2022 16:20:20 +0800 Subject: [PATCH] modify end node's state (#656) --- PathPlanning/DStar/dstar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PathPlanning/DStar/dstar.py b/PathPlanning/DStar/dstar.py index e01508b3..f8954d77 100644 --- a/PathPlanning/DStar/dstar.py +++ b/PathPlanning/DStar/dstar.py @@ -160,7 +160,7 @@ class Dstar: rx = [] ry = [] - self.open_list.add(end) + self.insert(end, 0.0) while True: self.process_state()