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

commented proposed approach for aux frames in processor tracker

parent 79eaefe1
No related branches found
No related tags found
1 merge request!266Estimated frames
Pipeline #2888 passed
......@@ -196,6 +196,38 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
incoming_ptr_ = nullptr;
}
/* TODO: create an auxiliary frame
else if (voteForAuxFrame() && permittedAuxFrame())
{
// We create an Auxiliary Frame
// set AuxF on last
last_ptr_->getFrame()->setState(getProblem()->getState(last_ptr_->getTimeStamp()));
last_ptr_->getFrame()->setAuxiliary();
// make F; append incoming to new F
FrameBasePtr frm = getProblem()->emplaceFrame(NON_ESTIMATED, incoming_ptr_->getTimeStamp());
frm->addCapture(incoming_ptr_);
// Set state to the keyframe
last_ptr_->getFrame()->setState(getProblem()->getState(last_ptr_->getTimeStamp()));
// Establish factors
establishFactors();
// Call the new auxframe callback in order to let the ProcessorMotion to establish their factors
getProblem()->auxFrameCallback(last_ptr_->getFrame(), std::static_pointer_cast<ProcessorBase>(shared_from_this()), params_tracker_->time_tolerance);
// Advance this
last_ptr_->getFrame()->addCapture(incoming_ptr_); // Add incoming Capture to the tracker's last Frame
// do not remove! last_ptr_->remove();
incoming_ptr_->getFrame()->setTimeStamp(incoming_ptr_->getTimeStamp());
// Update pointers
advanceDerived();
last_ptr_ = incoming_ptr_;
incoming_ptr_ = nullptr;
}*/
else
{
// We do not create a KF
......
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