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 }
::std::string string
Definition: gtest.h:1979
void pybindDataPointsFilters(py::class_< PM > &p_class)
PM::DataPointsFilters DataPointsFilters


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:36:30