Skip to content
Snippets Groups Projects
Commit 312a8d33 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

automatical linking when KF callback

parent 9941412d
No related branches found
No related tags found
1 merge request!274Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
This commit is part of merge request !274. Comments created here will be created in the context of that merge request.
...@@ -132,10 +132,8 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr) ...@@ -132,10 +132,8 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
// Capture last_ is added to the new keyframe // Capture last_ is added to the new keyframe
FrameBasePtr last_old_frame = last_ptr_->getFrame(); FrameBasePtr last_old_frame = last_ptr_->getFrame();
last_old_frame->unlinkCapture(last_ptr_); last_ptr_->link(pack->key_frame); // automatically calling last_ptr_->unlink();
last_old_frame->remove(); last_old_frame->remove();
// pack->key_frame->addCapture(last_ptr_);
last_ptr_->link(pack->key_frame);
// Create new frame // Create new frame
FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp()); FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp());
......
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