Skip to content
Snippets Groups Projects
Commit c6fbc151 authored by fvalenza's avatar fvalenza Committed by GitHub
Browse files

[Python][hpp-fcl] Provide temporary operator== for DistanceResult. (#322)

parent 7e122c64
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,20 @@ ...@@ -28,6 +28,20 @@
#include "pinocchio/bindings/python/data.hpp" #include "pinocchio/bindings/python/data.hpp"
#include "pinocchio/bindings/python/geometry-model.hpp" #include "pinocchio/bindings/python/geometry-model.hpp"
namespace fcl
{
// This operator is defined here temporary, as it is needed by vector_indexing_suite
// It has also been defined in hpp-fcl in a pending pull request.
// Once it has been integrated in releases of hpp-fcl, please remove this operator
inline bool operator ==(const DistanceResult & dr1, const DistanceResult& dr2)
{
return dr1.min_distance == dr2.min_distance
&& dr1.o1 == dr2.o1
&& dr1.o2 == dr2.o2
&& dr1.nearest_points[0] == dr2.nearest_points[0]
&& dr1.nearest_points[1] == dr2.nearest_points[1];
}
}
namespace se3 namespace se3
{ {
namespace python namespace python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment