Skip to content
Snippets Groups Projects
Commit 939be38b authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

Remove voteForKeyframe message each time

parent a1db8ed5
No related branches found
No related tags found
1 merge request!1Resolve "Adapt to core cmake refactor"
...@@ -162,8 +162,6 @@ unsigned int ProcessorTrackerLandmarkObject::detectNewFeatures(const int& _max_n ...@@ -162,8 +162,6 @@ unsigned int ProcessorTrackerLandmarkObject::detectNewFeatures(const int& _max_n
bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const
{ {
WOLF_INFO("voteForKeyFrame!")
// A few variables to examine the state of the system // A few variables to examine the state of the system
// Feature detection wise // Feature detection wise
bool too_few_detections_last = detections_last_.size() < min_features_for_keyframe_; bool too_few_detections_last = detections_last_.size() < min_features_for_keyframe_;
...@@ -194,12 +192,12 @@ bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const ...@@ -194,12 +192,12 @@ bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const
// 2 cases in which we want to vote for a Keyframe: // 2 cases in which we want to vote for a Keyframe:
// - number of detections in INCOMING are too few and enough time has passed since ORIGIN // - number of detections in INCOMING are too few and enough time has passed since ORIGIN
if (enough_time_vote && too_few_detections_incoming){ if (enough_time_vote && too_few_detections_incoming){
WOLF_INFO("too_few_detections_incoming") WOLF_INFO("voteForKeyFrame: too_few_detections_incoming")
return true; return true;
} }
// - the time elapsed since ORIGIN is too long // - the time elapsed since ORIGIN is too long
if (too_long_since_origin_KF){ if (too_long_since_origin_KF){
WOLF_INFO("too_long_since_origin_KF") WOLF_INFO("voteForKeyFrame: too_long_since_origin_KF")
return true; return true;
} }
......
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