Verified Commit 7b5650c5 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: add missing operator{==,!=} for GeometryData

parent 27242383
......@@ -360,6 +360,35 @@ namespace pinocchio
friend std::ostream & operator<<(std::ostream & os, const GeometryData & geomData);
///
/// \brief Returns true if *this and other are equal.
///
bool operator==(const GeometryData & other) const
{
return
oMg == other.oMg
&& activeCollisionPairs == other.activeCollisionPairs
#ifdef PINOCCHIO_WITH_HPP_FCL
&& distanceRequests == other.distanceRequests
&& distanceResults == other.distanceResults
&& collisionRequests == other.collisionRequests
&& collisionResults == other.collisionResults
&& radius == other.radius
&& collisionPairIndex == other.collisionPairIndex
#endif
&& innerObjects == other.innerObjects
&& outerObjects == other.outerObjects
;
}
///
/// \brief Returns true if *this and other are not equal.
///
bool operator!=(const GeometryData & other) const
{
return !(*this == other);
}
}; // struct GeometryData
} // namespace pinocchio
......
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