This commit is contained in:
Atsushi Sakai
2018-11-20 20:32:15 +09:00
parent c3ff866f22
commit 2f60e723a2

View File

@@ -12,7 +12,6 @@ import matplotlib.pyplot as plt
import sys
sys.path.append("../../")
from matplotrecorder import matplotrecorder
show_animation = True
@@ -207,7 +206,6 @@ def main():
plt.axis("equal")
plt.grid(True)
plt.pause(0.0001)
matplotrecorder.save_frame()
# check goal
if math.sqrt((x[0] - goal[0])**2 + (x[1] - goal[1])**2) <= config.robot_radius:
@@ -219,10 +217,6 @@ def main():
plt.plot(traj[:, 0], traj[:, 1], "-r")
plt.pause(0.0001)
for i in range(10):
matplotrecorder.save_frame()
matplotrecorder.save_movie("animation.gif", 0.1)
plt.show()