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
3af079b5
Verified
Commit
3af079b5
authored
Jul 10, 2019
by
Justin Carpentier
Browse files
test: do not test JointMimic for AutoDiff
parent
f6943dad
Changes
2
Hide whitespace changes
Inline
Side-by-side
unittest/casadi-joints.cpp
View file @
3af079b5
...
...
@@ -267,6 +267,11 @@ struct TestADOnJoints
test
(
jmodel
);
}
// TODO: get the nq and nv quantity from LieGroups
template
<
typename
JointModel_
>
static
void
test
(
const
pinocchio
::
JointModelMimic
<
JointModel_
>
&
/*jmodel*/
)
{
/* do nothing */
}
template
<
typename
JointModel
>
static
void
test
(
const
pinocchio
::
JointModelBase
<
JointModel
>
&
jmodel
)
{
...
...
unittest/cppad-joints.cpp
View file @
3af079b5
//
// Copyright (c) 2018
CNRS
// Copyright (c) 2018
-2019 CNRS INRIA
//
#include "pinocchio/fwd.hpp"
...
...
@@ -121,6 +121,17 @@ struct TestADOnJoints
test
(
jmodel
);
}
template
<
typename
Scalar
,
int
Options
>
void
operator
()(
const
pinocchio
::
JointModelRevoluteUnboundedUnalignedTpl
<
Scalar
,
Options
>
&
)
const
{
typedef
pinocchio
::
JointModelRevoluteUnboundedUnalignedTpl
<
Scalar
,
Options
>
JointModel
;
typedef
typename
JointModel
::
Vector3
Vector3
;
JointModel
jmodel
(
Vector3
::
Random
().
normalized
());
jmodel
.
setIndexes
(
0
,
0
,
0
);
test
(
jmodel
);
}
template
<
typename
Scalar
,
int
Options
>
void
operator
()(
const
pinocchio
::
JointModelPrismaticUnalignedTpl
<
Scalar
,
Options
>
&
)
const
{
...
...
@@ -142,6 +153,13 @@ struct TestADOnJoints
test
(
jmodel
);
}
// TODO: implement it
template
<
typename
JointModel_
>
void
operator
()(
const
pinocchio
::
JointModelMimic
<
JointModel_
>
&
/*jmodel*/
)
const
{
/* do nothing */
}
template
<
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollection
>
void
operator
()(
const
pinocchio
::
JointModelCompositeTpl
<
Scalar
,
Options
,
JointCollection
>
&
)
const
...
...
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