diff --git a/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h b/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h index 4a1a9cb4a..3cf6c16d3 100644 --- a/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h +++ b/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h @@ -39,8 +39,8 @@ public: /** default constructor */ IncrementalFixedLagSmoother(double smootherLag = 0.0, - const boost::optional& parameters = boost::none) : - FixedLagSmoother(smootherLag), isam_(parameters ? (*parameters) : getDefaultParams()) { + const ISAM2Params& parameters = DefaultISAM2Params()) : + FixedLagSmoother(smootherLag), isam_(parameters) { } /** destructor */ @@ -115,8 +115,8 @@ public: protected: - /* Create default parameters */ - ISAM2Params getDefaultParams() const { + /** Create default parameters */ + static ISAM2Params DefaultISAM2Params() { ISAM2Params params; params.findUnusedFactorSlots = true; return params;