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
Guilhem Saurel
hpp-fcl
Commits
7108b747
Commit
7108b747
authored
Nov 14, 2019
by
Joseph Mirabel
Browse files
[Python] Add StdVec_DistanceResult and StdVec_CollisionResult
parent
cdb0a72d
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/collision.cc
View file @
7108b747
...
...
@@ -92,6 +92,10 @@ void exposeCollisionAPI ()
.
def
(
"clear"
,
&
CollisionResult
::
clear
)
;
class_
<
std
::
vector
<
CollisionResult
>
>
(
"CollisionResult"
)
.
def
(
vector_indexing_suite
<
std
::
vector
<
CollisionResult
>
>
())
;
def
(
"collide"
,
static_cast
<
std
::
size_t
(
*
)(
const
CollisionObject
*
,
const
CollisionObject
*
,
const
CollisionRequest
&
,
CollisionResult
&
)
>
(
&
collide
));
def
(
"collide"
,
static_cast
<
std
::
size_t
(
*
)(
...
...
python/distance.cc
View file @
7108b747
...
...
@@ -33,6 +33,7 @@
// POSSIBILITY OF SUCH DAMAGE.
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "fcl.hh"
...
...
@@ -73,6 +74,10 @@ void exposeDistanceAPI ()
.
def
(
"clear"
,
&
DistanceResult
::
clear
)
;
class_
<
std
::
vector
<
DistanceResult
>
>
(
"StdVec_DistanceResult"
)
.
def
(
vector_indexing_suite
<
std
::
vector
<
DistanceResult
>
>
())
;
def
(
"distance"
,
static_cast
<
FCL_REAL
(
*
)(
const
CollisionObject
*
,
const
CollisionObject
*
,
const
DistanceRequest
&
,
DistanceResult
&
)
>
(
&
distance
));
def
(
"distance"
,
static_cast
<
FCL_REAL
(
*
)(
...
...
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