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

Check for map existance before preocessKnown

parent 89dec6c4
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #12832 passed
......@@ -115,7 +115,8 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr)
// Process info
// TrackerFeature: We only process new features in Last, here last = nullptr, so we do not have anything to do.
// TrackerLandmark: If we have been given a map, all landmarks in the map are known. Process them.
processKnown();
if (not getProblem()->getMap()->getLandmarkList().empty())
processKnown();
// Issue KF callback with new KF
getProblem()->keyFrameCallback(keyframe, shared_from_this());
......@@ -158,7 +159,9 @@ void ProcessorTracker::processCapture(CaptureBasePtr _incoming_ptr)
// Process info
// TrackerLandmark: If we have been given a map, all landmarks in the map are known. Process them.
processKnown();
if (not getProblem()->getMap()->getLandmarkList().empty())
processKnown();
// Both Trackers: We have a last_ Capture with not enough features, so populate it.
processNew(params_tracker_->max_new_features);
......
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