Skip to content

Commit

Permalink
fix typo on 3x3 matrix def
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwlambert authored Jul 9, 2021
1 parent 4bf2308 commit 641a01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/sfm/ShonanAveraging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ static BinaryMeasurement<Rot2> convertPose2ToBinaryMeasurementRot2(
throw std::invalid_argument(
"parseMeasurements<Rot2> can only convert Pose2 measurements "
"with Gaussian noise models.");
const Matrix6 M = gaussian->covariance();
const Matrix3 M = gaussian->covariance();
auto model = noiseModel::Gaussian::Covariance(M.block<2, 2>(2, 2));
return BinaryMeasurement<Rot2>(f->key1(), f->key2(), f->measured().rotation(),
model);
Expand Down

0 comments on commit 641a01c

Please sign in to comment.