Skip to content

Commit

Permalink
fix adding priors in Switching
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Aug 8, 2022
1 parent 51d2f07 commit a3eacaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/hybrid/tests/Switching.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct Switching {

// Add measurement factors
auto measurement_noise = noiseModel::Isotropic::Sigma(1, 0.1);
for (size_t k = 1; k <= K; k++) {
for (size_t k = 2; k <= K; k++) {
nonlinearFactorGraph.emplace_nonlinear<PriorFactor<double>>(
X(k), 1.0 * (k - 1), measurement_noise);
}
Expand Down

0 comments on commit a3eacaa

Please sign in to comment.