fix default parameters in constructor of IncrementalFixedLagSmoother.h
parent
6ef7b48d68
commit
dcb82920ea
|
|
@ -39,8 +39,8 @@ public:
|
||||||
|
|
||||||
/** default constructor */
|
/** default constructor */
|
||||||
IncrementalFixedLagSmoother(double smootherLag = 0.0,
|
IncrementalFixedLagSmoother(double smootherLag = 0.0,
|
||||||
const ISAM2Params& parameters = ISAM2Params()) :
|
const boost::optional<ISAM2Params>& parameters = boost::none) :
|
||||||
FixedLagSmoother(smootherLag), isam_(parameters) {
|
FixedLagSmoother(smootherLag), isam_(parameters ? (*parameters) : getDefaultParams()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** destructor */
|
/** destructor */
|
||||||
|
|
@ -114,6 +114,14 @@ public:
|
||||||
const ISAM2Result& getISAM2Result() const{ return isamResult_; }
|
const ISAM2Result& getISAM2Result() const{ return isamResult_; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
/* Create default parameters */
|
||||||
|
ISAM2Params getDefaultParams() const {
|
||||||
|
ISAM2Params params;
|
||||||
|
params.findUnusedFactorSlots = true;
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
/** An iSAM2 object used to perform inference. The smoother lag is controlled
|
/** An iSAM2 object used to perform inference. The smoother lag is controlled
|
||||||
* by what factors are removed each iteration */
|
* by what factors are removed each iteration */
|
||||||
ISAM2 isam_;
|
ISAM2 isam_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue