Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-manipulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Humanoid Path Planner
hpp-manipulation
Commits
1c8f22d9
Commit
1c8f22d9
authored
1 month ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
[Device] De-inline constructors
parent
ca1b8b3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/hpp/manipulation/device.hh
+2
-7
2 additions, 7 deletions
include/hpp/manipulation/device.hh
src/device.cc
+11
-0
11 additions, 0 deletions
src/device.cc
with
13 additions
and
7 deletions
include/hpp/manipulation/device.hh
+
2
−
7
View file @
1c8f22d9
...
...
@@ -51,12 +51,7 @@ class HPP_MANIPULATION_DLLAPI Device : public pinocchio::HumanoidRobot {
/// Constructor
/// \param name of the new instance,
static
DevicePtr_t
create
(
const
std
::
string
&
name
)
{
Device
*
ptr
=
new
Device
(
name
);
DevicePtr_t
shPtr
(
ptr
);
ptr
->
init
(
shPtr
);
return
shPtr
;
}
static
DevicePtr_t
create
(
const
std
::
string
&
name
);
DevicePtr_t
self
()
const
{
return
self_
.
lock
();
}
...
...
@@ -84,7 +79,7 @@ class HPP_MANIPULATION_DLLAPI Device : public pinocchio::HumanoidRobot {
/// \param name of the new instance,
/// \param robot Robots that manipulate objects,
/// \param objects Set of objects manipulated by the robot.
Device
(
const
std
::
string
&
name
)
:
Parent_t
(
name
)
{}
Device
(
const
std
::
string
&
name
)
;
void
init
(
const
DeviceWkPtr_t
&
self
)
{
Parent_t
::
init
(
self
);
...
...
This diff is collapsed.
Click to expand it.
src/device.cc
+
11
−
0
View file @
1c8f22d9
...
...
@@ -43,6 +43,17 @@ namespace hpp {
namespace
manipulation
{
using
::
pinocchio
::
Frame
;
DevicePtr_t
Device
::
create
(
const
std
::
string
&
name
)
{
Device
*
ptr
=
new
Device
(
name
);
DevicePtr_t
shPtr
(
ptr
);
ptr
->
init
(
shPtr
);
return
shPtr
;
}
Device
::
Device
(
const
std
::
string
&
name
)
:
Parent_t
(
name
)
{
}
pinocchio
::
DevicePtr_t
Device
::
clone
()
const
{
Device
*
ptr
=
new
Device
(
*
this
);
DevicePtr_t
shPtr
(
ptr
);
...
...
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