mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-13 02:08:03 -05:00
add gif files
This commit is contained in:
@@ -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")
|
||||
|
||||
BIN
PathPlanning/StateLatticePlanner/BiasedPolarSampling.gif
Normal file
BIN
PathPlanning/StateLatticePlanner/BiasedPolarSampling.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
BIN
PathPlanning/StateLatticePlanner/LaneSampling.gif
Normal file
BIN
PathPlanning/StateLatticePlanner/LaneSampling.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 861 KiB |
BIN
PathPlanning/StateLatticePlanner/UniformPolarSampling.gif
Normal file
BIN
PathPlanning/StateLatticePlanner/UniformPolarSampling.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user