Merge pull request #306 from ndinhtuan/master

fix compute jacobian of F in ekf_estimation
This commit is contained in:
Atsushi Sakai
2020-04-09 20:11:25 +09:00
committed by GitHub

View File

@@ -117,7 +117,7 @@ def jacob_h():
def ekf_estimation(xEst, PEst, z, u):
# Predict
xPred = motion_model(xEst, u)
jF = jacob_f(xPred, u)
jF = jacob_f(xEst, u)
PPred = jF @ PEst @ jF.T + Q
# Update
@@ -128,7 +128,6 @@ def ekf_estimation(xEst, PEst, z, u):
K = PPred @ jH.T @ np.linalg.inv(S)
xEst = xPred + K @ y
PEst = (np.eye(len(xEst)) - K @ jH) @ PPred
return xEst, PEst