MIRA
OccupancyGrid.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) by
3  * MetraLabs GmbH (MLAB), GERMANY
4  * and
5  * Neuroinformatics and Cognitive Robotics Labs (NICR) at TU Ilmenau, GERMANY
6  * All rights reserved.
7  *
8  * Redistribution and modification of this code is strictly prohibited.
9  *
10  * IN NO EVENT SHALL "MLAB" OR "NICR" BE LIABLE TO ANY PARTY FOR DIRECT,
11  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
12  * THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF "MLAB" OR
13  * "NICR" HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14  *
15  * "MLAB" AND "NICR" SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
16  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18  * ON AN "AS IS" BASIS, AND "MLAB" AND "NICR" HAVE NO OBLIGATION TO
19  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR MODIFICATIONS.
20  */
21 
30 #ifndef _MIRA_OCCUPANCYGRID_H_
31 #define _MIRA_OCCUPANCYGRID_H_
32 
33 #include <maps/GridMapIO.h>
34 
35 #include <maps/MapsExports.h>
36 
37 namespace mira { namespace maps {
38 
40 
58 
60 
65 
70  bool truncateTo254 = true);
71 
77  float cellSize,
78  const Point2i& offset,
79  bool truncateTo254 = true);
80 
86  float cellSize,
87  const Point2i& offset,
88  bool truncateTo254 = true);
89 
94 
99  const OccupancyGrid& map,
100  bool fullImagePath = true);
101 
103 
104 }}
105 
106 #endif
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
Definition: GridMap.h:67
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.