Skip to content
Snippets Groups Projects

Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"

1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
@@ -132,10 +132,8 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
// Capture last_ is added to the new keyframe
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();
// pack->key_frame->addCapture(last_ptr_);
last_ptr_->link(pack->key_frame);
// Create new frame
FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp());
Loading