Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
wolf
Commits
34f7da37
Commit
34f7da37
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
980985f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!157
Kfpackmanager
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processor_tracker.cpp
+3
-2
3 additions, 2 deletions
src/processor_tracker.cpp
src/processor_tracker.h
+1
-1
1 addition, 1 deletion
src/processor_tracker.h
with
4 additions
and
3 deletions
src/processor_tracker.cpp
+
3
−
2
View file @
34f7da37
...
@@ -52,6 +52,8 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
...
@@ -52,6 +52,8 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
{
{
KFPackPtr
pack
=
selectPack
(
incoming_ptr_
);
KFPackPtr
pack
=
selectPack
(
incoming_ptr_
);
WOLF_DEBUG
(
"PT: KF"
,
pack
->
key_frame
->
id
()
,
" callback received at ts= "
,
pack
->
key_frame
->
getTimeStamp
().
get
()
);
// Append incoming to KF
// Append incoming to KF
pack
->
key_frame
->
addCapture
(
incoming_ptr_
);
pack
->
key_frame
->
addCapture
(
incoming_ptr_
);
...
@@ -116,7 +118,6 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
...
@@ -116,7 +118,6 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
last_old_frame
->
unlinkCapture
(
last_ptr_
);
last_old_frame
->
unlinkCapture
(
last_ptr_
);
last_old_frame
->
remove
();
last_old_frame
->
remove
();
pack
->
key_frame
->
addCapture
(
last_ptr_
);
pack
->
key_frame
->
addCapture
(
last_ptr_
);
WOLF_DEBUG
(
" --> appended last capture"
);
// Create new frame
// Create new frame
FrameBasePtr
frm
=
getProblem
()
->
emplaceFrame
(
NON_KEY_FRAME
,
incoming_ptr_
->
getTimeStamp
());
FrameBasePtr
frm
=
getProblem
()
->
emplaceFrame
(
NON_KEY_FRAME
,
incoming_ptr_
->
getTimeStamp
());
...
@@ -251,7 +252,7 @@ void ProcessorTracker::computeProcessingStep()
...
@@ -251,7 +252,7 @@ void ProcessorTracker::computeProcessingStep()
WOLF_WARN
(
"||*||"
);
WOLF_WARN
(
"||*||"
);
WOLF_INFO
(
" ... It seems you missed something!"
);
WOLF_INFO
(
" ... It seems you missed something!"
);
WOLF_INFO
(
"Pack's KF and last's KF have matching time stamps (i.e. below time tolerances)"
);
WOLF_INFO
(
"Pack's KF and last's KF have matching time stamps (i.e. below time tolerances)"
);
WOLF_INFO
(
"Check the following:"
);
WOLF_INFO
(
"Check the following
for correctness
:"
);
WOLF_INFO
(
" - You have all processors installed before starting receiving any data"
);
WOLF_INFO
(
" - You have all processors installed before starting receiving any data"
);
WOLF_INFO
(
" - You issued a problem->setPrior() after all processors are installed ---> "
,
(
getProblem
()
->
priorIsSet
()
?
"OK"
:
"NOK"
));
WOLF_INFO
(
" - You issued a problem->setPrior() after all processors are installed ---> "
,
(
getProblem
()
->
priorIsSet
()
?
"OK"
:
"NOK"
));
WOLF_INFO
(
" - You have configured all your processors with compatible time tolerances"
);
WOLF_INFO
(
" - You have configured all your processors with compatible time tolerances"
);
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.h
+
1
−
1
View file @
34f7da37
...
@@ -78,7 +78,7 @@ class ProcessorTracker : public ProcessorBase
...
@@ -78,7 +78,7 @@ class ProcessorTracker : public ProcessorBase
}
ProcessingStep
;
}
ProcessingStep
;
protected
:
protected
:
ProcessingStep
processing_step_
;
ProcessingStep
processing_step_
;
///< State machine controlling the processing step
CaptureBasePtr
origin_ptr_
;
///< Pointer to the origin of the tracker.
CaptureBasePtr
origin_ptr_
;
///< Pointer to the origin of the tracker.
CaptureBasePtr
last_ptr_
;
///< Pointer to the last tracked capture.
CaptureBasePtr
last_ptr_
;
///< Pointer to the last tracked capture.
CaptureBasePtr
incoming_ptr_
;
///< Pointer to the incoming capture being processed.
CaptureBasePtr
incoming_ptr_
;
///< Pointer to the incoming capture being processed.
...
...
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