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
Gabriele Buondonno
pinocchio
Commits
9b050520
Commit
9b050520
authored
Oct 02, 2017
by
jcarpent
Browse files
[Unit Test] Add test on the operation Ydense*S
parent
0e22da60
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/joint.cpp
View file @
9b050520
...
@@ -86,6 +86,14 @@ void test_joint_methods (JointModel & jmodel, typename JointModel::JointDataDeri
...
@@ -86,6 +86,14 @@ void test_joint_methods (JointModel & jmodel, typename JointModel::JointDataDeri
BOOST_CHECK_MESSAGE
(
vxS
.
isApprox
(
vxS_ref
),
std
::
string
(
error_prefix
+
"- Joint vxS operation "
));
BOOST_CHECK_MESSAGE
(
vxS
.
isApprox
(
vxS_ref
),
std
::
string
(
error_prefix
+
"- Joint vxS operation "
));
// Test Y*S
const
Inertia
Isparse
(
Inertia
::
Random
());
const
Inertia
::
Matrix6
Idense
(
Isparse
.
matrix
());
const
ConstraintDense
IsparseS
=
Isparse
*
jdata
.
S
;
const
ConstraintDense
IdenseS
=
Idense
*
jdata
.
S
;
BOOST_CHECK_MESSAGE
(
IdenseS
.
isApprox
(
IsparseS
),
std
::
string
(
error_prefix
+
"- Joint YS operation "
));
}
}
...
...
Write
Preview
Supports
Markdown
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