From d45250a9895b4dbc57f2b473d9bb495cdf360d99 Mon Sep 17 00:00:00 2001 From: dellaert Date: Wed, 1 Oct 2014 10:45:57 +0200 Subject: [PATCH] Fixed dim --- gtsam_unstable/nonlinear/BADFactor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam_unstable/nonlinear/BADFactor.h b/gtsam_unstable/nonlinear/BADFactor.h index 3afb3cc7e..6780afd73 100644 --- a/gtsam_unstable/nonlinear/BADFactor.h +++ b/gtsam_unstable/nonlinear/BADFactor.h @@ -64,7 +64,7 @@ public: /// get the dimension of the factor (number of rows on linearization) size_t dim() const { - return 0; + return measurement_.dim(); } /// linearize to a GaussianFactor