minor typo fixes

release/4.3a0
Varun Agrawal 2022-10-25 12:35:29 -04:00
parent ebb29ef33d
commit 08393314ac
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ struct Switching {
}
// Create hybrid factor graph.
// Add a prior on X(1).
// Add a prior on X(0).
auto prior = boost::make_shared<PriorFactor<double>>(
X(0), measurements.at(0), noiseModel::Isotropic::Sigma(1, prior_sigma));
nonlinearFactorGraph.push_nonlinear(prior);

View File

@ -105,7 +105,7 @@ TEST(HybridBayesTree, Optimize) {
graph1.push_back(s.linearizedFactorGraph.at(i));
}
// Add the Gaussian factors, 1 prior on X(1),
// Add the Gaussian factors, 1 prior on X(0),
// 3 measurements on X(2), X(3), X(4)
graph1.push_back(s.linearizedFactorGraph.at(0));
for (size_t i = 4; i <= 6; i++) {