fix a bug in EKFUpate
This commit is contained in:
parent
7b92124871
commit
fa56ea3e2c
@ -386,7 +386,10 @@ void GIEngine::EKFUpdate(Eigen::MatrixXd &dz, Eigen::MatrixXd &H, Eigen::MatrixX
|
||||
I.resizeLike(Cov_);
|
||||
I.setIdentity();
|
||||
I = I - K * H;
|
||||
dx_ = dx_ + K * dz;
|
||||
// 如果每次更新后都进行状态反馈,则更新前dx_一直为0,下式可以简化为:dx_ = K * dz;
|
||||
// if state feedback is performed after every update, dx_ is always zero before the update
|
||||
// the following formula can be simplified as : dx_ = K * dz;
|
||||
dx_ = dx_ + K * (dz - H * dx_);
|
||||
Cov_ = I * Cov_ * I.transpose() + K * R * K.transpose();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user