From fa7071bdd8acb4203af775440030053b99701af6 Mon Sep 17 00:00:00 2001 From: dellaert Date: Fri, 12 Dec 2014 07:45:09 +0100 Subject: [PATCH] Comments, renaming --- gtsam_unstable/slam/tests/testTOAFactor.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtsam_unstable/slam/tests/testTOAFactor.cpp b/gtsam_unstable/slam/tests/testTOAFactor.cpp index ae32211be..0565cbcbd 100644 --- a/gtsam_unstable/slam/tests/testTOAFactor.cpp +++ b/gtsam_unstable/slam/tests/testTOAFactor.cpp @@ -61,8 +61,10 @@ public: /// @{ /** - * Add an Expression factor directly - * Which implements |h(x)-z|^2_R + * Directly add ExpressionFactor that implements |h(x)-z|^2_R + * @param h expression that implements measurement function + * @param z measurement + * @param R model */ template void addExpressionFactor(const Expression& h, const T& z, @@ -201,8 +203,8 @@ TEST( TOAFactor, RealExperiment1 ) { ExpressionFactorGraph graph; for (size_t i = 0; i < 4; i++) { for (size_t j = 0; j < 15; j++) { - Double_ predictTOA_ij(&Event::toa, unknownEvents[j], microphones[i]); - graph.addExpressionFactor(predictTOA_ij, data[j][i], model); + Double_ h_ij(&Event::toa, unknownEvents[j], microphones[i]); + graph.addExpressionFactor(h_ij, data[j][i], model); } }