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
Stack Of Tasks
pinocchio
Commits
fdf192b2
Commit
fdf192b2
authored
Nov 19, 2019
by
Joseph Mirabel
Browse files
replaceCylinderByCapsule -> isCapsule
parent
d52fa8cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parsers/urdf/geometry.hxx
View file @
fdf192b2
...
...
@@ -56,8 +56,8 @@ namespace pinocchio
}
// BOOST_FOREACH
}
bool
replaceCylinderBy
Capsule
(
const
std
::
string
&
linkName
,
const
std
::
string
&
geomName
)
const
bool
is
Capsule
(
const
std
::
string
&
linkName
,
const
std
::
string
&
geomName
)
const
{
LinkMap_t
::
const_iterator
_link
=
links_
.
find
(
linkName
);
assert
(
_link
!=
links_
.
end
());
...
...
@@ -189,7 +189,7 @@ namespace pinocchio
// Use FCL capsules for cylinders
else
if
(
urdf_geometry
->
type
==
::
urdf
::
Geometry
::
CYLINDER
)
{
bool
capsule
=
tree
.
replaceCylinderBy
Capsule
(
linkName
,
geomName
);
bool
capsule
=
tree
.
is
Capsule
(
linkName
,
geomName
);
meshScale
<<
1
,
1
,
1
;
const
::
urdf
::
CylinderSharedPtr
collisionGeometry
=
::
urdf
::
dynamic_pointer_cast
<
::
urdf
::
Cylinder
>
(
urdf_geometry
);
...
...
Write
Preview
Markdown
is supported
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