rosidl_cli.command.generate.extensions module

class rosidl_cli.command.generate.extensions.GenerateCommandExtension(name)

Bases: Extension

The extension point for source code generation.

The following methods must be defined: * generate

generate(package_name, interface_files, include_paths, output_path)

Generate source code.

Paths to interface definition files are relative paths optionally prefixed by an absolute path followed by a colon ‘:’, in which case path resolution is to be performed against that absolute path.

Parameters:
  • package_name – name of the package to generate source code for

  • interface_files – list of paths to interface definition files

  • include_paths – list of paths to include dependency interface definition files from.

  • output_path – path to directory to hold generated source code files

Returns:

list of paths to generated source files

rosidl_cli.command.generate.extensions.load_type_extensions(**kwargs)

Load extensions for type representation source code generation.

rosidl_cli.command.generate.extensions.load_typesupport_extensions(**kwargs)

Load extensions for type support source code generation.