add gif of graph_based_slam

This commit is contained in:
Atsushi Sakai
2018-03-28 21:51:42 -07:00
parent 6701970c49
commit cded081ca8
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -12,6 +12,7 @@ import copy
import itertools
import matplotlib.pyplot as plt
# Simulation parameter
Qsim = np.diag([0.2, math.radians(1.0)])**2
Rsim = np.diag([0.1, math.radians(10.0)])**2
@@ -165,8 +166,6 @@ def graph_based_slam(x_init, hz):
zlist = copy.deepcopy(hz)
zlist.insert(1, zlist[0])
# zlist.append(zlist[-1])
# zlist.append(None)
x_opt = copy.deepcopy(x_init)
nt = x_opt.shape[1]
@@ -310,6 +309,7 @@ def main():
np.array(x_opt[1, :]).flatten(), "-r")
plt.axis("equal")
plt.grid(True)
plt.title("Time" + str(time)[0:5])
plt.pause(1.0)