Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
vision
Commits
869a72a6
Commit
869a72a6
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Print a bar in Terminal with the number of tracks
parent
c0f86a08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!36
After cmake and const refactor
,
!28
Resolve "Building a new visual odometry system"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_visual_odometry.cpp
+11
-2
11 additions, 2 deletions
src/processor/processor_visual_odometry.cpp
with
11 additions
and
2 deletions
src/processor/processor_visual_odometry.cpp
+
11
−
2
View file @
869a72a6
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment