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
43e40c05
Commit
43e40c05
authored
Apr 01, 2020
by
Joseph Mirabel
Browse files
Set distance and contact point on failure in shape distance algo.
parent
481d232e
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/narrowphase/narrowphase.h
View file @
43e40c05
...
...
@@ -249,7 +249,11 @@ namespace fcl
// normal = tf1.getRotation() * epa.normal;
normal
=
tf2
.
getRotation
()
*
epa
.
normal
;
p1
=
p2
=
tf1
.
transform
(
w0
-
epa
.
normal
*
(
epa
.
depth
*
0.5
));
return
false
;
}
distance
=
-
std
::
numeric_limits
<
FCL_REAL
>::
max
();
gjk
.
getClosestPoints
(
shape
,
p1
,
p2
);
p1
=
p2
=
tf1
.
transform
(
p1
);
}
return
false
;
}
...
...
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