Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Stack Of Tasks
pinocchio
Commits
c6fbc151
Commit
c6fbc151
authored
8 years ago
by
fvalenza
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Python][hpp-fcl] Provide temporary operator== for DistanceResult. (#322)
parent
7e122c64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/python/geometry-data.hpp
+14
-0
14 additions, 0 deletions
bindings/python/geometry-data.hpp
with
14 additions
and
0 deletions
bindings/python/geometry-data.hpp
+
14
−
0
View file @
c6fbc151
...
@@ -28,6 +28,20 @@
...
@@ -28,6 +28,20 @@
#include
"pinocchio/bindings/python/data.hpp"
#include
"pinocchio/bindings/python/data.hpp"
#include
"pinocchio/bindings/python/geometry-model.hpp"
#include
"pinocchio/bindings/python/geometry-model.hpp"
namespace
fcl
{
// This operator is defined here temporary, as it is needed by vector_indexing_suite
// It has also been defined in hpp-fcl in a pending pull request.
// Once it has been integrated in releases of hpp-fcl, please remove this operator
inline
bool
operator
==
(
const
DistanceResult
&
dr1
,
const
DistanceResult
&
dr2
)
{
return
dr1
.
min_distance
==
dr2
.
min_distance
&&
dr1
.
o1
==
dr2
.
o1
&&
dr1
.
o2
==
dr2
.
o2
&&
dr1
.
nearest_points
[
0
]
==
dr2
.
nearest_points
[
0
]
&&
dr1
.
nearest_points
[
1
]
==
dr2
.
nearest_points
[
1
];
}
}
namespace
se3
namespace
se3
{
{
namespace
python
namespace
python
...
...
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