Skip to content

Commit

Permalink
Fix missing node name parameter
Browse files Browse the repository at this point in the history
Distro A; OPSEC #4584

Signed-off-by: Roger Strain <rstrain@swri.org>
  • Loading branch information
Roger Strain committed Mar 3, 2021
1 parent e8b2dcb commit 0742de2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions launch_ros/launch_ros/descriptions/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def _perform_substitutions(self, context: LaunchContext, cmd: List) -> None:
return
self.__substitutions_performed = True
cmd_ext = ['--ros-args'] # Prepend ros specific arguments with --ros-args flag
if self.__node_name is not None:
cmd += ['-r', LocalSubstitution(
"ros_specific_arguments['name']", description='node name')]
cmd.extend([normalize_to_list_of_substitutions(x) for x in cmd_ext])
if self.__node_name is not None:
self.__expanded_node_name = perform_substitutions(
Expand Down

0 comments on commit 0742de2

Please sign in to comment.