code clean up

This commit is contained in:
Atsushi Sakai
2019-02-03 20:04:10 +09:00
parent 74b8432497
commit 18a4a2e606
3 changed files with 51 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ class RRT():
return path
def DrawGraph(self, rnd=None):
def DrawGraph(self, rnd=None): # pragma: no cover
"""
Draw Graph
"""
@@ -162,7 +162,7 @@ def main():
path = rrt.Planning(animation=show_animation)
# Draw final path
if show_animation:
if show_animation: # pragma: no cover
rrt.DrawGraph()
plt.plot([x for (x, y) in path], [y for (x, y) in path], '-r')
plt.grid(True)