From 0024df037948aa57ba891d185f858fcad40dc707 Mon Sep 17 00:00:00 2001 From: joanvallve <jvallve@iri.upc.edu> Date: Mon, 3 Feb 2025 11:19:11 +0100 Subject: [PATCH] new Buffer API --- src/processor/processor_compass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processor/processor_compass.cpp b/src/processor/processor_compass.cpp index 9b2b6ab81..24fdda220 100644 --- a/src/processor/processor_compass.cpp +++ b/src/processor/processor_compass.cpp @@ -49,7 +49,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture) // Note that more than one processor can be emplacing frames, so an older // frame can arrive later than this one. else - buffer_capture_.emplace(_capture->getTimeStamp(), _capture); + buffer_capture_.emplace(_capture); } void ProcessorCompass::processKeyFrame(FrameBasePtr _frame) @@ -68,7 +68,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame) else if (buffer_capture_.selectLastAfter(_frame->getTimeStamp(), getTimeTolerance()) == nullptr) { // store frame - buffer_frame_.emplace(_frame->getTimeStamp(), _frame); + buffer_frame_.emplace(_frame); } // Otherwise: There are captures more recent than the frame but none that // match with it -> discard frame -- GitLab