pyrobosim.navigation.occupancy_grid.OccupancyGrid.from_file

classmethod OccupancyGrid.from_file(folder, filename=None)

Loads an occupancy grid from a folder containing a PGM image file and a YAML file.

Parameters:
  • folder (str) – Path to folder.

  • filename (str) – Name of YAML file, defaults to None. If None is specified, this function will try to find the file using the .yaml extension.