Skip to content

Commit

Permalink
changing robust noise model to Gaussian
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushbaid committed Jan 18, 2021
1 parent edcd75f commit 09a2e2e
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 09a2e2e

Please sign in to comment.