From 69a98bc37b048ef16f5fab7fbc9cd62e6b6c2429 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 15 Aug 2013 20:17:12 +0000 Subject: [PATCH] Bug fix in SolverComparer --- examples/SolverComparer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SolverComparer.cpp b/examples/SolverComparer.cpp index 19281ce0f..2ee464dda 100644 --- a/examples/SolverComparer.cpp +++ b/examples/SolverComparer.cpp @@ -276,7 +276,7 @@ void runIncremental() } } } else { - if(!newVariables.exists(measurement->key1())) { // Only need to check newVariables since loop closures come after odometry + if(!newVariables.exists(measurement->key2())) { // Only need to check newVariables since loop closures come after odometry if(step == 1) newVariables.insert(measurement->key2(), measurement->measured()); else {