rosidl_cli.command.hash.api module

rosidl_cli.command.hash.api.generate_type_hashes(*, package_name, interface_files, include_paths=None, output_path=None)

Generate type hashes from interface definition files.

To do so, this function leverages type description hash generation support as provided by third-party package extensions.

Each path to an interface definition file is a relative path optionally prefixed by another path followed by a colon ‘:’, against which the first relative path is to be resolved.

The directory structure that these relative paths exhibit will be replicated on output (as opposed to the prefix path, which will be ignored).

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

  • interface_files – list of paths to interface definition files

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

  • output_path – optional path to directory to hold generated source code files, defaults to the current working directory

Returns:

list of lists of paths to generated hashed json files, one group per type or type support extension invoked