MCPcopy Create free account
hub / github.com/Ar-Ray-code/lingbot-depth-trt / list_devices

Function list_devices

python/scripts/camera/realsense.py:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def list_devices() -> list[DeviceInfo]:
41 rs = _rs()
42 ctx = rs.context()
43 return [_device_info(device) for device in ctx.query_devices()]
44
45
46def resolve_device(selector: str | None) -> tuple[str, DeviceInfo]:

Callers 1

resolve_deviceFunction · 0.70

Calls 2

_rsFunction · 0.85
_device_infoFunction · 0.70

Tested by

no test coverage detected