Skip to content

Commit 0742de2

Browse files
author
Roger Strain
committed
Fix missing node name parameter
Distro A; OPSEC #4584 Signed-off-by: Roger Strain <[email protected]>
1 parent e8b2dcb commit 0742de2

File tree

1 file changed

+3
-0
lines changed
  • launch_ros/launch_ros/descriptions

1 file changed

+3
-0
lines changed

launch_ros/launch_ros/descriptions/node.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ def _perform_substitutions(self, context: LaunchContext, cmd: List) -> None:
225225
return
226226
self.__substitutions_performed = True
227227
cmd_ext = ['--ros-args'] # Prepend ros specific arguments with --ros-args flag
228+
if self.__node_name is not None:
229+
cmd += ['-r', LocalSubstitution(
230+
"ros_specific_arguments['name']", description='node name')]
228231
cmd.extend([normalize_to_list_of_substitutions(x) for x in cmd_ext])
229232
if self.__node_name is not None:
230233
self.__expanded_node_name = perform_substitutions(

0 commit comments

Comments
 (0)