default arg for HybridSmoother constructor and clean up tests

release/4.3a0
Varun Agrawal 2025-01-24 23:21:32 -05:00
parent 4fcfe6493f
commit c91abb2644
2 changed files with 1 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class GTSAM_EXPORT HybridSmoother {
* @param deadModeThreshold The threshold above which a mode gets assigned a
* value and is considered "dead". 0.99 is a good starting value.
*/
HybridSmoother(const std::optional<double> deadModeThreshold)
HybridSmoother(const std::optional<double> deadModeThreshold = {})
: deadModeThreshold_(deadModeThreshold) {}
/**

View File

@ -194,8 +194,6 @@ TEST(HybridSmoother, DeadModeRemoval) {
HybridGaussianFactorGraph linearized = *graph.linearize(initial);
// std::cout << "\n\n\nk" << std::endl;
// GTSAM_PRINT(linearized);
smoother.update(linearized, maxNrLeaves);
// Clear all the factors from the graph