6 #include <fast_methods/ndgridmap/fmcell.h>
7 #include <fast_methods/ndgridmap/ndgridmap.hpp>
9 #include <fast_methods/fm/fmm.hpp>
10 #include <fast_methods/io/maploader.hpp>
11 #include <fast_methods/io/gridwriter.hpp>
14 using namespace std::chrono;
16 int main(
int argc,
char **argv)
20 typedef array<unsigned int, 3> Coord3D;
25 Coord3D init_point = {5, 5, 5};
28 std::vector<Solver<FMGrid3D>*> solvers;
34 s->setEnvironment(&grid_fmm);
35 s->setInitialPoints(init_point);
37 cout <<
"\tElapsed "<< s->getName() <<
" time: " << s->getTime() <<
" ms" <<
'\n';
static void saveGridValues(const char *filename, nDGridMap< T, ndims > &grid)
Saves grid values in ASCII format into the specified file.
Templated class which represents a n-dimensional grid map. Its cells are assumed to be cubic...
static int loadMapFromText(const char *filename, nDGridMap< T, ndims > &grid)
Loads the initial binary map for a given grid. It is based on the nDGridMap::setOccupancy() which has...
Abstract class that serves as interface for the actual solvers implemented. It requires (at least) th...
Implements the Fast Marching Method (FMM).