changed function name and made it static

release/4.3a0
duyanwei 2019-10-18 00:23:00 +08:00
parent dcb82920ea
commit 38982ae4aa
1 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ public:
/** default constructor */ /** default constructor */
IncrementalFixedLagSmoother(double smootherLag = 0.0, IncrementalFixedLagSmoother(double smootherLag = 0.0,
const boost::optional<ISAM2Params>& parameters = boost::none) : const ISAM2Params& parameters = DefaultISAM2Params()) :
FixedLagSmoother(smootherLag), isam_(parameters ? (*parameters) : getDefaultParams()) { FixedLagSmoother(smootherLag), isam_(parameters) {
} }
/** destructor */ /** destructor */
@ -115,8 +115,8 @@ public:
protected: protected:
/* Create default parameters */ /** Create default parameters */
ISAM2Params getDefaultParams() const { static ISAM2Params DefaultISAM2Params() {
ISAM2Params params; ISAM2Params params;
params.findUnusedFactorSlots = true; params.findUnusedFactorSlots = true;
return params; return params;