ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I did not want to declare another launch argument, so I generalized the PythonExpression solution above in a function.

from launch import SomeSubstitutionsType
from launch.substitutions import PythonExpression
from launch.utilities import normalize_to_list_of_substitutions

def cat_substitutions(substitutions: SomeSubstitutionsType) -> Substitution:
    return PythonExpression(["'", *normalize_to_list_of_substitutions(substitutions), "'"])