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
30namespace fawkes {
31
33{
34public:
35 NavGraphGeneratorGrid(const std::map<std::string, std::string> &params);
36 virtual ~NavGraphGeneratorGrid();
37
39
40private:
41 float spacing_;
42 float margin_;
43 bool add_diagonals_;
44};
45
46} // end of namespace fawkes
47
48#endif
Generate navgraph using a Grid diagram.
Definition: grid.h:33
virtual void compute(fawkes::LockPtr< fawkes::NavGraph > graph)
Compute graph.
Definition: grid.cpp:104
virtual ~NavGraphGeneratorGrid()
Destructor.
Definition: grid.cpp:99
NavGraphGeneratorGrid(const std::map< std::string, std::string > &params)
Constructor.
Definition: grid.cpp:61
Base class for navgraph generators.
Definition: generator.h:31
Fawkes library namespace.