From 4dc5237d9e0e48105eb7ffe408200680710f2520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Mon, 26 Aug 2019 02:58:32 +0200 Subject: [PATCH] Fix pointer to capture instead of frame --- test/gtest_processor_diff_drive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gtest_processor_diff_drive.cpp b/test/gtest_processor_diff_drive.cpp index 2d758cc59..f697a948a 100644 --- a/test/gtest_processor_diff_drive.cpp +++ b/test/gtest_processor_diff_drive.cpp @@ -347,7 +347,7 @@ TEST_F(ProcessorDiffDriveTest, linear) data(0) = 100.0 ; // one turn of the wheels data(1) = 100.0 ; - auto C = std::make_shared<CaptureDiffDrive>(t, sensor, data, data_cov, F0); + auto C = std::make_shared<CaptureDiffDrive>(t, sensor, data, data_cov, F0->getCaptureList().front()); C->process(); WOLF_TRACE("t = ", t, "; x = ", processor->getCurrentState().transpose()); @@ -372,7 +372,7 @@ TEST_F(ProcessorDiffDriveTest, angular) data(0) = -20.0 ; // one fifth of a turn of the left wheel, in reverse data(1) = 20.0 ; // one fifth of a turn of the right wheel, forward --> we'll turn left --> positive angle - auto C = std::make_shared<CaptureDiffDrive>(t, sensor, data, data_cov, F0); + auto C = std::make_shared<CaptureDiffDrive>(t, sensor, data, data_cov, F0->getCaptureList().front()); C->process(); WOLF_TRACE("t = ", t, "; x = ", processor->getCurrentState().transpose()); -- GitLab