mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-15 00:28:27 -05:00
Merge pull request #306 from ndinhtuan/master
fix compute jacobian of F in ekf_estimation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user