30 #ifndef _MIRA_OCCUPANCYGRID_H_ 31 #define _MIRA_OCCUPANCYGRID_H_ 37 namespace mira {
namespace maps {
70 bool truncateTo254 =
true);
79 bool truncateTo254 =
true);
88 bool truncateTo254 =
true);
100 bool fullImagePath =
true);
MIRA_MAPPING_MAPS_EXPORT OccupancyGrid loadOccupancyGridFromImage(const Img<> &img, float cellSize, const Point2i &offset, bool truncateTo254=true)
Loads the specified grayscale image as occupancy map.
A struct representing some information about a grid map and an additional frame.
Definition: GridMapIO.h:60
boost::filesystem::path Path
A struct representing some information about a grid map and an additional channel.
Definition: GridMapIO.h:73
Maps export macro declaration.
GridMap< uint8 > OccupancyGrid
Occupancy Map, typedef for 1 channel GridMap containing 8-bit unsigned integers per cell...
Definition: OccupancyGrid.h:57
MIRA_MAPPING_MAPS_EXPORT void saveOccupancyGridToFile(Path filename, const OccupancyGrid &map, bool fullImagePath=true)
Saves the specified occupancy map as grayscale image and description xml.
MIRA_MAPPING_MAPS_EXPORT OccupancyGrid loadOccupancyGridFromGM2File(const Path &filename)
Loads the specified GM2 map as occupancy map.
Import/Export for GridMap.
A struct representing some information about a grid map.
Definition: GridMapIO.h:44
#define MIRA_MAPPING_MAPS_EXPORT
Definition: MapsExports.h:44
MIRA_MAPPING_MAPS_EXPORT OccupancyGrid loadOccupancyGridFromFile(const Path &filename, float cellSize, const Point2i &offset, bool truncateTo254=true)
Loads the specified grayscale image from to as occupancy map.
MIRA_MAPPING_MAPS_EXPORT OccupancyGrid loadOccupancyGrid(const OccupancyGridInfo &info, bool truncateTo254=true)
Loads the grayscale image specified by info as occupancy map.