Skip to content
Snippets Groups Projects
Commit 4dc5237d authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix pointer to capture instead of frame

parent 55f4d95a
No related branches found
No related tags found
1 merge request!318CaptureMotion: replace origin_frame_ptr_ by capture_origin_ptr_.
Pipeline #4307 passed
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment