5 #include "../include/librealsense2/rs.hpp" 6 #include "../include/librealsense2/hpp/rs_export.hpp" 11 LibrealsenseTM Python Bindings 12 ============================== 13 Library for accessing Intel RealSenseTM cameras 34 py::class_<rs2::save_to_ply, rs2::filter>(
m,
"save_to_ply")
35 .def(py::init<std::string, rs2::pointcloud>(),
"filename"_a =
"RealSense Pointcloud ",
"pc"_a =
rs2::pointcloud())
49 py::class_<rs2::log_message> log_message(m,
"log_message");
57 m.def(
"log_to_callback",
67 py::gil_scoped_acquire gil;
72 std::cerr <<
"?!?!?!!? exception in python log_to_callback callback ?!?!?!?!?" << std::endl;
75 },
"min_severity"_a,
"callback"_a);
78 m.def(
"log", &
rs2::log,
"severity"_a,
"message"_a, py::call_guard<py::gil_scoped_release>());
static const auto OPTION_IGNORE_COLOR
void init_processing(bool use_glsl=true)
GLenum GLuint GLenum severity
void init_pipeline(py::module &m)
void init_sensor(py::module &m)
void log_to_callback(rs2_log_severity min_severity, S callback)
static const auto OPTION_PLY_THRESHOLD
void log(rs2_log_severity severity, const char *message)
void init_types(py::module &m)
void init_util(py::module &m)
const char * filename() const
std::array< point3d, 4 > object
void init_serializable_device(py::module &m)
static const auto OPTION_PLY_NORMALS
size_t line_number() const
void init_frame(py::module &m)
void init_device(py::module &m)
def pointcloud(out, verts, texcoords, color, painter=True)
void init_context(py::module &m)
void log_to_file(rs2_log_severity min_severity, const char *file_path=nullptr)
void log_to_console(rs2_log_severity min_severity)
void init_record_playback(py::module &m)
const char * full() const
#define RS2_API_VERSION_STR
void enable_rolling_log_file(unsigned max_size)
void init_export(py::module &m)
void init_c_files(py::module &m)
static const auto OPTION_PLY_BINARY
rs2_log_severity
Severity of the librealsense logger.
static const auto OPTION_PLY_MESH
void init_advanced_mode(py::module &m)
void init_options(py::module &m)
void init_internal(py::module &m)