This commit is contained in:
AtsushiSakai
2017-05-22 16:20:21 -07:00
parent d40d79864a
commit 839ef345f0
2 changed files with 11 additions and 3 deletions

View File

@@ -60,10 +60,9 @@ class RRT():
self.nodeList.append(newNode)
self.rewire(newNode, nearinds)
if animation:
if animation and i % 5 == 0:
self.DrawGraph(rnd=rnd)
if i % 5 == 0:
matplotrecorder.save_frame() # save each frame
matplotrecorder.save_frame() # save each frame
# generate coruse
lastIndex = self.get_best_last_index()