RTAB-Map
0.23.10
Real-Time Appearance-Based Mapping
Loading...
Searching...
No Matches
PythonInterface.h
1
/*
2
* PythonInterface.h
3
*
4
* Created on: Jan. 14, 2021
5
* Author: mathieu
6
*/
7
8
#ifndef CORELIB_SRC_PYTHON_PYTHONINTERFACE_H_
9
#define CORELIB_SRC_PYTHON_PYTHONINTERFACE_H_
10
11
#include "rtabmap/core/rtabmap_core_export.h"
// DLL export/import defines
12
13
#include <string>
14
#include <rtabmap/utilite/UMutex.h>
15
16
namespace
pybind11 {
17
class
scoped_interpreter;
18
class
gil_scoped_release;
19
}
20
21
namespace
rtabmap
{
22
28
class
RTABMAP_CORE_EXPORT
PythonInterface
29
{
30
public
:
31
// Pass a caller tag (e.g. class name) so the main-thread assertion
32
// can report who triggered the first construction.
33
static
PythonInterface
& instance(
const
std::string & caller =
""
);
34
35
PythonInterface
(
const
PythonInterface
&) =
delete
;
36
PythonInterface
& operator=(
const
PythonInterface
&) =
delete
;
37
38
private
:
39
explicit
PythonInterface
(
const
std::string & caller);
40
~PythonInterface
();
41
42
pybind11::scoped_interpreter* guard_;
43
pybind11::gil_scoped_release* release_;
44
};
45
46
std::string RTABMAP_CORE_EXPORT getPythonTraceback();
47
48
}
49
50
#endif
/* CORELIB_SRC_PYTHON_PYTHONINTERFACE_H_ */
rtabmap::PythonInterface
Definition
PythonInterface.h:29
rtabmap
Definition
BayesFilter.h:39
corelib
include
rtabmap
core
PythonInterface.h
Generated by
1.9.8