pyrealsense2.device_hub

class pyrealsense2.device_hub

Encapsulates connect/disconnect handling and waiting for devices.

__init__(self: pyrealsense2.device_hub, ctx: pyrealsense2.context) → None

Create a device_hub bound to the given context.

Methods

__init__(self, ctx)

Create a device_hub bound to the given context.

is_connected(self, device)

Return True if the given device is still connected.

wait_for_device(self)

If a device is connected return it, otherwise wait until one connects.

is_connected(self: pyrealsense2.device_hub, device: pyrealsense2.device) → bool

Return True if the given device is still connected.

wait_for_device(self: pyrealsense2.device_hub) → pyrealsense2.device

If a device is connected return it, otherwise wait until one connects.