Fawkes API  Fawkes Development Version
grid.h
1 
2 /***************************************************************************
3  * grid.h - generate navgraph based on a grid
4  *
5  * Created: Sun Apr 23 18:22:09 2017
6  * Copyright 2015-2017 Tim Niemueller [www.niemueller.de]
7  ****************************************************************************/
8 
9 /* This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version. A runtime exception applies to
13  * this software (see LICENSE.GPL_WRE file mentioned below for details).
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
21  */
22 
23 #ifndef _LIBS_NAVGRAPH_GENERATOR_GRID_H_
24 #define _LIBS_NAVGRAPH_GENERATOR_GRID_H_
25 
26 #include <navgraph/generators/generator.h>
27 #include <navgraph/navgraph.h>
28 #include <utils/math/polygon.h>
29 
30 namespace fawkes {
31 
33 {
34 public:
35  NavGraphGeneratorGrid(const std::map<std::string, std::string> &params);
36  virtual ~NavGraphGeneratorGrid();
37 
38  virtual void compute(fawkes::LockPtr<fawkes::NavGraph> graph);
39 
40 private:
41  float spacing_;
42  float margin_;
43  bool add_diagonals_;
44 };
45 
46 } // end of namespace fawkes
47 
48 #endif
fawkes::LockPtr< fawkes::NavGraph >
fawkes::NavGraphGeneratorGrid::~NavGraphGeneratorGrid
virtual ~NavGraphGeneratorGrid()
Destructor.
Definition: grid.cpp:99
fawkes::NavGraphGenerator
Base class for navgraph generators.
Definition: generator.h:31
fawkes::NavGraphGeneratorGrid
Generate navgraph using a Grid diagram.
Definition: grid.h:33
fawkes::NavGraphGeneratorGrid::NavGraphGeneratorGrid
NavGraphGeneratorGrid(const std::map< std::string, std::string > &params)
Constructor.
Definition: grid.cpp:61
fawkes
Fawkes library namespace.
fawkes::NavGraphGeneratorGrid::compute
virtual void compute(fawkes::LockPtr< fawkes::NavGraph > graph)
Compute graph.
Definition: grid.cpp:104