diff --git a/gtsam/hybrid/HybridSmoother.h b/gtsam/hybrid/HybridSmoother.h index 12da3b0af..c626d00a3 100644 --- a/gtsam/hybrid/HybridSmoother.h +++ b/gtsam/hybrid/HybridSmoother.h @@ -27,7 +27,6 @@ namespace gtsam { class GTSAM_EXPORT HybridSmoother { private: HybridBayesNet hybridBayesNet_; - HybridGaussianFactorGraph remainingFactorGraph_; /// The threshold above which we make a decision about a mode. std::optional marginalThreshold_; @@ -44,6 +43,16 @@ class GTSAM_EXPORT HybridSmoother { HybridSmoother(const std::optional marginalThreshold = {}) : marginalThreshold_(marginalThreshold) {} + /// Return fixed values: + const DiscreteValues& fixedValues() const { return fixedValues_; } + + /** + * Re-initialize the smoother from a new hybrid Bayes Net. + */ + void reInitialize(HybridBayesNet&& hybridBayesNet) { + hybridBayesNet_ = std::move(hybridBayesNet); + } + /** * Given new factors, perform an incremental update. * The relevant densities in the `hybridBayesNet` will be added to the input