fix typo in block indexing, 3x3 covariance for Pose2 should have just 1x1 block for theta
parent
aebb90573a
commit
ddfb45efb0
|
|
@ -955,7 +955,7 @@ static BinaryMeasurement<Rot2> convertPose2ToBinaryMeasurementRot2(
|
||||||
"parseMeasurements<Rot2> can only convert Pose2 measurements "
|
"parseMeasurements<Rot2> can only convert Pose2 measurements "
|
||||||
"with Gaussian noise models.");
|
"with Gaussian noise models.");
|
||||||
const Matrix3 M = gaussian->covariance();
|
const Matrix3 M = gaussian->covariance();
|
||||||
auto model = noiseModel::Gaussian::Covariance(M.block<2, 2>(2, 2));
|
auto model = noiseModel::Gaussian::Covariance(M.block<1, 1>(2, 2));
|
||||||
return BinaryMeasurement<Rot2>(f->key1(), f->key2(), f->measured().rotation(),
|
return BinaryMeasurement<Rot2>(f->key1(), f->key2(), f->measured().rotation(),
|
||||||
model);
|
model);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue