diff --git a/test/gtest_processor_diff_drive.cpp b/test/gtest_processor_diff_drive.cpp index 2d758cc597e05ad1b7052651d3850ae1d68e0501..f697a948afecf8f83b8275220f30497bd6e75130 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());