camera_discovery
Connected camera discovery utilities.
Module to automatically resolve the desired connected camera. Useful when you want to support both ZED and RealSense cameras in your scripts and CLIs.
- class robotblockset.cameras.camera_discovery.CameraBrand(*values)[source]
Bases:
Enum- ZED = 'zed'
- REALSENSE = 'realsense'
- robotblockset.cameras.camera_discovery.discover_camera(brand: str | None, serial_number: str | None = None, **kwargs: Any) RGBDCamera[source]
Find a connected camera, optionally filtering by brand and serial number.
- Parameters:
brand (str, optional) – Camera brand to search for.
serial_number (str, optional) – Serial number of the camera to use.
**kwargs (Any) – Additional arguments passed to the camera constructor.
- Returns:
The discovered camera instance.
- Return type:
- robotblockset.cameras.camera_discovery.click_camera_options(f: Callable) Callable[source]
Add camera selection options to a Click command.
This decorator adds command-line options for camera brand and serial number to a Click command function.
- Parameters:
f (Callable) – Function to decorate with the additional command-line arguments.
- Returns:
Decorated Click command function.
- Return type:
Callable
Functions
Add camera selection options to a Click command. |
|
|
Find a connected camera, optionally filtering by brand and serial number. |
Classes
|