From 0ab1b8631a0fcee0c9e0ebf90f235a91e4be515a Mon Sep 17 00:00:00 2001 From: dellaert Date: Mon, 9 Mar 2015 17:43:00 -0700 Subject: [PATCH] Fixed compilation issues due to renaming --- gtsam/slam/tests/testSmartProjectionPoseFactor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtsam/slam/tests/testSmartProjectionPoseFactor.cpp b/gtsam/slam/tests/testSmartProjectionPoseFactor.cpp index 5d9dc4c5f..722a8d0a0 100644 --- a/gtsam/slam/tests/testSmartProjectionPoseFactor.cpp +++ b/gtsam/slam/tests/testSmartProjectionPoseFactor.cpp @@ -121,7 +121,7 @@ TEST_UNSAFE( SmartProjectionPoseFactor, noiseless ) { // Calculate expected derivative for point (easiest to check) boost::function f = // - boost::bind(&SmartFactor::whitenedErrors, factor, cameras, _1); + boost::bind(&SmartFactor::whitenedError, factor, cameras, _1); // Calculate using computeEP Matrix actualE; @@ -138,7 +138,7 @@ TEST_UNSAFE( SmartProjectionPoseFactor, noiseless ) { // Calculate using reprojectionError SmartFactor::Cameras::FBlocks F; Matrix E; - Vector actualErrors = factor.reprojectionError(cameras, *point, F, E); + Vector actualErrors = factor.unwhitenedError(cameras, *point, F, E); EXPECT(assert_equal(expectedE, E, 1e-7)); EXPECT(assert_equal(zero(4), actualErrors, 1e-7)); @@ -146,7 +146,8 @@ TEST_UNSAFE( SmartProjectionPoseFactor, noiseless ) { // Calculate using computeJacobians Vector b; vector Fblocks; - double actualError3 = factor.computeJacobians(Fblocks, E, b, cameras, *point); + factor.computeJacobians(Fblocks, E, b, cameras, *point); + double actualError3 = b.squaredNorm(); EXPECT(assert_equal(expectedE, E, 1e-7)); EXPECT_DOUBLES_EQUAL(expectedError, actualError3, 1e-8); }