Skip to content

Commit

Permalink
switched to angles for normalization. still wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoval committed May 17, 2012
1 parent d6b5bb5 commit 579c5ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/robot_kf.cc
Expand Up @@ -2,6 +2,7 @@
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/LU>
#include <angles/angles.h>
#include <robot_kf/robot_kf.h>

using namespace Eigen;
Expand Down Expand Up @@ -77,7 +78,7 @@ void KalmanFilter::measure(Matrix<double, m, 1> z, Matrix<double, m, m> cov_z,
}

void KalmanFilter::normalize_yaw(void) {
x_[2] = fmod(x_[2], 2 * M_PI);
x_[2] = angles::normalize_angle(x_[2]);
}

};

0 comments on commit 579c5ad

Please sign in to comment.