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
3c4f6037
Commit
3c4f6037
authored
13 years ago
by
jpan
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
https://kforge.ros.org/fcl/fcl_ros@21
253336fb-580f-4252-a368-f3cef5a2a82b
parent
003f1c35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
trunk/fcl/src/collision.cpp
+6
-1
6 additions, 1 deletion
trunk/fcl/src/collision.cpp
trunk/fcl/test/test_core_broad_phase.cpp
+1
-0
1 addition, 0 deletions
trunk/fcl/test/test_core_broad_phase.cpp
with
7 additions
and
1 deletion
trunk/fcl/src/collision.cpp
+
6
−
1
View file @
3c4f6037
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
namespace
fcl
namespace
fcl
{
{
static
CollisionFunctionMatrix
CollisionFunctionLookTable
;
static
CollisionFunctionMatrix
CollisionFunctionLookTable
;
int
collide
(
const
CollisionObject
*
o1
,
const
CollisionObject
*
o2
,
int
collide
(
const
CollisionObject
*
o1
,
const
CollisionObject
*
o2
,
...
@@ -62,6 +61,12 @@ int collide(const CollisionObject* o1, const CollisionObject* o2,
...
@@ -62,6 +61,12 @@ int collide(const CollisionObject* o1, const CollisionObject* o2,
const
OBJECT_TYPE
object_type2
=
o2
->
getObjectType
();
const
OBJECT_TYPE
object_type2
=
o2
->
getObjectType
();
const
NODE_TYPE
node_type2
=
o2
->
getNodeType
();
const
NODE_TYPE
node_type2
=
o2
->
getNodeType
();
if
(
!
CollisionFunctionLookTable
.
collision_matrix
[
node_type1
][
node_type2
])
{
std
::
cerr
<<
"Warning: collision function between node type "
<<
node_type1
<<
" and node type "
<<
node_type2
<<
" is not supported"
<<
std
::
endl
;
return
0
;
}
if
(
object_type1
==
OT_GEOM
&&
object_type2
==
OT_GEOM
)
if
(
object_type1
==
OT_GEOM
&&
object_type2
==
OT_GEOM
)
{
{
...
...
This diff is collapsed.
Click to expand it.
trunk/fcl/test/test_core_broad_phase.cpp
+
1
−
0
View file @
3c4f6037
...
@@ -126,6 +126,7 @@ TEST(test_core, broad_phase_collision)
...
@@ -126,6 +126,7 @@ TEST(test_core, broad_phase_collision)
ASSERT_TRUE
(
query_res1
==
query_res4
);
ASSERT_TRUE
(
query_res1
==
query_res4
);
}
}
for
(
unsigned
int
i
=
0
;
i
<
env
.
size
();
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
env
.
size
();
++
i
)
delete
env
[
i
];
delete
env
[
i
];
for
(
unsigned
int
i
=
0
;
i
<
query
.
size
();
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
query
.
size
();
++
i
)
...
...
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