Coverage Control Library
|
Utility functions for transforming maps. More...
#include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include "CoverageControl/typedefs.h"
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) |
Utility functions for transforming maps.
Definition in file map_utils.h.