Verified Commit e726f025 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix JointDataGeneric::operator!=

parent 1d996aa5
......@@ -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)
......
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