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/fm/sfmm.hpp>
11 #include <fast_methods/fm/sfmmstar.hpp>
12 #include <fast_methods/fm/fmmstar.hpp>
13 #include <fast_methods/datastructures/fmfibheap.hpp>
14 #include <fast_methods/datastructures/fmpriorityqueue.hpp>
15 #include <fast_methods/fm/fim.hpp>
16 #include <fast_methods/fm/gmm.hpp>
17 #include <fast_methods/fm/ufmm.hpp>
18 #include <fast_methods/fm/fsm.hpp>
19 #include <fast_methods/fm/lsm.hpp>
20 #include <fast_methods/fm/ddqm.hpp>
22 #include <fast_methods/io/gridplotter.hpp>
25 using namespace std::chrono;
31 typedef array<unsigned int, 2> Coord2D;
34 Coord2D dimsize {300,300};
35 FMGrid2D grid_fmm (dimsize);
36 Coord2D init_point = {150, 150};
37 Coord2D goal_point = {250, 250};
40 std::vector<Solver<FMGrid2D>*> solvers;
61 s->setEnvironment(&grid_fmm);
63 s->setInitialAndGoalPoints(init_point, goal_point);
67 cout <<
"\tElapsed "<< s->getName() <<
" time: " << s->getTime() <<
" ms" <<
'\n';
76 std::cout <<
"Solver type SFMM" <<
'\n';
78 std::cout <<
"Solver NOT type SFMM" <<
'\n';
82 std::cout <<
"Solver type SFMM" <<
'\n';
84 std::cout <<
"Solver NOT type SFMM" <<
'\n';
92 for (
auto & s : solvers)
Implements Fast Sweeping Method.
Fast Marching Method using a untidy priority queue (UFMM).
T * as()
Cast this instance to a desired type.
Encapsulates the calls to FMM with heuristics enabled.
Implements the Simplified Fast Marching Method, encapsulating FMM with a priority queue...
Templated class which represents a n-dimensional grid map. Its cells are assumed to be cubic...
Implements Double Dynamic Queue Method.
Abstract class that serves as interface for the actual solvers implemented. It requires (at least) th...
static void plotArrivalTimes(nDGridMap< T, ndims > &grid, std::string name="")
Plots the values map of a given grid. It is based on the nDGridMap::getValue(). This function has to ...
Implements Lock Sweeping Method.
Implements Fast Iterative Method.
Templated class which computes Group Marching Method (GMM).
Implements the Fast Marching Method (FMM).