From 38982ae4aa31bd9948c17bb79b742848ecd26960 Mon Sep 17 00:00:00 2001 From: duyanwei Date: Fri, 18 Oct 2019 00:23:00 +0800 Subject: [PATCH] changed function name and made it static --- gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;