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
3a0cdbbc
Verified
Commit
3a0cdbbc
authored
Mar 26, 2020
by
Justin Carpentier
Browse files
python: fix call to constructor
parent
bbd52779
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/distance.cc
View file @
3a0cdbbc
...
...
@@ -66,6 +66,8 @@ using namespace boost::python;
using
namespace
hpp
::
fcl
;
namespace
dv
=
doxygen
::
visitor
;
struct
DistanceRequestWrapper
{
static
Vec3f
getNearestPoint1
(
const
DistanceResult
&
res
)
{
return
res
.
nearest_points
[
0
];
}
...
...
@@ -92,7 +94,8 @@ void exposeDistanceAPI ()
{
class_
<
DistanceResult
>
(
"DistanceResult"
,
doxygen
::
class_doc
<
DistanceResult
>
(),
init
<>
(
arg
(
"self"
),
"Default constructor"
))
no_init
)
.
def
(
dv
::
init
<
DistanceResult
>
())
.
DEF_RW_CLASS_ATTRIB
(
DistanceResult
,
min_distance
)
.
DEF_RW_CLASS_ATTRIB
(
DistanceResult
,
normal
)
//.def_readwrite ("nearest_points", &DistanceResult::nearest_points)
...
...
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