Skip to content

Commit

Permalink
fix the bug for the initialization of the estimators
Browse files Browse the repository at this point in the history
  • Loading branch information
kouroshD committed Nov 2, 2021
1 parent 97201f7 commit 10c2474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/HapticGlove_module/src/MotorEstimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Estimator::~Estimator()
bool Estimator::initialize(const Eigen::MatrixXd& z0)
{

Eigen::MatrixXd x0 = m_H * z0;
Eigen::MatrixXd x0 = (m_H.transpose() * m_H).inverse() * m_H.transpose() * z0;
Eigen::MatrixXd M0 = Eigen::MatrixXd::Identity(m_n, m_n);

return m_kf->initialize(x0, M0);
Expand Down

0 comments on commit 10c2474

Please sign in to comment.