rosidl_cli.extensions module
- class rosidl_cli.extensions.Extension(name: str)
Bases:
object
A generic extension point.
- property name: str
- rosidl_cli.extensions.load_extensions(group_name: str, *, specs: List[str] | None = None, strict: bool = False) List[Extension]
Load extensions for a specific group.
- Parameters:
group_name – the name of the extension group
specs – an optional collection of extension specs (see
parse_extension_specification()
for spec format)strict – whether to raise or warn on error
- Returns:
a list of
Extension
instances
- rosidl_cli.extensions.parse_extension_specification(spec: str) Tuple[str | Any, Dict[Any, Any] | Any]
Parse extension specification.
- Parameters:
spec (str) – specification string in ‘name[key0: value0, …]’ or ‘name’ format. Key-value pairs are parsed as YAML dictionaries.
- Returns:
a tuple of specification name and keyword arguments, if any, as a dict.