Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
imu
Commits
0024df03
Commit
0024df03
authored
5 months ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
new Buffer API
parent
02cfb878
No related branches found
Branches containing commit
No related tags found
1 merge request
!49
Draft: Resolve "Adapt to new sensor constructors in core"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_compass.cpp
+2
-2
2 additions, 2 deletions
src/processor/processor_compass.cpp
with
2 additions
and
2 deletions
src/processor/processor_compass.cpp
+
2
−
2
View file @
0024df03
...
@@ -49,7 +49,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture)
...
@@ -49,7 +49,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture)
// Note that more than one processor can be emplacing frames, so an older
// Note that more than one processor can be emplacing frames, so an older
// frame can arrive later than this one.
// frame can arrive later than this one.
else
else
buffer_capture_
.
emplace
(
_capture
->
getTimeStamp
(),
_capture
);
buffer_capture_
.
emplace
(
_capture
);
}
}
void
ProcessorCompass
::
processKeyFrame
(
FrameBasePtr
_frame
)
void
ProcessorCompass
::
processKeyFrame
(
FrameBasePtr
_frame
)
...
@@ -68,7 +68,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame)
...
@@ -68,7 +68,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame)
else
if
(
buffer_capture_
.
selectLastAfter
(
_frame
->
getTimeStamp
(),
getTimeTolerance
())
==
nullptr
)
else
if
(
buffer_capture_
.
selectLastAfter
(
_frame
->
getTimeStamp
(),
getTimeTolerance
())
==
nullptr
)
{
{
// store frame
// store frame
buffer_frame_
.
emplace
(
_frame
->
getTimeStamp
(),
_frame
);
buffer_frame_
.
emplace
(
_frame
);
}
}
// Otherwise: There are captures more recent than the frame but none that
// Otherwise: There are captures more recent than the frame but none that
// match with it -> discard frame
// match with it -> discard frame
...
...
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