From 0b88c4e65b15b04fda22edb44e48f4e3ad59074d Mon Sep 17 00:00:00 2001 From: Joan Sola <jsola@iri.upc.edu> Date: Mon, 5 Mar 2018 10:17:20 +0100 Subject: [PATCH] Arrange debug info --- src/processor_tracker.cpp | 2 +- src/processor_tracker_feature.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/processor_tracker.cpp b/src/processor_tracker.cpp index f268aaf3c..57b9d8719 100644 --- a/src/processor_tracker.cpp +++ b/src/processor_tracker.cpp @@ -112,7 +112,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr) KFPackPtr pack = selectPack( last_ptr_ ); kf_pack_buffer_.removeUpTo( last_ptr_->getTimeStamp() ); - WOLF_DEBUG( "PT: KF" , pack->key_frame->id() , " callback received at ts= " , pack->key_frame->getTimeStamp().get() ); + WOLF_DEBUG( "PT: KF" , pack->key_frame->id() , " callback received with ts= " , pack->key_frame->getTimeStamp().get() ); processKnown(); diff --git a/src/processor_tracker_feature.cpp b/src/processor_tracker_feature.cpp index faef28de8..e7da3b557 100644 --- a/src/processor_tracker_feature.cpp +++ b/src/processor_tracker_feature.cpp @@ -33,7 +33,7 @@ unsigned int ProcessorTrackerFeature::processNew(const unsigned int& _max_new_fe for (auto ftr : new_features_last_) { ftr->setTrackId( ftr->id() ); - WOLF_DEBUG("New track: ", ftr->trackId(), ", last: ", ftr->id()); + WOLF_DEBUG("Det track: ", ftr->trackId(), ", last: ", ftr->id()); } // Track new features from last to incoming. This will append new correspondences to matches_last_incoming @@ -46,12 +46,6 @@ unsigned int ProcessorTrackerFeature::processNew(const unsigned int& _max_new_fe WOLF_DEBUG("New track: ", ftr->trackId(), ", last: ", matches_last_from_incoming_[ftr]->feature_ptr_->id(), ", inc: ", ftr->id()); } - // Print all tracks - for (auto match : matches_last_from_incoming_) - { - WOLF_DEBUG("New total track: ", match.first->trackId(), ", last: ", match.second->feature_ptr_->id(), ", inc: ", match.first->id()); - } - // Append all new Features to the incoming Captures' list of Features incoming_ptr_->addFeatureList(new_features_incoming_); @@ -100,7 +94,7 @@ unsigned int ProcessorTrackerFeature::processKnown() // Print resulting list of matches for (auto match : matches_last_from_incoming_) { - WOLF_DEBUG("Known total track: ", match.first->trackId(), ", last: ", match.second->feature_ptr_->id(), ", inc: ", match.first->id()); + WOLF_DEBUG("Known track: ", match.first->trackId(), ", last: ", match.second->feature_ptr_->id(), ", inc: ", match.first->id()); } return matches_last_from_incoming_.size(); -- GitLab