point_to_plane.cpp
Go to the documentation of this file.
1 #include "point_to_plane.h"
2 
4 
5 namespace python
6 {
7  namespace errorminimizers
8  {
9  void pybindPointToPlane(py::module& p_module)
10  {
12  py::class_<PointToPlaneErrorMinimizer, std::shared_ptr<PointToPlaneErrorMinimizer>, ErrorMinimizer>(p_module, "PointToPlaneErrorMinimizer")
13  .def(py::init<const Parameters&>(), py::arg("params") = Parameters())
14  .def(py::init<const ParametersDoc, const Parameters&>(), py::arg("paramsDoc"), py::arg("params") = Parameters())
15 
16  .def_readonly("force2D", &PointToPlaneErrorMinimizer::force2D)
17  .def_readonly("force4DOF", &PointToPlaneErrorMinimizer::force4DOF)
18 
19  .def_static("description", &PointToPlaneErrorMinimizer::description)
20  .def_static("availableParameters", &PointToPlaneErrorMinimizer::availableParameters)
21 
23  .def("compute", &PointToPlaneErrorMinimizer::compute, py::arg("mPts"))
24  .def("compute_in_place", &PointToPlaneErrorMinimizer::compute_in_place, py::arg("mPts"))
25  .def("getResidualError", &PointToPlaneErrorMinimizer::getResidualError, py::arg("filteredReading"), py::arg("filteredReference"), py::arg("outlierWeights"), py::arg("matches"))
26  .def("getOverlap", &PointToPlaneErrorMinimizer::getOverlap)
27 
28  .def_static("computeResidualError", &PointToPlaneErrorMinimizer::computeResidualError, py::arg("mPts"), py::arg("force2D"));
29  }
30  }
31 }
PointToPlaneErrorMinimizer::getOverlap
virtual T getOverlap() const
If not redefined by child class, return the ratio of how many points were used (with weight) for erro...
Definition: PointToPlane.cpp:370
PointToPlaneErrorMinimizer::availableParameters
static const ParametersDoc availableParameters()
Definition: PointToPlane.h:69
Parameters
PM::Parameters Parameters
Definition: filterProfiler.cpp:20
PointToPlaneErrorMinimizer::force4DOF
const bool force4DOF
Definition: PointToPlane.h:79
PointToPlaneErrorMinimizer::description
static const std::string description()
Definition: PointToPlane.h:64
point_to_plane.h
ErrorMinimizersImpl.h
PointToPlaneErrorMinimizer::computeResidualError
static T computeResidualError(ErrorElements mPts, const bool &force2D)
Definition: PointToPlane.cpp:316
python
Definition: add_descriptor.cpp:5
PointToPlaneErrorMinimizer
Definition: PointToPlane.h:42
PointToPlaneErrorMinimizer::name
virtual const std::string name()
Definition: PointToPlane.h:59
PointToPlaneErrorMinimizer::compute
virtual TransformationParameters compute(const ErrorElements &mPts)
Find the transformation that minimizes the error given matched pair of points. This function most be ...
Definition: PointToPlane.cpp:164
PointToPlaneErrorMinimizer::compute_in_place
TransformationParameters compute_in_place(ErrorElements &mPts)
Definition: PointToPlane.cpp:172
PointToPlaneErrorMinimizer::getResidualError
virtual T getResidualError(const DataPoints &filteredReading, const DataPoints &filteredReference, const OutlierWeights &outlierWeights, const Matches &matches) const
If not redefined by child class, return max value for T.
Definition: PointToPlane.cpp:355
PointToPlaneErrorMinimizer::force2D
const bool force2D
Definition: PointToPlane.h:78
PointMatcher::ErrorMinimizer
An error minimizer will compute a transformation matrix such as to minimize the error between the rea...
Definition: PointMatcher.h:531
ErrorMinimizersImpl::PointToPlaneErrorMinimizer
::PointToPlaneErrorMinimizer< T > PointToPlaneErrorMinimizer
Definition: ErrorMinimizersImpl.h:50
python::errorminimizers::pybindPointToPlane
void pybindPointToPlane(py::module &p_module)
Definition: point_to_plane.cpp:9


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