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
3992e4f7
Commit
3992e4f7
authored
6 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
bug fix described in the corresponding issue
parent
2ff0efa1
No related branches found
No related tags found
1 merge request
!288
Resolve "ProcessorMotion KFcallback with recent TimeStamp"
Pipeline
#3728
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_motion.cpp
+4
-1
4 additions, 1 deletion
src/processor/processor_motion.cpp
with
4 additions
and
1 deletion
src/processor/processor_motion.cpp
+
4
−
1
View file @
3992e4f7
...
@@ -96,7 +96,6 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr)
...
@@ -96,7 +96,6 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr)
switch
(
processing_step_
)
switch
(
processing_step_
)
{
{
case
RUNNING_WITHOUT_PACK
:
case
RUNNING_WITHOUT_PACK
:
case
RUNNING_WITH_PACK_ON_ORIGIN
:
case
RUNNING_WITH_PACK_ON_ORIGIN
:
break
;
break
;
...
@@ -658,6 +657,10 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep()
...
@@ -658,6 +657,10 @@ PackKeyFramePtr ProcessorMotion::computeProcessingStep()
PackKeyFramePtr
pack
=
buffer_pack_kf_
.
selectFirstPackBefore
(
last_ptr_
,
params_motion_
->
time_tolerance
);
PackKeyFramePtr
pack
=
buffer_pack_kf_
.
selectFirstPackBefore
(
last_ptr_
,
params_motion_
->
time_tolerance
);
// ignore "future" KF to avoid MotionBuffer::split() error
if
(
pack
&&
pack
->
key_frame
->
getTimeStamp
()
>
last_ptr_
->
getBuffer
().
get
().
back
().
ts_
)
pack
=
nullptr
;
if
(
pack
)
if
(
pack
)
{
{
if
(
buffer_pack_kf_
.
checkTimeTolerance
(
pack
->
key_frame
->
getTimeStamp
(),
pack
->
time_tolerance
,
origin_ptr_
->
getTimeStamp
(),
params_motion_
->
time_tolerance
))
if
(
buffer_pack_kf_
.
checkTimeTolerance
(
pack
->
key_frame
->
getTimeStamp
(),
pack
->
time_tolerance
,
origin_ptr_
->
getTimeStamp
(),
params_motion_
->
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