rosidl_cli.command.hash.extensions module
- class rosidl_cli.command.hash.extensions.HashCommandExtension(name: str)
Bases:
Extension
The extension point for source code generation.
The following methods must be defined: * generate_type_hashes
- generate_type_hashes(package_name, interface_files, include_paths, output_path)
Generate type hashes from interface definition files.
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.hash.extensions.load_hash_extensions(**kwargs)
Load extensions for type hash generation.