Skip to content
Snippets Groups Projects
Commit fa9d8fbb authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Write state to last frame in processor tracker

parent afd81d94
No related branches found
No related tags found
No related merge requests found
Pipeline #4676 passed
...@@ -87,8 +87,9 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr) ...@@ -87,8 +87,9 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr)
// Issue KF callback with new KF // Issue KF callback with new KF
getProblem()->keyFrameCallback(kfrm, shared_from_this(), params_tracker_->time_tolerance); getProblem()->keyFrameCallback(kfrm, shared_from_this(), params_tracker_->time_tolerance);
// Update pointers
resetDerived(); resetDerived();
// Update pointers
origin_ptr_ = incoming_ptr_; origin_ptr_ = incoming_ptr_;
last_ptr_ = incoming_ptr_; last_ptr_ = incoming_ptr_;
incoming_ptr_ = nullptr; incoming_ptr_ = nullptr;
...@@ -175,9 +176,9 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr) ...@@ -175,9 +176,9 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr)
last_ptr_->getFrame()->setState(getProblem()->getState(last_ptr_->getTimeStamp())); last_ptr_->getFrame()->setState(getProblem()->getState(last_ptr_->getTimeStamp()));
last_ptr_->getFrame()->setKey(); last_ptr_->getFrame()->setKey();
// make F; append incoming to new F // // make F; append incoming to new F
FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp()); // FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp());
incoming_ptr_->link(frm); // incoming_ptr_->link(frm);
// Establish factors // Establish factors
establishFactors(); establishFactors();
...@@ -187,6 +188,11 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr) ...@@ -187,6 +188,11 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr)
// Update pointers // Update pointers
resetDerived(); resetDerived();
// make F; append incoming to new F
FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, last_ptr_->getFrame()->getState(), incoming_ptr_->getTimeStamp());
incoming_ptr_->link(frm);
origin_ptr_ = last_ptr_; origin_ptr_ = last_ptr_;
last_ptr_ = incoming_ptr_; last_ptr_ = incoming_ptr_;
incoming_ptr_ = nullptr; incoming_ptr_ = nullptr;
......
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