Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
objectslam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
objectslam
Commits
939be38b
Commit
939be38b
authored
3 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Remove voteForKeyframe message each time
parent
a1db8ed5
No related branches found
No related tags found
1 merge request
!1
Resolve "Adapt to core cmake refactor"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_tracker_landmark_object.cpp
+2
-4
2 additions, 4 deletions
src/processor/processor_tracker_landmark_object.cpp
with
2 additions
and
4 deletions
src/processor/processor_tracker_landmark_object.cpp
+
2
−
4
View file @
939be38b
...
@@ -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
;
}
}
...
...
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