Commit cdadf1a1 authored by Justin Carpentier's avatar Justin Carpentier

spatial/motion: add isEqual method to MotionZeroTpl

parent 24dc9245
......@@ -57,7 +57,14 @@ namespace pinocchio
template<typename D2>
static bool isEqual_impl(const MotionDense<D2> & other)
{ return other.linear().isZero() && other.angular().isZero(); }
{
return other.linear().isZero(0) && other.angular().isZero(0);
}
static bool isEqual_impl(const MotionZeroTpl &)
{
return true;
}
template<typename D2>
static void addTo(const MotionBase<D2> &) {}
......
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