pyrobosim.navigation.occupancy_grid.OccupancyGrid.from_file
- classmethod OccupancyGrid.from_file(folder: Path, filename: str | None = None) → Self
Loads an occupancy grid from a folder containing a PGM image file and a YAML file.
- Parameters:
folder – Path to folder.
filename – Name of YAML file, defaults to None. If None is specified, this function will try to find the file using the .yaml extension.