Skip to content

Commit cded081

Browse files
committed
add gif of graph_based_slam
1 parent 6701970 commit cded081

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SLAM/GraphBasedSLAM/animation.gif

93.5 KB
Loading

SLAM/GraphBasedSLAM/graph_based_slam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import itertools
1313
import matplotlib.pyplot as plt
1414

15+
1516
# Simulation parameter
1617
Qsim = np.diag([0.2, math.radians(1.0)])**2
1718
Rsim = np.diag([0.1, math.radians(10.0)])**2
@@ -165,8 +166,6 @@ def graph_based_slam(x_init, hz):
165166

166167
zlist = copy.deepcopy(hz)
167168
zlist.insert(1, zlist[0])
168-
# zlist.append(zlist[-1])
169-
# zlist.append(None)
170169

171170
x_opt = copy.deepcopy(x_init)
172171
nt = x_opt.shape[1]
@@ -310,6 +309,7 @@ def main():
310309
np.array(x_opt[1, :]).flatten(), "-r")
311310
plt.axis("equal")
312311
plt.grid(True)
312+
plt.title("Time" + str(time)[0:5])
313313
plt.pause(1.0)
314314

315315

0 commit comments

Comments
 (0)