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
Stack Of Tasks
pinocchio
Commits
e726f025
Verified
Commit
e726f025
authored
Apr 29, 2021
by
Justin Carpentier
Browse files
core: fix JointDataGeneric::operator!=
parent
1d996aa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-generic.hpp
View file @
e726f025
...
...
@@ -131,7 +131,7 @@ namespace pinocchio
template
<
typename
JointDataDerived
>
bool
isEqual
(
const
JointDataBase
<
JointDataDerived
>
&
other
)
const
{
return
::
pinocchio
::
isEqual
(
other
.
derived
());
return
::
pinocchio
::
isEqual
(
*
this
,
other
.
derived
());
}
bool
isEqual
(
const
JointDataTpl
&
other
)
const
...
...
@@ -143,6 +143,11 @@ namespace pinocchio
{
return
isEqual
(
other
);
}
bool
operator
!=
(
const
JointDataTpl
&
other
)
const
{
return
!
(
*
this
==
other
);
}
};
...
...
@@ -273,6 +278,14 @@ namespace pinocchio
return
joint_data_generic
==
joint_data
.
derived
();
}
template
<
typename
Scalar
,
int
Options
=
0
,
template
<
typename
S
,
int
O
>
class
JointCollectionTpl
,
typename
JointDataDerived
>
bool
operator
!=
(
const
JointDataBase
<
JointDataDerived
>
&
joint_data
,
const
JointDataTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
joint_data_generic
)
{
return
joint_data_generic
!=
joint_data
.
derived
();
}
template
<
typename
Scalar
,
int
Options
=
0
,
template
<
typename
S
,
int
O
>
class
JointCollectionTpl
,
typename
JointModelDerived
>
bool
operator
==
(
const
JointModelBase
<
JointModelDerived
>
&
joint_model
,
const
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
joint_model_generic
)
...
...
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