pyrobosim.utils.general.replace_special_yaml_tokens
- pyrobosim.utils.general.replace_special_yaml_tokens(in_text, root_dir=None)
Replaces special tokens permitted in our YAML specification. If you want to add any other special tokens, you should do that here.
- Parameters:
in_text (str) – Input YAML text.
root_dir (str, optional) – Root directory for basing some tokens, uses the current directory if not specified.
- Returns:
YAML text with all special tokens substituted.
- Return type:
str