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 f6ef266 commit 54b6052Copy full SHA for 54b6052
PathPlanning/RRTstar/rrt_star.py
@@ -63,12 +63,14 @@ def Planning(self, animation=True):
63
if animation and i % 5 == 0:
64
self.DrawGraph(rnd)
65
66
- # generate coruse
67
- lastIndex = self.get_best_last_index()
68
- if lastIndex is None:
69
- return None
70
- path = self.gen_final_course(lastIndex)
71
- return path
+ # generate coruse
+ lastIndex = self.get_best_last_index()
+ if lastIndex is None:
+ continue
+ path = self.gen_final_course(lastIndex)
+ return path
72
+
73
+ return None
74
75
def choose_parent(self, newNode, nearinds):
76
if not nearinds:
0 commit comments