data_points_filters.cpp
Go to the documentation of this file.
1 #include <fstream>
2 
3 #include "data_points_filters.h"
4 
5 namespace python
6 {
7  namespace pointmatcher
8  {
9  void pybindDataPointsFilters(py::class_<PM>& p_class)
10  {
11  py::bind_vector<DataPointsFilters>(p_class, "DataPointsFilters")
12  .def(py::init<>(), "Construct an empty chain").def(py::init([](const std::string& in)
13  {
14  std::ifstream ifs(in.c_str());
15  return std::unique_ptr<DataPointsFilters>(new DataPointsFilters(ifs));
16  }), "Construct a chain from a YAML file")
17 
18  .def("init", &DataPointsFilters::init, "Init the chain")
19  .def("apply", &DataPointsFilters::apply, py::arg("cloud"), "Apply this chain to cloud, mutates cloud");
20  }
21  }
22 }
DataPointsFilters
PM::DataPointsFilters DataPointsFilters
Definition: pypoint_matcher_helper.h:23
testing::internal::string
::std::string string
Definition: gtest.h:1979
data_points_filters.h
python
Definition: add_descriptor.cpp:5
python::pointmatcher::pybindDataPointsFilters
void pybindDataPointsFilters(py::class_< PM > &p_class)
Definition: data_points_filters.cpp:9


libpointmatcher
Author(s):
autogenerated on Mon Jan 1 2024 03:24:42