Skip to content

Commit

Permalink
[loops] added compute_loops()
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Feb 22, 2021
1 parent 1fc32db commit cddb598
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/src/robotics/codac_py_TPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ void export_TPlane(py::module& m)
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR,
"precision"_a, "p"_a)

.def("compute_loops", [](TPlane& tplane, float precision, const TubeVector& p, const TubeVector& v)
{
TubeVector p_(p), v_(v);
p_.enable_synthesis(true);
v_.enable_synthesis(true);
tplane.compute_detections(precision, p_, v_);
tplane.compute_proofs(p_, v_);
},
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR_TUBEVECTOR,
"precision"_a, "p"_a, "v"_a)

.def("compute_detections", (void (TPlane::*)(float,const TubeVector&,const TubeVector&))&TPlane::compute_detections,
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR_TUBEVECTOR,
"precision"_a, "p"_a, "v"_a)
Expand Down

0 comments on commit cddb598

Please sign in to comment.