Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing covariance initialization (#74) #29

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ inline times::GpsTime ConvertGpsTime(const std::string& gps_wno, const std::stri
inline Eigen::Matrix<double, 3, 3> BuildCovMat3D(const double xx, const double yy, const double zz,
const double xy, const double yz, const double xz) {
Eigen::Matrix<double, 3, 3> cov;
cov.setZero();

// Diagonals
cov(0, 0) = xx; // 0
cov(1, 1) = yy; // 4
Expand Down Expand Up @@ -227,6 +229,8 @@ inline Eigen::Matrix<double, 6, 6> BuildCovMat6D(const double xx, const double y
const double yz, const double xz, double xx1, const double yy1,
const double zz1, const double xy1, const double yz1, double xz1) {
Eigen::Matrix<double, 6, 6> cov;
cov.setZero();

// Diagonals
cov(0, 0) = xx; // 0
cov(1, 1) = yy; // 7
Expand Down