Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
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
gnss
Commits
232693c6
Commit
232693c6
authored
6 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Removed FactorBase::emplace() not used (factory)"
This reverts commit
e0555d44
.
parent
e0555d44
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/base/frame_base.h
+9
-9
9 additions, 9 deletions
include/base/frame_base.h
with
9 additions
and
9 deletions
include/base/frame_base.h
+
9
−
9
View file @
232693c6
...
...
@@ -140,8 +140,8 @@ class FrameBase : public NodeBase, public std::enable_shared_from_this<FrameBase
unsigned
int
getHits
()
const
;
FactorBasePtrList
&
getConstrainedByList
();
void
link
(
TrajectoryBasePtr
);
//
template<typename classType, typename... T>
//
static std::shared_ptr<FrameBase> emplace(TrajectoryBasePtr _ptr, T&&... all);
template
<
typename
classType
,
typename
...
T
>
static
std
::
shared_ptr
<
FrameBase
>
emplace
(
TrajectoryBasePtr
_ptr
,
T
&&
...
all
);
public:
static
FrameBasePtr
create_PO_2D
(
const
FrameType
&
_tp
,
...
...
@@ -166,13 +166,13 @@ class FrameBase : public NodeBase, public std::enable_shared_from_this<FrameBase
namespace
wolf
{
//
template<typename classType, typename... T>
//
std::shared_ptr<FrameBase> FrameBase::emplace(TrajectoryBasePtr _ptr, T&&... all)
//
{
//
FrameBasePtr frm = std::make_shared<classType>(std::forward<T>(all)...);
//
frm->link(_ptr);
//
return frm;
//
}
template
<
typename
classType
,
typename
...
T
>
std
::
shared_ptr
<
FrameBase
>
FrameBase
::
emplace
(
TrajectoryBasePtr
_ptr
,
T
&&
...
all
)
{
FrameBasePtr
frm
=
std
::
make_shared
<
classType
>
(
std
::
forward
<
T
>
(
all
)...);
frm
->
link
(
_ptr
);
return
frm
;
}
inline
unsigned
int
FrameBase
::
id
()
{
...
...
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