We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7eec63 commit ba2247cCopy full SHA for ba2247c
PathPlanning/BatchInformedRRTStar/batch_informed_rrtstar.py
@@ -311,7 +311,11 @@ def find_final_path(self):
311
currId = self.goalId
312
while (currId != self.startId):
313
plan.append(self.tree.nodeIdToRealWorldCoord(currId))
314
- currId = self.nodes[currId]
+ try:
315
+ currId = self.nodes[currId]
316
+ except(KeyError):
317
+ print("Path key error")
318
+ return []
319
320
plan.append(self.start)
321
plan = plan[::-1] # reverse the plan
0 commit comments