robokudo.descriptors.camera_configs.registry¶
Classes¶
Registry for camera config classes. |
Module Contents¶
- class robokudo.descriptors.camera_configs.registry.CameraConfigRegistry¶
-
Registry for camera config classes.
- _registry: typing_extensions.Dict[str, typing_extensions.Type[robokudo.descriptors.camera_configs.base_camera_config.BaseCameraConfig]]¶
-
Map of camera config registry name to their class.
- classmethod register_all(package_name: str = 'robokudo.descriptors.camera_configs') None¶
-
Register all camera configs of the given package to the camera config registry.
- Parameters:
-
package_name – The name of the package to register camera configs from.
- Raises:
-
ImportError – If the given package cannot be imported.
ValueError – If there is a duplicate registry name with conflicting classes.
- classmethod create_config(config_type: str, **kwargs: typing_extensions.Any) typing_extensions.Any¶
-
Create a camera config instance based on the given config type.
- Parameters:
-
config_type – The type of the camera config to create.
- Raises:
-
ValueError – If the given config type is not registered.
TypeError – If the keyword arguments are invalid for the camera config class.