mirror of
https://github.com/zhm-real/PathPlanning.git
synced 2026-08-30 09:00:47 +08:00
add LPA*
This commit is contained in:
@@ -67,3 +67,11 @@ class QueuePrior:
|
||||
|
||||
def enumerate(self):
|
||||
return self.queue
|
||||
|
||||
def check_remove(self, item):
|
||||
for (p, x) in self.queue:
|
||||
if item == x:
|
||||
self.queue.remove((p, x))
|
||||
|
||||
def top_key(self):
|
||||
return self.queue[0][0]
|
||||
|
||||
Reference in New Issue
Block a user