Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coal
coal
Commits
7108b747
Commit
7108b747
authored
5 years ago
by
Joseph Mirabel
Browse files
Options
Downloads
Patches
Plain Diff
[Python] Add StdVec_DistanceResult and StdVec_CollisionResult
parent
cdb0a72d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/collision.cc
+4
-0
4 additions, 0 deletions
python/collision.cc
python/distance.cc
+5
-0
5 additions, 0 deletions
python/distance.cc
with
9 additions
and
0 deletions
python/collision.cc
+
4
−
0
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
(
*
)(
...
...
This diff is collapsed.
Click to expand it.
python/distance.cc
+
5
−
0
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
(
*
)(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment