Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
wrappers
python
pyrs_net.cpp
Go to the documentation of this file.
1
/* License: Apache 2.0. See LICENSE file in root directory.
2
Copyright(c) 2020 Intel Corporation. All Rights Reserved. */
3
4
#include <pybind11/pybind11.h>
5
6
// convenience functions
7
#include <pybind11/operators.h>
8
9
#include "
librealsense2-net/rs_net.hpp
"
10
11
#define NAME pyrealsense2_net
12
#define SNAME "pyrealsense2_net"
13
14
namespace
py = pybind11;
15
using namespace
pybind11::literals
;
16
17
auto
device
= (
py::object
) py::module::import(
"pyrealsense2"
).attr(
"device"
);
18
19
PYBIND11_MODULE
(
NAME
,
m
) {
20
m
.doc() =
"Wrapper for the librealsense ethernet device extension module"
;
21
22
py::class_<rs2::net_device> net_device(
m
,
"net_device"
,
device
);
23
net_device.def(py::init<std::string>(),
"address"
_a)
24
.def(
"add_to"
, &
rs2::net_device::add_to
,
"Add net device to existing context.\n"
25
"Any future queries on the context will return this device.\n"
26
"This operation cannot be undone (except for destroying the context)"
,
"ctx"
_a);
27
}
rs2::net_device::add_to
void add_to(context &ctx)
Definition:
rs_net.hpp:26
m
const GLfloat * m
Definition:
glext.h:6814
NAME
#define NAME
Definition:
pyrs_net.cpp:11
PYBIND11_MODULE
PYBIND11_MODULE(NAME, m)
Definition:
pyrs_net.cpp:19
object
std::array< point3d, 4 > object
Definition:
rs-ar-advanced.cpp:33
rs_net.hpp
device
auto device
Definition:
pyrs_net.cpp:17
literals
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:39