Closed Nick-Sullivan closed 6 years ago
It seems the high values stem from lines 152 -154 in odometry.ccp:
odom->pose.covariance[14] = DBL_MAX; // set a non-zero covariance on unused
odom->pose.covariance[21] = DBL_MAX; // dimensions (z, pitch and roll); this
odom->pose.covariance[28] = DBL_MAX; // is a requirement of robot_pose_ekf
DBL_MAX = 1.79769e+308
I've a suspicion these high values also cause rviz to crash when trying to visualize odom
data.
Maybe some double - float casting going wrong in places. @Nick-Sullivan send us a PR for something that works and that you think is reasonable.
When fusing the odometry from the kobuki (mobile_base/odom) with GPS into a robot_localization EKF, the output becomes filled with NaN's.
If I republish the odom with smaller covariances for the unused variables, everything works fine.
Default odom:
This causes the output of the EKF to look like this:
If I republish the odom with smaller covariances for the unused variables (1e308 to 1e6):
Then the fusion works fine.
This is on Kinetic, and my EKF fusion looks like this: