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
c9c33f0b
Verified
Commit
c9c33f0b
authored
Dec 17, 2019
by
Justin Carpentier
Browse files
joint/data: add operator==
parent
dc4db03d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-data-base.hpp
View file @
c9c33f0b
...
...
@@ -112,6 +112,24 @@ namespace pinocchio
return
os
;
}
bool
operator
==
(
const
JointDataBase
<
Derived
>
&
other
)
const
{
return
derived
().
isEqual
(
other
.
derived
());
}
/// \brief Default operator== implementation
bool
isEqual
(
const
JointDataBase
<
Derived
>
&
other
)
const
{
return
S
()
==
other
.
S
()
&&
M
()
==
other
.
M
()
&&
v
()
==
other
.
v
()
&&
c
()
==
other
.
c
()
&&
U
()
==
other
.
U
()
&&
Dinv
()
==
other
.
Dinv
()
&&
UDinv
()
==
other
.
UDinv
()
;
}
protected:
/// \brief Default constructor: protected.
...
...
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