Skip to content

Commit

Permalink
changed localizer to take out imu since we're having troubles with it
Browse files Browse the repository at this point in the history
  • Loading branch information
VivaanBahl committed Apr 5, 2018
1 parent 78da1fd commit 10df1b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ class Localizer
Matrix<double, 5, 1> x_hat;
Matrix<double, 5, 5> R;
Matrix<double, 5, 5> P;
Matrix<double, 2, 2> Q_GPS;
Matrix<double, 3, 3> Q_GPS;
Matrix<double, 1, 1> Q_Encoder;
Matrix<double, 1, 1> Q_IMU;
Matrix<double, 2, 5> C_GPS;
Matrix<double, 3, 5> C_GPS;
Matrix<double, 1, 5> C_Encoder;
Matrix<double, 1, 5> C_IMU;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ void Localizer::GPS_Callback(const robobuggy::GPS::ConstPtr &msg)
}
prev_position_utm = p;

Matrix<double, 2, 1> z;
Matrix<double, 3, 1> z;
z <<
p.easting,
p.northing
p.northing,
heading_cartesian
;
kalman_filter(C_GPS, Q_GPS, z);

Expand Down Expand Up @@ -146,8 +147,9 @@ void Localizer::init_P()
void Localizer::init_Q_GPS()
{
Q_GPS <<
1, 0,
0, 1
1, 0, 0,
0, 1, 0,
0, 0, 0.01
;

std::stringstream s;
Expand Down Expand Up @@ -184,7 +186,8 @@ void Localizer::init_C_GPS()
{
C_GPS <<
1, 0, 0, 0, 0,
0, 1, 0, 0, 0
0, 1, 0, 0, 0,
0, 0, 0, 1, 0
;

std::stringstream s;
Expand Down

0 comments on commit 10df1b9

Please sign in to comment.