15 from typing
import List
16 from typing
import Text
24 Substitution that checks if a param file contains parameters for a node.
30 self, source_file: launch.SomeSubstitutionsType, node_name: Text
34 Construct the substitution
36 :param: source_file the parameter YAML file
37 :param: node_name the name of the node to check
40 from launch.utilities
import (
41 normalize_to_list_of_substitutions,
44 self.
__source_file__source_file = normalize_to_list_of_substitutions(source_file)
48 def name(self) -> List[launch.Substitution]:
49 """Getter for name."""
53 """Return a description of this substitution as a string."""
56 def perform(self, context: launch.LaunchContext) -> Text:
57 yaml_filename = launch.utilities.perform_substitutions(context, self.
namename)
58 data = yaml.safe_load(open(yaml_filename,
'r'))
List[launch.Substitution] name(self)