From 939be38b47187c1fcb980f306eb3940657afc597 Mon Sep 17 00:00:00 2001 From: Mederic Fourmy <mederic.fourmy@gmail.com> Date: Wed, 18 May 2022 14:28:11 +0200 Subject: [PATCH] Remove voteForKeyframe message each time --- src/processor/processor_tracker_landmark_object.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/processor/processor_tracker_landmark_object.cpp b/src/processor/processor_tracker_landmark_object.cpp index 04545dc..b0e0dc3 100644 --- a/src/processor/processor_tracker_landmark_object.cpp +++ b/src/processor/processor_tracker_landmark_object.cpp @@ -162,8 +162,6 @@ unsigned int ProcessorTrackerLandmarkObject::detectNewFeatures(const int& _max_n bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const { - WOLF_INFO("voteForKeyFrame!") - // A few variables to examine the state of the system // Feature detection wise bool too_few_detections_last = detections_last_.size() < min_features_for_keyframe_; @@ -194,12 +192,12 @@ bool ProcessorTrackerLandmarkObject::voteForKeyFrame() const // 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 if (enough_time_vote && too_few_detections_incoming){ - WOLF_INFO("too_few_detections_incoming") + WOLF_INFO("voteForKeyFrame: too_few_detections_incoming") return true; } // - the time elapsed since ORIGIN is too long if (too_long_since_origin_KF){ - WOLF_INFO("too_long_since_origin_KF") + WOLF_INFO("voteForKeyFrame: too_long_since_origin_KF") return true; } -- GitLab