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
f1724ced
Commit
f1724ced
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Improve debug info
parent
787543d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!157
Kfpackmanager
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/frame_base.cpp
+6
-4
6 additions, 4 deletions
src/frame_base.cpp
src/problem.cpp
+2
-1
2 additions, 1 deletion
src/problem.cpp
src/processor_tracker.cpp
+1
-1
1 addition, 1 deletion
src/processor_tracker.cpp
src/processor_tracker_feature.cpp
+6
-0
6 additions, 0 deletions
src/processor_tracker_feature.cpp
with
15 additions
and
6 deletions
src/frame_base.cpp
+
6
−
4
View file @
f1724ced
...
...
@@ -26,11 +26,11 @@ FrameBase::FrameBase(const TimeStamp& _ts, StateBlockPtr _p_ptr, StateBlockPtr _
if
(
isKey
()
)
{
WOLF_
INFO
(
"constructed +
KF"
,
this
->
id
()
);
WOLF_
DEBUG
(
"New
KF"
,
this
->
id
()
);
}
else
{
WOLF_
INFO
(
"constructed +
F"
,
this
->
id
()
);
WOLF_
DEBUG
(
"New
F"
,
this
->
id
()
);
}
}
...
...
@@ -49,11 +49,11 @@ FrameBase::FrameBase(const FrameType & _tp, const TimeStamp& _ts, StateBlockPtr
if
(
isKey
()
)
{
WOLF_
INFO
(
"constructed +
KF"
,
this
->
id
()
);
WOLF_
DEBUG
(
"New
KF"
,
this
->
id
()
);
}
else
{
WOLF_
INFO
(
"constructed +
F"
,
this
->
id
()
);
WOLF_
DEBUG
(
"New
F"
,
this
->
id
()
);
}
}
...
...
@@ -132,6 +132,8 @@ void FrameBase::setKey()
getTrajectoryPtr
()
->
setLastKeyFramePtr
(
shared_from_this
());
getTrajectoryPtr
()
->
sortFrame
(
shared_from_this
());
WOLF_DEBUG
(
"Set KF"
,
this
->
id
());
}
}
...
...
This diff is collapsed.
Click to expand it.
src/problem.cpp
+
2
−
1
View file @
f1724ced
...
...
@@ -330,7 +330,8 @@ bool Problem::permitKeyFrame(ProcessorBasePtr _processor_ptr)
void
Problem
::
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
ProcessorBasePtr
_processor_ptr
,
const
Scalar
&
_time_tolerance
)
{
//std::cout << "Problem::keyFrameCallback: processor " << _processor_ptr->getName() << std::endl;
WOLF_DEBUG
((
_processor_ptr
->
isMotion
()
?
"PM "
:
"PT "
),
_processor_ptr
->
getName
(),
": KF"
,
_keyframe_ptr
->
id
(),
" Callback emitted with ts = "
,
_keyframe_ptr
->
getTimeStamp
());
for
(
auto
sensor
:
hardware_ptr_
->
getSensorList
())
for
(
auto
processor
:
sensor
->
getProcessorList
())
if
(
processor
&&
(
processor
!=
_processor_ptr
)
)
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.cpp
+
1
−
1
View file @
f1724ced
...
...
@@ -53,7 +53,7 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
KFPackPtr
pack
=
selectPack
(
incoming_ptr_
);
kf_pack_buffer_
.
removeUpTo
(
incoming_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
()
);
// Append incoming to KF
pack
->
key_frame
->
addCapture
(
incoming_ptr_
);
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker_feature.cpp
+
6
−
0
View file @
f1724ced
...
...
@@ -151,6 +151,12 @@ void ProcessorTrackerFeature::establishConstraints()
match
.
first
->
addConstraint
(
ctr
);
match
.
second
->
feature_ptr_
->
addConstrainedBy
(
ctr
);
}
for
(
auto
match
:
matches_origin_from_last_
)
{
WOLF_DEBUG
(
"Constraint: track: "
,
match
.
second
->
feature_ptr_
->
trackId
()
,
" origin: "
,
match
.
second
->
feature_ptr_
->
id
()
,
" from last: "
,
match
.
first
->
id
()
);
}
}
}
// namespace wolf
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