Coverage Control Library
Loading...
Searching...
No Matches
map_utils.h File Reference

Utility functions for transforming maps. More...

#include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include "CoverageControl/typedefs.h"
+ Include dependency graph for map_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MapBounds
 

Namespaces

namespace  CoverageControl
 Namespace for the CoverageControl library.
 
namespace  CoverageControl::MapUtils
 Namespace for map utilities functions.
 

Functions

void GetClosestGridCoordinate (double const resolution, Point2 const &pt, int &idx, int &idy)
 Gets the closest point on the grid.
 
void ComputeOffsets (double const resolution, Point2 const &pos, int const submap_size, int const map_size, MapBounds &index, MapBounds &offset)
 
template<typename T = MapType>
void GetSubMap (double const resolution, Point2 const &pos, int const map_size, T const &map, int const submap_size, T &submap)
 
template<typename T = MapType>
auto GetSubMap (double const resolution, Point2 const &pos, int const map_size, T const &map, int const submap_size)
 
int WriteMap (MapType const &map, std::string const &file_name)
 Write the world map to a file.
 
int WriteMapSparse (MapType const &map, std::string const &file_name)
 Write the world map to a file.
 
int IsPointOutsideBoundary (double const resolution, Point2 const &pos, int const sensor_size, int const boundary)
 

Detailed Description

Utility functions for transforming maps.

Definition in file map_utils.h.