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

Reduce API of PM::splitBuffer

parent 8a21a73f
No related branches found
No related tags found
2 merge requests!436Release to start wolf public,!433After 2nd RA-L submission
......@@ -272,8 +272,7 @@ class ProcessorMotion : public ProcessorBase, public MotionProvider
void integrateOneStep();
void reintegrateBuffer(CaptureMotionPtr _capture_ptr) const;
void splitBuffer(const wolf::CaptureMotionPtr& capture_source,
TimeStamp ts_split,
const FrameBasePtr& keyframe_target,
const TimeStamp ts_split,
const wolf::CaptureMotionPtr& capture_target) const;
/** Pre-process incoming Capture
......
......@@ -116,8 +116,7 @@ void ProcessorMotion::mergeCaptures(CaptureMotionConstPtr cap_prev,
}
void ProcessorMotion::splitBuffer(const CaptureMotionPtr& _capture_source,
TimeStamp _ts_split,
const FrameBasePtr& _keyframe_target,
const TimeStamp _ts_split,
const CaptureMotionPtr& _capture_target) const
{
/** we are doing this:
......@@ -300,7 +299,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
// split the buffer
// and give the part of the buffer before the new keyframe to the capture for the KF callback
splitBuffer(capture_existing, timestamp_from_callback, keyframe_from_callback, capture_for_keyframe_callback);
splitBuffer(capture_existing, timestamp_from_callback, capture_for_keyframe_callback);
// create motion feature and add it to the capture
auto feature_new = emplaceFeature(capture_for_keyframe_callback);
......@@ -393,7 +392,7 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
// split the buffer
// and give the part of the buffer before the new keyframe to the capture for the KF callback
splitBuffer(capture_existing, timestamp_from_callback, keyframe_from_callback, capture_for_keyframe_callback);
splitBuffer(capture_existing, timestamp_from_callback, capture_for_keyframe_callback);
// create motion feature and add it to the capture
auto feature_for_keyframe_callback = emplaceFeature(capture_for_keyframe_callback);
......
......@@ -49,12 +49,10 @@ class ProcessorOdom2dPublic : public ProcessorOdom2d
void splitBuffer(const wolf::CaptureMotionPtr& capture_source,
TimeStamp ts_split,
const FrameBasePtr& keyframe_target,
const wolf::CaptureMotionPtr& capture_target)
{
ProcessorOdom2d::splitBuffer(capture_source,
ts_split,
keyframe_target,
capture_target);
}
};
......@@ -347,7 +345,6 @@ TEST_F(ProcessorMotion_test, mergeCaptures)
processor->splitBuffer(C_source,
t_target,
F_target,
C_target);
C_target->getBuffer().print(1,1,1,0);
......@@ -421,7 +418,6 @@ TEST_F(ProcessorMotion_test, splitBufferAutoPrior)
processor->splitBuffer(C_source,
t_target,
F_target,
C_target);
C_target->getBuffer().print(1,1,1,0);
......@@ -466,7 +462,6 @@ TEST_F(ProcessorMotion_test, splitBufferFactorPrior)
processor->splitBuffer(C_source,
t_target,
F_target,
C_target);
C_target->getBuffer().print(1,1,1,0);
......@@ -511,7 +506,6 @@ TEST_F(ProcessorMotion_test, splitBufferFixPrior)
processor->splitBuffer(C_source,
t_target,
F_target,
C_target);
C_target->getBuffer().print(1,1,1,0);
......
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