From 642f839b7dadd9a13d542430fb7a0281609d6792 Mon Sep 17 00:00:00 2001 From: Toni Date: Mon, 21 Jan 2019 16:15:56 -0500 Subject: [PATCH] Refactor getISAM2Result to ISAM2Result, and return const & --- gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h b/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h index 39af8f27e..28895046a 100644 --- a/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h +++ b/gtsam_unstable/nonlinear/IncrementalFixedLagSmoother.h @@ -110,7 +110,7 @@ public: } /// Get results of latest isam2 update - const ISAM2Result getISAM2Result() const{ return isamResult_; } + const ISAM2Result& ISAM2Result() const {return isamResult_;} protected: /** An iSAM2 object used to perform inference. The smoother lag is controlled