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
daefc96e
Commit
daefc96e
authored
May 10, 2017
by
Joseph Mirabel
Committed by
Joseph Mirabel
May 10, 2017
Browse files
Make GJKSolver_indep return normal in world frame
parent
59725e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/narrowphase/narrowphase.h
View file @
daefc96e
...
...
@@ -82,7 +82,7 @@ struct GJKSolver_indep
w0
+=
shape
.
support
(
epa
.
result
.
c
[
i
]
->
d
,
0
)
*
epa
.
result
.
p
[
i
];
}
if
(
penetration_depth
)
*
penetration_depth
=
-
epa
.
depth
;
if
(
normal
)
*
normal
=
epa
.
normal
;
if
(
normal
)
*
normal
=
tf2
.
getRotation
()
*
epa
.
normal
;
if
(
contact_points
)
*
contact_points
=
tf1
.
transform
(
w0
-
epa
.
normal
*
(
epa
.
depth
*
0.5
));
return
true
;
}
...
...
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