Verified Commit 2aeb6770 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

multibody: add hasSameIndexes method to JointModelBase

parent 517c7e60
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment