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
2aeb6770
Verified
Commit
2aeb6770
authored
Apr 29, 2021
by
Justin Carpentier
Browse files
multibody: add hasSameIndexes method to JointModelBase
parent
517c7e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-model-base.hpp
View file @
2aeb6770
...
...
@@ -159,6 +159,12 @@ namespace pinocchio
{
return
false
;
}
bool
isEqual
(
const
JointModelBase
<
Derived
>
&
other
)
const
{
return
derived
().
hasSameIndexes
(
other
.
derived
());
}
template
<
class
OtherDerived
>
bool
hasSameIndexes
(
const
JointModelBase
<
OtherDerived
>
&
other
)
const
{
return
other
.
id
()
==
id
()
&&
other
.
idx_q
()
==
idx_q
()
...
...
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