Skip to content
GitLab
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
1a43a995
Unverified
Commit
1a43a995
authored
Dec 13, 2019
by
Justin Carpentier
Committed by
GitHub
Dec 13, 2019
Browse files
test: additional fix for UnitRandom()
parent
4efe8355
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/capsule_capsule.cpp
View file @
1a43a995
...
...
@@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE(collision_capsule_capsule_aligned)
for
(
int
i
=
0
;
i
<
num_tests
;
++
i
)
{
Eigen
::
Matrix3d
rot
=
Eigen
::
Quaterniond
::
UnitRandom
(
).
toRotationMatrix
();
Eigen
::
Matrix3d
rot
=
Eigen
::
Quaterniond
(
Eigen
::
Vector4d
::
Random
().
normalized
()
).
toRotationMatrix
();
Eigen
::
Vector3d
trans
=
Eigen
::
Vector3d
::
Random
();
Transform3f
displacement
(
rot
,
trans
);
...
...
@@ -193,7 +193,7 @@ BOOST_AUTO_TEST_CASE(collision_capsule_capsule_aligned)
for
(
int
i
=
0
;
i
<
num_tests
;
++
i
)
{
Eigen
::
Matrix3d
rot
=
Eigen
::
Quaterniond
::
UnitRandom
(
).
toRotationMatrix
();
Eigen
::
Matrix3d
rot
=
Eigen
::
Quaterniond
(
Eigen
::
Vector4d
::
Random
().
normalized
()
).
toRotationMatrix
();
Eigen
::
Vector3d
trans
=
Eigen
::
Vector3d
::
Random
();
Transform3f
displacement
(
rot
,
trans
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment