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 }
TransformationCheckersImpl
Definition: TransformationCheckersImpl.h:42
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
transformation_checkers_impl.h
python::pointmatcher::impls::pybindTransformationCheckersImpl
void pybindTransformationCheckersImpl(py::module &p_module)
Definition: transformation_checkers_impl.cpp:11
TransformationCheckersImpl::DifferentialTransformationChecker
Definition: TransformationCheckersImpl.h:81
TransformationChecker
PM::TransformationChecker TransformationChecker
Definition: pypoint_matcher_helper.h:29
python
Definition: add_descriptor.cpp:5
TransformationCheckersImpl::CounterTransformationChecker
Definition: TransformationCheckersImpl.h:58
TransformationCheckersImpl::BoundTransformationChecker
Definition: TransformationCheckersImpl.h:111
TransformationCheckersImpl.h


libpointmatcher
Author(s):
autogenerated on Mon Sep 16 2024 02:24:10