Skip to content

Commit

Permalink
Added generated png files
Browse files Browse the repository at this point in the history
Signed-off-by: Gonzalo de Pedro <[email protected]>
  • Loading branch information
gonzodepedro committed Jan 31, 2024
1 parent 3573966 commit 64531db
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/Concepts/Advanced/About-Internal-Interfaces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ On workspace build, the *generator* packages, registers portions of CMake code a

Hook registration on CodeGenerator project build

.. figure:: ../images/code_generator.svg
.. figure:: ../images/code_generator.png
:alt: code generator sequence diagram

Figure: sequence diagram of "code generator" interaction with CMake extensions.
Expand All @@ -225,7 +225,7 @@ When the *client* package, during its build process, calls the 'rosidl_generate_
After collecting all the arguments files, the extension calls the template engine for all the arguments files at once. Once code is generated,
the 'rosidl_generate_idl_interfaces' extensiones are called to get code added to an artifact (a library) and export dependiences.

.. figure:: ../images/generator_client.svg
.. figure:: ../images/generator_client.png
:alt: generator client sequence diagram

Figure: sequence diagram of "generator client" interaction with CMake extensions.
9 changes: 9 additions & 0 deletions source/Concepts/images/code_generator.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sequenceDiagram
participant CodeGenerator_cmake
participant ament_package
participant ament_register_extension
CodeGenerator_cmake->>ament_package: CONFIG_EXTRAS
ament_package->>ament_register_extension: rosidl_create_type_descriptions_extensions, cmake_code_hook
ament_package->>ament_register_extension: rosidl_write_generator_arguments_extensions, cmake_code_hook
ament_package->>ament_register_extension: rosidl_generate_idl_interfaces, cmake_code_hook
Note right of ament_package: Execute a cmake.in template with variables and a cmake code hook.
Binary file added source/Concepts/images/code_generator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/Concepts/images/generator_client.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sequenceDiagram
deactivate generate_arguments_file
rosidl_write_generator_arguments_extensions_HOOK->>rosidl_generate_interfaces: arguments_file
end
rosidl_generate_interfaces>>rosidl_generator: [arguments_files]
rosidl_generate_interfaces->>rosidl_generator: [arguments_files]
loop ForEach rosidl_generate_idl_interfaces Hook
rosidl_generate_interfaces->>rosidl_generate_idl_interfaces_HOOK: generated_files
end
Binary file added source/Concepts/images/generator_client.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64531db

Please sign in to comment.