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
Merge requests
!431
Resolve "Add time_tolerance field in Frame and remove PackKeyFrame"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add time_tolerance field in Frame and remove PackKeyFrame"
420-add-time_tolerance-field-in-frame-and-remove-packkeyframe
into
devel
Overview
0
Commits
12
Pipelines
10
Changes
4
Merged
Joan Solà Ortega
requested to merge
420-add-time_tolerance-field-in-frame-and-remove-packkeyframe
into
devel
3 years ago
Overview
0
Commits
12
Pipelines
10
Changes
4
Expand
Closes
#420 (closed)
Edited
3 years ago
by
Joan Solà Ortega
0
0
Merge request reports
Viewing commit
e96bd2e8
Prev
Next
Show latest version
4 files
+
24
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
e96bd2e8
Rename buffer::add --> emplace
· e96bd2e8
Joan Solà Ortega
authored
3 years ago
include/core/processor/processor_base.h
+
2
−
2
Options
@@ -126,7 +126,7 @@ public:
/**\brief Add a element to the buffer
*
*/
void
add
(
const
TimeStamp
&
_time_stamp
,
const
T
&
_element
);
//const double& _time_tolerance);
void
emplace
(
const
TimeStamp
&
_time_stamp
,
const
T
&
_element
);
//const double& _time_tolerance);
/** \brief returns the container with elements of the buffer
*
@@ -558,7 +558,7 @@ T Buffer<T>::selectLast()
}
template
<
typename
T
>
void
Buffer
<
T
>::
add
(
const
TimeStamp
&
_time_stamp
,
const
T
&
_element
)
void
Buffer
<
T
>::
emplace
(
const
TimeStamp
&
_time_stamp
,
const
T
&
_element
)
{
container_
.
emplace
(
_time_stamp
,
_element
);
}
Loading