add gif files

This commit is contained in:
Atsushi Sakai
2018-01-14 15:29:23 -08:00
parent 124ab287ae
commit e0ec969a7d
5 changed files with 1 additions and 5 deletions

View File

@@ -8,14 +8,12 @@ import numpy as np
import matplotlib.pyplot as plt
import math
import motion_model
from matplotrecorder import matplotrecorder
# optimization parameter
max_iter = 100
h = np.matrix([0.5, 0.02, 0.02]).T # parameter sampling distanse
cost_th = 0.1
matplotrecorder.donothing = True
show_graph = False
@@ -99,7 +97,6 @@ def show_trajectory(target, xc, yc):
plt.axis("equal")
plt.grid(True)
plt.pause(0.1)
matplotrecorder.save_frame()
def optimize_trajectory(target, k0, p):
@@ -145,7 +142,6 @@ def test_optimize_trajectory():
x, y, yaw, p = optimize_trajectory(target, k0, init_p)
show_trajectory(target, x, y)
matplotrecorder.save_movie("animation.gif", 0.1)
# plt.plot(x, y, "-r")
plot_arrow(target.x, target.y, target.yaw)
plt.axis("equal")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -230,7 +230,7 @@ def uniform_terminal_state_sampling_test2():
def biased_terminal_state_sampling_test1():
k0 = 0.0
lane_state_sampling_test1 = 0.0
nxy = 30
nh = 2
d = 20