Skip to content

Commit 31d4c1c

Browse files
committed
fix typo
1 parent 22cedce commit 31d4c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Localization/particle_filter/particle_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def pf_localization(px, pw, xEst, PEst, z, u):
111111
ud = np.array([[ud1, ud2]]).T
112112
x = motion_model(x, ud)
113113

114-
# Calc Inportance Weight
114+
# Calc Importance Weight
115115
for i in range(len(z[:, 0])):
116116
dx = x[0, 0] - z[i, 1]
117117
dy = x[1, 0] - z[i, 2]
@@ -185,7 +185,7 @@ def plot_covariance_ellipse(xEst, PEst):
185185
y = [b * math.sin(it) for it in t]
186186
angle = math.atan2(eigvec[bigind, 1], eigvec[bigind, 0])
187187
R = np.array([[math.cos(angle), math.sin(angle)],
188-
[-math.sin(angle), math.cos(angle)]])
188+
[-math.sin(angle), math.cos(angle)]])
189189
fx = R.dot(np.array([[x, y]]))
190190
px = np.array(fx[0, :] + xEst[0, 0]).flatten()
191191
py = np.array(fx[1, :] + xEst[1, 0]).flatten()

0 commit comments

Comments
 (0)