pyrealsense2.context

class pyrealsense2.context

Librealsense context class. Includes realsense API version.

__init__(self: pyrealsense2.context) → None

Methods

__init__((self: pyrealsense2.context) -> None)
get_sensor_parent(...)
load_device((self: pyrealsense2.context, ...) Creates a devices from a RealSense file.
query_all_sensors(...) Generate a flat list of all available sensors from all RealSense devices.
query_devices(...) Create a static snapshot of all connected devices at the time of the call.
set_devices_changed_callback(...) Register devices changed callback.
unload_device((self: pyrealsense2.context, ...)
unload_tracking_module(...)

Attributes

devices A static snapshot of all connected devices at time of access.
sensors A flat list of all available sensors from all RealSense devices.
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(self: pyrealsense2.context) → pyrealsense2.device_list

Create a static snapshot of all connected devices at the time of the call.

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