Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-model
Commits
e3782bce
Commit
e3782bce
authored
Dec 23, 2014
by
Florent Lamiraux
Browse files
Do not copy outer objects when cloning a body
- this does not make any sense.
parent
1b9f4045
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/body.cc
View file @
e3782bce
...
...
@@ -79,21 +79,11 @@ namespace hpp {
itObj
!=
collisionInnerObjects_
.
end
();
++
itObj
)
{
newBody
->
collisionInnerObjects_
.
push_back
((
*
itObj
)
->
clone
(
joint
));
}
for
(
ObjectVector_t
::
const_iterator
itObj
=
collisionOuterObjects_
.
begin
();
itObj
!=
collisionOuterObjects_
.
end
();
++
itObj
)
{
newBody
->
collisionOuterObjects_
.
push_back
((
*
itObj
)
->
clone
(
joint
));
}
for
(
ObjectVector_t
::
const_iterator
itObj
=
distanceInnerObjects_
.
begin
();
itObj
!=
distanceInnerObjects_
.
end
();
++
itObj
)
{
newBody
->
distanceInnerObjects_
.
push_back
((
*
itObj
)
->
clone
(
joint
));
}
for
(
ObjectVector_t
::
const_iterator
itObj
=
distanceOuterObjects_
.
begin
();
itObj
!=
distanceOuterObjects_
.
end
();
++
itObj
)
{
newBody
->
distanceOuterObjects_
.
push_back
((
*
itObj
)
->
clone
(
joint
));
}
return
newBody
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment