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
f8a9997e
Commit
f8a9997e
authored
8 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Device::clone
parent
6c34a0ca
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
+8
-0
8 additions, 0 deletions
include/hpp/manipulation/device.hh
src/device.cc
+8
-1
8 additions, 1 deletion
src/device.cc
with
16 additions
and
1 deletion
include/hpp/manipulation/device.hh
+
8
−
0
View file @
f8a9997e
...
...
@@ -68,6 +68,8 @@ namespace hpp {
void
setRobotRootPosition
(
const
std
::
string
&
robotName
,
const
Transform3f
&
positionWRTParentJoint
);
virtual
pinocchio
::
DevicePtr_t
clone
()
const
;
/// \name Collisions
/// \{
...
...
@@ -95,6 +97,12 @@ namespace hpp {
self_
=
self
;
}
void
initCopy
(
const
DeviceWkPtr_t
&
self
,
const
Device
&
other
)
{
Parent_t
::
initCopy
(
self
,
other
);
self_
=
self
;
}
private
:
DeviceWkPtr_t
self_
;
...
...
This diff is collapsed.
Click to expand it.
src/device.cc
+
8
−
1
View file @
f8a9997e
...
...
@@ -32,6 +32,14 @@ namespace hpp {
using
se3
::
Frame
;
using
se3
::
FrameIndex
;
pinocchio
::
DevicePtr_t
Device
::
clone
()
const
{
Device
*
ptr
=
new
Device
(
*
this
);
DevicePtr_t
shPtr
(
ptr
);
ptr
->
initCopy
(
shPtr
,
*
this
);
return
shPtr
;
}
void
Device
::
setRobotRootPosition
(
const
std
::
string
&
rn
,
const
Transform3f
&
t
)
{
...
...
@@ -99,6 +107,5 @@ namespace hpp {
Containers_t
::
print
<
GripperPtr_t
>
(
os
);
return
os
;
}
}
// namespace manipulation
}
// namespace hpp
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