Skip to content

Commit

Permalink
Fix dangling reference in static allocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanders committed Oct 21, 2021
1 parent 12f3218 commit 2a9ac7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/slam/lago.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static const Matrix I = I_1x1;
static const Matrix I3 = I_3x3;

static const noiseModel::Diagonal::shared_ptr priorOrientationNoise =
noiseModel::Diagonal::Sigmas((Vector(1) << 0).finished());
noiseModel::Diagonal::Sigmas(Vector1(0));
static const noiseModel::Diagonal::shared_ptr priorPose2Noise =
noiseModel::Diagonal::Variances(Vector3(1e-6, 1e-6, 1e-8));

Expand Down

0 comments on commit 2a9ac7c

Please sign in to comment.