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
a945da1b
Commit
a945da1b
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Rename buffer::add --> emplace
parent
c991d42d
No related branches found
No related tags found
3 merge requests
!39
release after RAL
,
!38
After 2nd RAL submission
,
!37
Resolve "Follow core 420"
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 @
a945da1b
...
...
@@ -50,7 +50,7 @@ void ProcessorCompass::processCapture(CaptureBasePtr _capture)
// Otherwise: store capture
// Note that more than one processor can be emplacing frames, so an older frame can arrive later than this one.
else
buffer_capture_
.
add
(
_capture
->
getTimeStamp
(),
_capture
);
buffer_capture_
.
emplace
(
_capture
->
getTimeStamp
(),
_capture
);
}
void
ProcessorCompass
::
processKeyFrame
(
FrameBasePtr
_frame
,
const
double
&
_time_tolerance
)
...
...
@@ -70,7 +70,7 @@ void ProcessorCompass::processKeyFrame(FrameBasePtr _frame, const double& _time_
else
if
(
buffer_capture_
.
selectLastAfter
(
_frame
->
getTimeStamp
(),
_time_tolerance
)
==
nullptr
)
{
// store frame
buffer_frame_
.
add
(
_frame
->
getTimeStamp
(),
_frame
);
buffer_frame_
.
emplace
(
_frame
->
getTimeStamp
(),
_frame
);
}
// Otherwise: There are captures more recent than the frame but none that 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