Fix in ConcurrentFilteringAndSmoothing - one elimination call was using the default elimination function instead of the one from the parameters.
parent
caa232cca2
commit
a27f97dec4
|
@ -71,7 +71,8 @@ NonlinearFactorGraph calculateMarginalFactors(const NonlinearFactorGraph& graph,
|
||||||
// Create the linear factor graph
|
// Create the linear factor graph
|
||||||
GaussianFactorGraph linearFactorGraph = *graph.linearize(theta);
|
GaussianFactorGraph linearFactorGraph = *graph.linearize(theta);
|
||||||
// .first is the eliminated Bayes tree, while .second is the remaining factor graph
|
// .first is the eliminated Bayes tree, while .second is the remaining factor graph
|
||||||
GaussianFactorGraph marginalLinearFactors = *linearFactorGraph.eliminatePartialMultifrontal(std::vector<Key>(marginalizeKeys.begin(), marginalizeKeys.end())).second;
|
GaussianFactorGraph marginalLinearFactors = *linearFactorGraph.eliminatePartialMultifrontal(
|
||||||
|
std::vector<Key>(marginalizeKeys.begin(), marginalizeKeys.end()), eliminateFunction).second;
|
||||||
|
|
||||||
// Wrap in nonlinear container factors
|
// Wrap in nonlinear container factors
|
||||||
NonlinearFactorGraph marginalFactors;
|
NonlinearFactorGraph marginalFactors;
|
||||||
|
|
Loading…
Reference in New Issue