rosidl_cli.extensions module

class rosidl_cli.extensions.Extension(name)

Bases: object

A generic extension point.

property name
rosidl_cli.extensions.load_extensions(group_name, *, specs=None, strict=False)

Load extensions for a specific group.

Parameters:
  • group_name (str) – the name of the extension group

  • specs (list) – an optional collection of extension specs (see parse_extension_specification() for spec format)

  • strict (bool) – whether to raise or warn on error

Returns:

a list of Extension instances

Return type:

list

rosidl_cli.extensions.parse_extension_specification(spec)

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.