pyrobosim.core.yaml_utils.WorldYamlLoader.from_yaml
- WorldYamlLoader.from_yaml(world_dict: dict[str, Any], world_dir: Path | None = None, world: World | None = None) World
Load a world from a YAML description.
- Parameters:
world_dict – Dictionary containing all the world information
world_dir – Root directory for basing some tokens, uses the current directory if not specified.
world – If specified, loads the YAML contents to this world. Otherwise, creates and returns a new world instance.
- Returns:
World model instance.