Skip to content

Commit 214b60b

Browse files
authored
[dashing] Fix LoadComposableNodes action so that loading happens… (#131)
Fixes #107. Before, the first call to _load_in_sequence was not asynchronous, unlike it's recursive calls. This change makes the first call asynchronous. Signed-off-by: Jacob Perron <[email protected]>
1 parent 655a46f commit 214b60b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

launch_ros/launch_ros/actions/load_composable_nodes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,9 @@ def execute(
167167
self.__target_container.node_name
168168
)
169169
)
170-
# Assume user has configured `LoadComposableNodes` to happen after container action
171-
self._load_in_sequence(self.__composable_node_descriptions, context)
170+
171+
context.add_completion_future(
172+
context.asyncio_loop.run_in_executor(
173+
None, self._load_in_sequence, self.__composable_node_descriptions, context
174+
)
175+
)

0 commit comments

Comments
 (0)