pyrealsense2.context¶
- class pyrealsense2.context¶
Librealsense context class. Includes realsense API version.
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: pyrealsense2.context, json-settings: str = None) -> None
__init__(self: pyrealsense2.context, json-settings: json) -> None
Methods
__init__
(*args, **kwargs)Overloaded function.
get_sensor_parent
(self, s)load_device
(self, filename)Creates a devices from a RealSense file.
query_all_sensors
(self)Generate a flat list of all available sensors from all RealSense devices.
query_devices
(*args, **kwargs)Overloaded function.
set_devices_changed_callback
(self, callback)Register devices changed callback.
unload_device
(self, filename)unload_tracking_module
(self)Attributes
A static snapshot of all connected devices at time of access.
A flat list of all available sensors from all RealSense devices.
- property devices¶
A static snapshot of all connected devices at time of access. Identical to calling query_devices.
- get_sensor_parent(self: pyrealsense2.context, s: pyrealsense2.sensor) pyrealsense2.device ¶
- load_device(self: pyrealsense2.context, filename: str) pyrealsense2.playback ¶
Creates a devices from a RealSense file. On successful load, the device will be appended to the context and a devices_changed event triggered.
- query_all_sensors(self: pyrealsense2.context) List[pyrealsense2.sensor] ¶
Generate a flat list of all available sensors from all RealSense devices.
- query_devices(*args, **kwargs)¶
Overloaded function.
query_devices(self: pyrealsense2.context) -> pyrealsense2.device_list
Create a static snapshot of all connected devices at the time of the call.
query_devices(self: pyrealsense2.context, arg0: int) -> pyrealsense2.device_list
Create a static snapshot of all connected devices of specific product line at the time of the call.
- property sensors¶
A flat list of all available sensors from all RealSense devices. Identical to calling query_all_sensors.
- set_devices_changed_callback(self: pyrealsense2.context, callback: Callable[[pyrealsense2.event_information], None]) None ¶
Register devices changed callback.
- unload_device(self: pyrealsense2.context, filename: str) None ¶
- unload_tracking_module(self: pyrealsense2.context) None ¶