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
Stack Of Tasks
pinocchio
Commits
2529e15d
Commit
2529e15d
authored
Apr 20, 2020
by
Rohan Budhiraja
Browse files
add dintegratetransport unittest
parent
02489e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/joint-configurations.cpp
View file @
2529e15d
...
...
@@ -273,6 +273,20 @@ BOOST_AUTO_TEST_CASE ( dIntegrate_assignementop_test )
dIntegrate
(
model
,
qs
,
vs
,
results
[
1
],
ARG1
,
RMTO
);
BOOST_CHECK
(
results
[
1
].
isApprox
(
results
[
2
]
-
results
[
0
]));
//Transport
std
::
vector
<
Eigen
::
MatrixXd
>
J
(
3
,
Eigen
::
MatrixXd
::
Zero
(
model
.
nv
,
2
*
model
.
nv
));
J
[
1
]
=
Eigen
::
MatrixXd
::
Random
(
model
.
nv
,
2
*
model
.
nv
);
J
[
2
]
=
J
[
1
];
dIntegrate
(
model
,
qs
,
vs
,
J
[
0
],
ARG0
,
SETTO
);
dIntegrateTransport
(
model
,
qs
,
vs
,
J
[
2
],
J
[
1
],
ARG0
);
BOOST_CHECK
(
results
[
1
].
isApprox
(
J
[
0
]
*
J
[
2
]));
J
[
1
]
=
Eigen
::
MatrixXd
::
Random
(
model
.
nv
,
2
*
model
.
nv
);
J
[
2
]
=
J
[
1
];
J
[
0
].
setZero
();
dIntegrate
(
model
,
qs
,
vs
,
J
[
0
],
ARG1
,
SETTO
);
dIntegrateTransport
(
model
,
qs
,
vs
,
J
[
2
],
J
[
1
],
ARG1
);
BOOST_CHECK
(
results
[
1
].
isApprox
(
J
[
0
]
*
J
[
2
]));
}
BOOST_AUTO_TEST_CASE
(
integrate_difference_test
)
...
...
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