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

Print a bar in Terminal with the number of tracks

parent c0f86a08
No related branches found
No related tags found
2 merge requests!36After cmake and const refactor,!28Resolve "Building a new visual odometry system"
...@@ -299,6 +299,14 @@ void ProcessorVisualOdometry::preProcess() ...@@ -299,6 +299,14 @@ void ProcessorVisualOdometry::preProcess()
auto dt_preprocess = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - t1).count(); auto dt_preprocess = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - t1).count();
// print a bar with the number of active tracks in incoming
std::string s;
for (int i = 0; i<capture_image_incoming_->getKeyPoints().size(); i++)
{
s += "#";
}
WOLF_INFO("TRACKS: ", s);
WOLF_INFO( "dt_preprocess (ms): " , dt_preprocess ); WOLF_INFO( "dt_preprocess (ms): " , dt_preprocess );
return; return;
...@@ -514,6 +522,9 @@ void ProcessorVisualOdometry::postProcess() ...@@ -514,6 +522,9 @@ void ProcessorVisualOdometry::postProcess()
else else
++track_it; ++track_it;
} }
// print a blank line
WOLF_INFO("");
} }
bool ProcessorVisualOdometry::voteForKeyFrame() const bool ProcessorVisualOdometry::voteForKeyFrame() const
...@@ -530,8 +541,6 @@ bool ProcessorVisualOdometry::voteForKeyFrame() const ...@@ -530,8 +541,6 @@ bool ProcessorVisualOdometry::voteForKeyFrame() const
vote = vote || incoming_ptr_->getFeatureList().size() < params_visual_odometry_->min_features_for_keyframe; vote = vote || incoming_ptr_->getFeatureList().size() < params_visual_odometry_->min_features_for_keyframe;
std::cout << "vote " << vote << std::endl;
return vote; return vote;
} }
......
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