PyDescriptor.h
Go to the documentation of this file.
1 
6 #ifndef PYDESCRIPTOR_H
7 #define PYDESCRIPTOR_H
8 
11 #include <Python.h>
12 
13 namespace rtabmap
14 {
15 
17 {
18 public:
19  PyDescriptor(const ParametersMap & parameters = ParametersMap());
20  virtual ~PyDescriptor();
21 
22  const std::string & path() const {return path_;}
23  float dim() const {return dim_;}
24 
25  virtual void parseParameters(const ParametersMap & parameters);
26  virtual GlobalDescriptor extract(const SensorData & data) const;
28 
29 private:
30  PyObject * pModule_;
31  PyObject * pFunc_;
32  std::string path_;
33  int dim_;
34 };
35 
36 }
37 
38 #endif
rtabmap::SensorData
Definition: SensorData.h:51
rtabmap::GlobalDescriptorExtractor::Type
Type
Definition: GlobalDescriptorExtractor.h:42
rtabmap::GlobalDescriptorExtractor
Definition: GlobalDescriptorExtractor.h:40
rtabmap::PyDescriptor::getType
virtual GlobalDescriptorExtractor::Type getType() const
Definition: PyDescriptor.h:27
rtabmap::PyDescriptor::PyDescriptor
PyDescriptor(const ParametersMap &parameters=ParametersMap())
Definition: PyDescriptor.cpp:18
rtabmap::PyDescriptor::path_
std::string path_
Definition: PyDescriptor.h:32
rtabmap::ParametersMap
std::map< std::string, std::string > ParametersMap
Definition: Parameters.h:43
rtabmap::PyDescriptor::dim
float dim() const
Definition: PyDescriptor.h:23
rtabmap::PyDescriptor::parseParameters
virtual void parseParameters(const ParametersMap &parameters)
Definition: PyDescriptor.cpp:44
rtabmap::PyDescriptor::pFunc_
PyObject * pFunc_
Definition: PyDescriptor.h:31
rtabmap::PyDescriptor::dim_
int dim_
Definition: PyDescriptor.h:33
PythonInterface.h
rtabmap::GlobalDescriptor
Definition: GlobalDescriptor.h:35
rtabmap::PyDescriptor::~PyDescriptor
virtual ~PyDescriptor()
Definition: PyDescriptor.cpp:29
rtabmap::PyDescriptor::extract
virtual GlobalDescriptor extract(const SensorData &data) const
Definition: PyDescriptor.cpp:150
rtabmap::GlobalDescriptorExtractor::kPyDescriptor
@ kPyDescriptor
Definition: GlobalDescriptorExtractor.h:44
rtabmap::PyDescriptor
Definition: PyDescriptor.h:16
rtabmap::PyDescriptor::path
const std::string & path() const
Definition: PyDescriptor.h:22
rtabmap
Definition: CameraARCore.cpp:35
GlobalDescriptorExtractor.h
rtabmap::PyDescriptor::pModule_
PyObject * pModule_
Definition: PyDescriptor.h:30


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:14