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
cb6c9d3b
Commit
cb6c9d3b
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Guard WOLF_DEBUG in case of nullptr
parent
4c04da3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!160
Kfpackmanager
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/problem.cpp
+10
-3
10 additions, 3 deletions
src/problem.cpp
with
10 additions
and
3 deletions
src/problem.cpp
+
10
−
3
View file @
cb6c9d3b
...
@@ -330,11 +330,18 @@ bool Problem::permitKeyFrame(ProcessorBasePtr _processor_ptr)
...
@@ -330,11 +330,18 @@ bool Problem::permitKeyFrame(ProcessorBasePtr _processor_ptr)
void
Problem
::
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
ProcessorBasePtr
_processor_ptr
,
const
Scalar
&
_time_tolerance
)
void
Problem
::
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
ProcessorBasePtr
_processor_ptr
,
const
Scalar
&
_time_tolerance
)
{
{
WOLF_DEBUG
((
_processor_ptr
->
isMotion
()
?
"PM "
:
"PT "
),
_processor_ptr
->
getName
(),
": KF"
,
_keyframe_ptr
->
id
(),
" Callback emitted with ts = "
,
_keyframe_ptr
->
getTimeStamp
());
if
(
_processor_ptr
)
{
WOLF_DEBUG
((
_processor_ptr
->
isMotion
()
?
"PM "
:
"PT "
),
_processor_ptr
->
getName
(),
": KF"
,
_keyframe_ptr
->
id
(),
" Callback emitted with ts = "
,
_keyframe_ptr
->
getTimeStamp
());
}
else
{
WOLF_DEBUG
(
"External callback: KF"
,
_keyframe_ptr
->
id
(),
" Callback emitted with ts = "
,
_keyframe_ptr
->
getTimeStamp
());
}
for
(
auto
sensor
:
hardware_ptr_
->
getSensorList
())
for
(
auto
sensor
:
hardware_ptr_
->
getSensorList
())
for
(
auto
processor
:
sensor
->
getProcessorList
())
for
(
auto
processor
:
sensor
->
getProcessorList
())
if
(
processor
&&
(
processor
!=
_processor_ptr
)
)
if
(
processor
&&
(
processor
!=
_processor_ptr
)
)
processor
->
keyFrameCallback
(
_keyframe_ptr
,
_time_tolerance
);
processor
->
keyFrameCallback
(
_keyframe_ptr
,
_time_tolerance
);
}
}
...
...
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