diff --git a/moveit_configs_utils/moveit_configs_utils/substitutions/xacro.py b/moveit_configs_utils/moveit_configs_utils/substitutions/xacro.py index f49ebb13340..60af65907e6 100644 --- a/moveit_configs_utils/moveit_configs_utils/substitutions/xacro.py +++ b/moveit_configs_utils/moveit_configs_utils/substitutions/xacro.py @@ -67,8 +67,8 @@ def perform(self, context: LaunchContext) -> Text: for key, value in self.__mappings.items(): normalized_key = normalize_to_list_of_substitutions(key) normalized_value = normalize_to_list_of_substitutions(value) - expanded_mappings[ - perform_substitutions(context, normalized_key) - ] = perform_substitutions(context, normalized_value) + expanded_mappings[perform_substitutions(context, normalized_key)] = ( + perform_substitutions(context, normalized_value) + ) return load_xacro(Path(expanded_file_path), mappings=expanded_mappings)