59 def perform(self, context: LaunchContext) -> Text:
61 Perform the substitution by retrieving the mappings and context.
63 from launch.utilities
import perform_substitutions
65 expanded_file_path = perform_substitutions(context, self.
__file_path)
66 expanded_mappings = {}
68 normalized_key = normalize_to_list_of_substitutions(key)
69 normalized_value = normalize_to_list_of_substitutions(value)
71 perform_substitutions(context, normalized_key)
72 ] = perform_substitutions(context, normalized_value)
74 return load_xacro(Path(expanded_file_path), mappings=expanded_mappings)