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
Gabriele Buondonno
pinocchio
Commits
7bdc54da
Commit
7bdc54da
authored
Sep 29, 2017
by
jcarpent
Browse files
[Test] Use random in dCCRBA unit test
parent
5f44dd57
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/crba.cpp
View file @
7bdc54da
...
...
@@ -137,8 +137,8 @@ BOOST_AUTO_TEST_CASE (test_ccrb)
Eigen
::
VectorXd
q
=
Eigen
::
VectorXd
::
Ones
(
model
.
nq
);
q
.
segment
<
4
>
(
3
).
normalize
();
Eigen
::
VectorXd
v
=
Eigen
::
VectorXd
::
Ones
(
model
.
nv
);
Eigen
::
VectorXd
a
=
Eigen
::
VectorXd
::
Ones
(
model
.
nv
);
Eigen
::
VectorXd
v
=
Eigen
::
VectorXd
::
Random
(
model
.
nv
);
Eigen
::
VectorXd
a
=
Eigen
::
VectorXd
::
Random
(
model
.
nv
);
const
Eigen
::
VectorXd
g
=
rnea
(
model
,
data_ref
,
q
,
0
*
v
,
0
*
a
);
rnea
(
model
,
data_ref
,
q
,
v
,
a
);
...
...
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