Skip to content
GitLab
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-fcl
Commits
c8088f71
Verified
Commit
c8088f71
authored
Mar 26, 2020
by
Justin Carpentier
Browse files
python: fix return type using new EigenPy features
parent
b3345d80
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/collision-geometries.cc
View file @
c8088f71
...
...
@@ -144,9 +144,7 @@ void exposeShapes ()
.def (dv::init<Box>(arg("
self
")))
.def (dv::init<Box, FCL_REAL,FCL_REAL,FCL_REAL>(args("
self
","
x
","
y
","
z
")))
.def (dv::init<Box, const Vec3f&>(args("
self
","
side
")))
.def_readwrite("
halfSide
",
&Box::halfSide,
doxygen::class_attrib_doc<Box>("
halfSide
"))
.DEF_RW_CLASS_ATTRIB(Box,halfSide)
;
class_ <Capsule, bases<ShapeBase>, shared_ptr<Capsule> >
...
...
python/collision.cc
View file @
c8088f71
...
...
@@ -104,14 +104,8 @@ void exposeCollisionAPI ()
.
DEF_RO_CLASS_ATTRIB
(
Contact
,
o2
)
.
DEF_RW_CLASS_ATTRIB
(
Contact
,
b1
)
.
DEF_RW_CLASS_ATTRIB
(
Contact
,
b2
)
.
add_property
(
"normal"
,
make_getter
(
&
Contact
::
normal
,
return_value_policy
<
return_by_value
>
()),
make_setter
(
&
Contact
::
normal
,
return_value_policy
<
return_by_value
>
()),
doxygen
::
class_attrib_doc
<
Contact
>
(
"normal"
))
.
add_property
(
"pos"
,
make_getter
(
&
Contact
::
pos
,
return_value_policy
<
return_by_value
>
()),
make_setter
(
&
Contact
::
pos
,
return_value_policy
<
return_by_value
>
()),
doxygen
::
class_attrib_doc
<
Contact
>
(
"pos"
))
.
DEF_RW_CLASS_ATTRIB
(
Contact
,
normal
)
.
DEF_RW_CLASS_ATTRIB
(
Contact
,
pos
)
.
DEF_RW_CLASS_ATTRIB
(
Contact
,
penetration_depth
)
.
def
(
self
==
self
)
.
def
(
self
!=
self
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment