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

python: expose operator{==,!=} for GeometryData

parent e791a812
...@@ -123,6 +123,10 @@ namespace pinocchio ...@@ -123,6 +123,10 @@ namespace pinocchio
setSecurityMargins_overload(bp::args("self","geometry_model","security_margin_map","upper"), setSecurityMargins_overload(bp::args("self","geometry_model","security_margin_map","upper"),
"Set the security margin of all the collision request in a row, according to the values stored in the associative map.")) "Set the security margin of all the collision request in a row, according to the values stored in the associative map."))
#endif // PINOCCHIO_WITH_HPP_FCL #endif // PINOCCHIO_WITH_HPP_FCL
.def(bp::self == bp::self)
.def(bp::self != bp::self)
; ;
} }
......
...@@ -59,6 +59,7 @@ namespace pinocchio ...@@ -59,6 +59,7 @@ namespace pinocchio
CollisionPair(const GeomIndex co1, const GeomIndex co2); CollisionPair(const GeomIndex co1, const GeomIndex co2);
bool operator == (const CollisionPair& rhs) const; bool operator == (const CollisionPair& rhs) const;
bool operator != (const CollisionPair& rhs) const;
void disp (std::ostream & os) const; void disp (std::ostream & os) const;
friend std::ostream & operator << (std::ostream & os,const CollisionPair & X); friend std::ostream & operator << (std::ostream & os,const CollisionPair & X);
......
Supports Markdown
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