Skip to content

Commit cddb598

Browse files
committed
[loops] added compute_loops()
1 parent 1fc32db commit cddb598

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

python/src/robotics/codac_py_TPlane.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ void export_TPlane(py::module& m)
3838
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR,
3939
"precision"_a, "p"_a)
4040

41+
.def("compute_loops", [](TPlane& tplane, float precision, const TubeVector& p, const TubeVector& v)
42+
{
43+
TubeVector p_(p), v_(v);
44+
p_.enable_synthesis(true);
45+
v_.enable_synthesis(true);
46+
tplane.compute_detections(precision, p_, v_);
47+
tplane.compute_proofs(p_, v_);
48+
},
49+
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR_TUBEVECTOR,
50+
"precision"_a, "p"_a, "v"_a)
51+
4152
.def("compute_detections", (void (TPlane::*)(float,const TubeVector&,const TubeVector&))&TPlane::compute_detections,
4253
TPLANE_VOID_COMPUTE_DETECTIONS_FLOAT_TUBEVECTOR_TUBEVECTOR,
4354
"precision"_a, "p"_a, "v"_a)

0 commit comments

Comments
 (0)