MIRA
Classes | Namespaces | Functions
PolygonTools.h File Reference
#include <geometry/RasterPolygon.h>
#include <maps/GridMap.h>
#include <transform/Pose.h>
Include dependency graph for PolygonTools.h:

Go to the source code of this file.

Classes

class  TransformToMapFunctor< Celltype >
 Functor to rotate, shift and transform a point to map coordinates This functor stores cos and sin of the provided rotation. More...
 

Namespaces

 mira
 
 mira::maps
 
 mira::maps::polygon
 

Functions

template<class Celltype >
Celltype getMaximum (const maps::GridMap< Celltype > &map, const Polygon2f &polygon, const Pose2 &polygonPose, uint8 precision=1)
 Function for finding the maximum value of cells that have an overlap with the rasterization of a polygon at certain pose. More...
 
template<class Celltype >
Celltype getMaximum (const maps::GridMap< Celltype > &map, const std::vector< Polygon2f > &polygons, const Pose2 &polygonPose, uint8 precision=1)
 Function for finding the maximum value of cells that have an overlap with one of the polygons at the provided pose. More...
 
template<class Celltype >
void fill (maps::GridMap< Celltype > &map, const Polygon2f &polygon, const Pose2 &polygonPose, const Celltype fillValue, uint8 precision=1)
 Function for filling cells that overlap with the polygon at the provided pose. More...
 
template<class Celltype >
void fill (maps::GridMap< Celltype > &map, const std::vector< Polygon2f > &polygons, const Pose2 &polygonPose, const Celltype fillValue, uint8 precision=1)
 Function for filling cells that overlap with one of the polygons at the provided pose. More...