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
78fab040
Commit
78fab040
authored
Oct 14, 2020
by
Gabriele Buondonno
Browse files
[liegroup] Add IsNormalizedStep
parent
3317e88c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/liegroup/liegroup-algo.hxx
View file @
78fab040
...
...
@@ -506,7 +506,38 @@ namespace pinocchio
};
PINOCCHIO_DETAILS_DISPATCH_JOINT_COMPOSITE_1
(
NormalizeStepAlgo
);
template
<
typename
Visitor
,
typename
JointModel
>
struct
IsNormalizedStepAlgo
;
template
<
typename
LieGroup_t
,
typename
ConfigVectorIn
,
typename
Scalar
>
struct
IsNormalizedStep
:
public
fusion
::
JointUnaryVisitorBase
<
IsNormalizedStep
<
LieGroup_t
,
ConfigVectorIn
,
Scalar
>
>
{
typedef
boost
::
fusion
::
vector
<
const
ConfigVectorIn
&
,
const
Scalar
,
bool
&>
ArgsType
;
PINOCCHIO_DETAILS_VISITOR_METHOD_ALGO_3
(
IsNormalizedStepAlgo
,
IsNormalizedStep
)
};
template
<
typename
Visitor
,
typename
JointModel
>
struct
IsNormalizedStepAlgo
{
template
<
typename
ConfigVectorIn
>
static
void
run
(
const
JointModelBase
<
JointModel
>
&
jmodel
,
const
Eigen
::
MatrixBase
<
ConfigVectorIn
>
&
q
,
const
typename
ConfigVectorIn
::
Scalar
prec
,
bool
&
res
)
{
typedef
typename
Visitor
::
LieGroupMap
LieGroupMap
;
typename
LieGroupMap
::
template
operation
<
JointModel
>
::
type
lgo
;
res
&=
lgo
.
isNormalized
(
jmodel
.
jointConfigSelector
(
q
.
derived
()),
prec
);
}
};
PINOCCHIO_DETAILS_DISPATCH_JOINT_COMPOSITE_3
(
IsNormalizedStepAlgo
);
template
<
typename
Visitor
,
typename
JointModel
>
struct
IsSameConfigurationStepAlgo
;
template
<
typename
LieGroup_t
,
typename
ConfigVectorIn1
,
typename
ConfigVectorIn2
,
typename
Scalar
>
...
...
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