From 4ddaea30d6189518ed7b0c792a4da5ebf92de96c Mon Sep 17 00:00:00 2001
From: Joan Sola <jsola@iri.upc.edu>
Date: Tue, 6 Mar 2018 15:40:06 +0100
Subject: [PATCH] Fix gtest ProcessorMotion

---
 src/test/gtest_processor_motion.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/gtest_processor_motion.cpp b/src/test/gtest_processor_motion.cpp
index 228570f14..6cd5e0645 100644
--- a/src/test/gtest_processor_motion.cpp
+++ b/src/test/gtest_processor_motion.cpp
@@ -44,7 +44,8 @@ class ProcessorMotion_test : public ProcessorOdom2D, public testing::Test{
             capture = std::make_shared<CaptureMotion>(0.0, sensor, data, data_cov, 3, 3, nullptr);
 
             Vector3s x0; x0 << 0, 0, 0;
-            processor->setOrigin(x0, 0.0);
+            Matrix3s P0; P0.setIdentity();
+            problem->setPrior(x0, P0, 0.0, 0.01);
         }
 
         virtual void TearDown(){}
-- 
GitLab