forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython.cpp
34 lines (30 loc) · 898 Bytes
/
python.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* License: Apache 2.0. See LICENSE file in root directory.
Copyright(c) 2017 Intel Corporation. All Rights Reserved. */
#include "python.hpp"
#include "../include/librealsense2/rs.hpp"
PYBIND11_MODULE(NAME, m) {
m.doc() = R"pbdoc(
LibrealsenseTM Python Bindings
==============================
Library for accessing Intel RealSenseTM cameras
)pbdoc";
init_c_files(m);
init_types(m);
init_frame(m);
init_options(m);
init_processing(m);
init_sensor(m);
init_device(m);
init_record_playback(m);
init_context(m);
init_pipeline(m);
init_internal(m);
init_export(m);
init_advanced_mode(m);
init_util(m);
/** rs.hpp **/
m.def("log_to_console", &rs2::log_to_console, "min_severity"_a);
m.def("log_to_file", &rs2::log_to_file, "min_severity"_a, "file_path"_a);
// rs2::log?
/** end rs.hpp **/
}