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
3d5d0e93
Commit
3d5d0e93
authored
9 years ago
by
Steve Tonneau
Committed by
Florent Lamiraux
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix build with octomap
parent
0ea409f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+8
-0
8 additions, 0 deletions
CMakeLists.txt
include/hpp/fcl/traversal/traversal_node_octree.h
+30
-0
30 additions, 0 deletions
include/hpp/fcl/traversal/traversal_node_octree.h
src/collision_func_matrix.cpp
+15
-8
15 additions, 8 deletions
src/collision_func_matrix.cpp
with
53 additions
and
8 deletions
CMakeLists.txt
+
8
−
0
View file @
3d5d0e93
...
...
@@ -53,6 +53,14 @@ set(BOOST_COMPONENTS
search_for_boost
()
# Optional dependencies
add_optional_dependency
(
"octomap >= 1.6"
)
if
(
OCTOMAP_INCLUDE_DIRS AND OCTOMAP_LIBRARY_DIRS
)
include_directories
(
${
OCTOMAP_INCLUDE_DIRS
}
)
link_directories
(
${
OCTOMAP_LIBRARY_DIRS
}
)
set
(
FCL_HAVE_OCTOMAP 1
)
message
(
STATUS
"FCL uses Octomap"
)
else
()
message
(
STATUS
"FCL does not use Octomap"
)
endif
()
# flann package ill defined: comment.
# add_optional_dependency("flann >= 1.7")
# if (${FLANN_FOUND})
...
...
This diff is collapsed.
Click to expand it.
include/hpp/fcl/traversal/traversal_node_octree.h
+
30
−
0
View file @
3d5d0e93
...
...
@@ -1041,6 +1041,11 @@ public:
return
false
;
}
bool
BVTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
otsolver
->
OcTreeIntersect
(
model1
,
model2
,
tf1
,
tf2
,
request
,
*
result
);
...
...
@@ -1073,6 +1078,11 @@ public:
return
-
1
;
}
bool
BVTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
)
const
{
otsolver
->
OcTreeDistance
(
model1
,
model2
,
tf1
,
tf2
,
request
,
*
result
);
...
...
@@ -1102,6 +1112,11 @@ public:
return
false
;
}
bool
BVTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
otsolver
->
OcTreeShapeIntersect
(
model2
,
*
model1
,
tf2
,
tf1
,
request
,
*
result
);
...
...
@@ -1133,6 +1148,11 @@ public:
return
false
;
}
bool
BVTesting
(
int
,
int
,
fcl
::
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
otsolver
->
OcTreeShapeIntersect
(
model1
,
*
model2
,
tf1
,
tf2
,
request
,
*
result
);
...
...
@@ -1222,6 +1242,11 @@ public:
return
false
;
}
bool
BVTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
otsolver
->
OcTreeMeshIntersect
(
model2
,
model1
,
tf2
,
tf1
,
request
,
*
result
);
...
...
@@ -1253,6 +1278,11 @@ public:
return
false
;
}
bool
BVTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
return
false
;
}
void
leafTesting
(
int
,
int
,
FCL_REAL
&
)
const
{
otsolver
->
OcTreeMeshIntersect
(
model1
,
model2
,
tf1
,
tf2
,
request
,
*
result
);
...
...
This diff is collapsed.
Click to expand it.
src/collision_func_matrix.cpp
+
15
−
8
View file @
3d5d0e93
...
...
@@ -60,7 +60,8 @@ std::size_t ShapeOcTreeCollide(const CollisionGeometry* o1, const Transform3f& t
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
return
result
.
numContacts
();
}
...
...
@@ -78,12 +79,13 @@ std::size_t OcTreeShapeCollide(const CollisionGeometry* o1, const Transform3f& t
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
return
result
.
numContacts
();
}
e
template
<
typename
NarrowPhaseSolver
>
template
<
typename
NarrowPhaseSolver
>
std
::
size_t
OcTreeCollide
(
const
CollisionGeometry
*
o1
,
const
Transform3f
&
tf1
,
const
CollisionGeometry
*
o2
,
const
Transform3f
&
tf2
,
const
NarrowPhaseSolver
*
nsolver
,
const
CollisionRequest
&
request
,
CollisionResult
&
result
)
...
...
@@ -96,7 +98,8 @@ std::size_t OcTreeCollide(const CollisionGeometry* o1, const Transform3f& tf1, c
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
return
result
.
numContacts
();
}
...
...
@@ -119,7 +122,8 @@ std::size_t OcTreeBVHCollide(const CollisionGeometry* o1, const Transform3f& tf1
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
no_cost_request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
Box
box
;
Transform3f
box_tf
;
...
...
@@ -140,7 +144,8 @@ std::size_t OcTreeBVHCollide(const CollisionGeometry* o1, const Transform3f& tf1
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
}
return
result
.
numContacts
();
...
...
@@ -164,7 +169,8 @@ std::size_t BVHOcTreeCollide(const CollisionGeometry* o1, const Transform3f& tf1
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
no_cost_request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
Box
box
;
Transform3f
box_tf
;
...
...
@@ -185,7 +191,8 @@ std::size_t BVHOcTreeCollide(const CollisionGeometry* o1, const Transform3f& tf1
OcTreeSolver
<
NarrowPhaseSolver
>
otsolver
(
nsolver
);
initialize
(
node
,
*
obj1
,
tf1
,
*
obj2
,
tf2
,
&
otsolver
,
request
,
result
);
collide
(
&
node
);
FCL_REAL
sqrDistance
=
0
;
collide
(
&
node
,
sqrDistance
);
}
return
result
.
numContacts
();
...
...
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