GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
HybridSmoother.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
22 
23 #include <optional>
24 
25 namespace gtsam {
26 
28  private:
29  HybridBayesNet hybridBayesNet_;
30  HybridGaussianFactorGraph remainingFactorGraph_;
31 
32  public:
52  void update(HybridGaussianFactorGraph graph, const Ordering& ordering,
53  std::optional<size_t> maxNrLeaves = {});
54 
55  Ordering getOrdering(const HybridGaussianFactorGraph& newFactors);
56 
66  std::pair<HybridGaussianFactorGraph, HybridBayesNet> addConditionals(
67  const HybridGaussianFactorGraph& graph,
68  const HybridBayesNet& hybridBayesNet, const Ordering& ordering) const;
69 
71  GaussianMixture::shared_ptr gaussianMixture(size_t index) const;
72 
74  const HybridBayesNet& hybridBayesNet() const;
75 };
76 
77 }; // namespace gtsam
std::pair< HybridGaussianFactorGraph, HybridBayesNet > addConditionals(const HybridGaussianFactorGraph &graph, const HybridBayesNet &hybridBayesNet, const Ordering &ordering) const
Add conditionals from previous timestep as part of liquefication.
Definition: Ordering.h:37
GaussianMixture::shared_ptr gaussianMixture(size_t index) const
Get the Gaussian Mixture from the Bayes Net posterior at index.
Definition: HybridGaussianFactorGraph.h:103
A Bayes net of Gaussian Conditionals indexed by discrete keys.
void update(HybridGaussianFactorGraph graph, const Ordering &ordering, std::optional< size_t > maxNrLeaves={})
Definition: HybridBayesNet.h:35
Linearized Hybrid factor graph that uses type erasure.
Definition: chartTesting.h:28
const HybridBayesNet & hybridBayesNet() const
Return the Bayes Net posterior.
Definition: HybridSmoother.h:27