Skip to content

Commit

Permalink
Merge pull request #675 from borglab/fix/shonan-noise-model-from-factor
Browse files Browse the repository at this point in the history
changing robust noise model to Gaussian
  • Loading branch information
ayushbaid authored Jan 19, 2021
2 parents c383b6c + 09a2e2e commit 654995e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gtsam/sfm/ShonanAveraging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,9 +880,7 @@ static BinaryMeasurement<Rot3> convert(
"parseMeasurements<Rot3> can only convert Pose3 measurements "
"with Gaussian noise models.");
const Matrix6 M = gaussian->covariance();
auto model = noiseModel::Robust::Create(
noiseModel::mEstimator::Huber::Create(1.345),
noiseModel::Gaussian::Covariance(M.block<3, 3>(3, 3)));
auto model = noiseModel::Gaussian::Covariance(M.block<3, 3>(3, 3));
return BinaryMeasurement<Rot3>(f->key1(), f->key2(), f->measured().rotation(),
model);
}
Expand Down

0 comments on commit 654995e

Please sign in to comment.