15 from typing
import List
16 from typing
import Text
25 Substitution that checks if a param file contains parameters for a node
31 source_file: launch.SomeSubstitutionsType,
32 node_name: Text) ->
None:
35 Construct the substitution
37 :param: source_file the parameter YAML file
38 :param: node_name the name of the node to check
41 from launch.utilities
import normalize_to_list_of_substitutions
42 self.
__source_file__source_file = normalize_to_list_of_substitutions(source_file)
46 def name(self) -> List[launch.Substitution]:
47 """Getter for name."""
51 """Return a description of this substitution as a string."""
54 def perform(self, context: launch.LaunchContext) -> Text:
55 yaml_filename = launch.utilities.perform_substitutions(context, self.
namename)
56 data = yaml.safe_load(open(yaml_filename,
'r'))
List[launch.Substitution] name(self)