Skip to content

Commit

Permalink
Merge pull request stereolabs#892 from betaBison/zero-cross-cov
Browse files Browse the repository at this point in the history
zero Rz cross covariance terms
  • Loading branch information
Myzhar committed May 10, 2023
2 parents a5a6048 + 0a7244d commit 50dda07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ void ZEDWrapperNodelet::publishOdom(tf2::Transform odom2baseTransf, sl::Pose& sl
if (mTwoDMode) {
if (i == 14 || i == 21 || i == 28) {
odomMsg->pose.covariance[i] = 1e-9; // Very low covariance if 2D mode
} else if ((i >= 2 && i <= 4) || (i >= 8 && i <= 10) || (i >= 12 && i <= 13) || (i >= 15 && i <= 16) || (i >= 18 && i <= 20) || (i == 22) || (i >= 24 && i <= 27)) {
} else if ((i >= 2 && i <= 4) || (i >= 8 && i <= 10) || (i >= 12 && i <= 13) || (i >= 15 && i <= 20) || (i >= 22 && i <= 27) || (i == 29) || (i >= 32 && i <= 34)) {
odomMsg->pose.covariance[i] = 0.0;
}
}
Expand Down

0 comments on commit 50dda07

Please sign in to comment.