Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Extra Arguments for Component Manager. (backport #4904) #4944

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions source/Tutorials/Intermediate/Composition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,32 @@ Passing additional arguments into components
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The ``ros2 component load`` command-line supports passing particular options to the component manager for use when constructing the node.
As of now, the only command-line option that is supported is to instantiate a node using intra-process communication.
This functionality can be used as follows:

The following example shows the use of the extra arguments ``use_intra_process_comms`` and ``forward_global_arguments``:

.. code-block:: bash

ros2 component load /ComponentManager composition composition::Talker -e use_intra_process_comms:=true
ros2 component load /ComponentManager composition composition::Talker -e use_intra_process_comms:=true -e forward_global_arguments:=false

The following extra arguments are supported.

.. list-table:: Extra Arguments for Component Manager
:widths: 15 15 15 15
:header-rows: 1

* - Argument
- Type
- Default
- Description
* - ``forward_global_arguments``
- Boolean
- True
- Apply global arguments to the component node when loading.
* - ``use_intra_process_comms``
- Boolean
- False
- Enable intra-process communication in the component node.


Composable nodes as shared libraries
------------------------------------
Expand Down