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
100b4084
Commit
100b4084
authored
Oct 21, 2020
by
Gabriele Buondonno
Browse files
[algo/isNormalized] use ref for prec
parent
eae7000a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/algorithm/joint-configuration.hpp
View file @
100b4084
...
...
@@ -623,7 +623,7 @@ namespace pinocchio
template
<
typename
LieGroup_t
,
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollectionTpl
,
typename
ConfigVectorType
>
inline
bool
isNormalized
(
const
ModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
model
,
const
Eigen
::
MatrixBase
<
ConfigVectorType
>
&
q
,
const
Scalar
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
());
const
Scalar
&
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
());
/**
*
...
...
@@ -638,7 +638,7 @@ namespace pinocchio
template
<
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollectionTpl
,
typename
ConfigVectorType
>
inline
bool
isNormalized
(
const
ModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
model
,
const
Eigen
::
MatrixBase
<
ConfigVectorType
>
&
q
,
const
Scalar
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
())
const
Scalar
&
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
())
{
return
isNormalized
<
LieGroupMap
,
Scalar
,
Options
,
JointCollectionTpl
,
ConfigVectorType
>
(
model
,
q
,
prec
);
}
...
...
src/algorithm/joint-configuration.hxx
View file @
100b4084
...
...
@@ -296,7 +296,7 @@ namespace pinocchio
inline
bool
isNormalized
(
const
ModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
model
,
const
Eigen
::
MatrixBase
<
ConfigVectorIn
>
&
q
,
const
Scalar
prec
)
const
Scalar
&
prec
)
{
PINOCCHIO_CHECK_ARGUMENT_SIZE
(
q
.
size
(),
model
.
nq
,
"The configuration vector is not of the right size"
);
PINOCCHIO_CHECK_INPUT_ARGUMENT
(
prec
>=
0
,
"The precision should be positive"
);
...
...
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