transformation_checkers_impl.cpp
Go to the documentation of this file.
2 
4 
5 namespace python
6 {
7  namespace pointmatcher
8  {
9  namespace impls
10  {
11  void pybindTransformationCheckersImpl(py::module& p_module)
12  {
14  py::class_<TransformationCheckersImpl, std::shared_ptr<TransformationCheckersImpl>> pyTransformationCheckersImpl(p_module, "TransformationCheckersImpl");
15 
16  using CounterTransformationChecker = TransformationCheckersImpl::CounterTransformationChecker;
17  py::class_<CounterTransformationChecker, std::shared_ptr<CounterTransformationChecker>, TransformationChecker>(pyTransformationCheckersImpl, "CounterTransformationChecker")
18  .def_static("description", &CounterTransformationChecker::description)
19  .def_static("availableParameters", &CounterTransformationChecker::availableParameters)
20 
21  .def_readonly("maxIterationCount", &CounterTransformationChecker::maxIterationCount)
22 
23  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
24  .def("init", &CounterTransformationChecker::init, py::arg("parameters"), py::arg("iterate"))
25  .def("check", &CounterTransformationChecker::check, py::arg("parameters"), py::arg("iterate"));
26 
27  using DifferentialTransformationChecker = TransformationCheckersImpl::DifferentialTransformationChecker;
28  py::class_<DifferentialTransformationChecker, std::shared_ptr<DifferentialTransformationChecker>, TransformationChecker>(pyTransformationCheckersImpl, "DifferentialTransformationChecker")
29  .def_static("description", &DifferentialTransformationChecker::description)
30  .def_static("availableParameters", &DifferentialTransformationChecker::availableParameters)
31 
32  .def_readonly("minDiffRotErr", &DifferentialTransformationChecker::minDiffRotErr)
33  .def_readonly("minDiffTransErr", &DifferentialTransformationChecker::minDiffTransErr)
34  .def_readonly("smoothLength", &DifferentialTransformationChecker::smoothLength)
35 
36  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
37  .def("init", &DifferentialTransformationChecker::init, py::arg("parameters"), py::arg("iterate"))
38  .def("check", &DifferentialTransformationChecker::check, py::arg("parameters"), py::arg("iterate"));
39 
40  using BoundTransformationChecker = TransformationCheckersImpl::BoundTransformationChecker;
41  py::class_<BoundTransformationChecker, std::shared_ptr<BoundTransformationChecker>, TransformationChecker>(pyTransformationCheckersImpl, "BoundTransformationChecker")
42  .def_static("description", &BoundTransformationChecker::description)
43  .def_static("availableParameters", &BoundTransformationChecker::availableParameters)
44 
45  .def_readonly("minDiffRotErr", &BoundTransformationChecker::maxRotationNorm)
46  .def_readonly("minDiffTransErr", &BoundTransformationChecker::maxTranslationNorm)
47 
48  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
49  .def("init", &BoundTransformationChecker::init, py::arg("parameters"), py::arg("iterate"))
50  .def("check", &BoundTransformationChecker::check, py::arg("parameters"), py::arg("iterate"));
51  }
52  }
53  }
54 }
void pybindTransformationCheckersImpl(py::module &p_module)
PM::Parameters Parameters
PM::TransformationChecker TransformationChecker


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:03