Fawkes API  Fawkes Development Version
navgraph_stconstr_thread.h
1 /***************************************************************************
2  * navgraph_stconstr_thread.h - static constraints for navgraph
3  *
4  * Created: Fri Jul 11 17:31:47 2014
5  * Copyright 2014 Tim Niemueller [www.niemueller.de]
6  ****************************************************************************/
7 
8 /* This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Library General Public License for more details.
17  *
18  * Read the full text in the LICENSE.GPL file in the doc directory.
19  */
20 
21 #ifndef _PLUGINS_NAVGRAPH_NAVGRAPH_STCONSTR_THREAD_H_
22 #define _PLUGINS_NAVGRAPH_NAVGRAPH_STCONSTR_THREAD_H_
23 
24 #include <aspect/configurable.h>
25 #include <aspect/logging.h>
26 #include <core/threading/thread.h>
27 #include <navgraph/aspect/navgraph.h>
28 #include <navgraph/constraints/constraint_repo.h>
29 #include <navgraph/navgraph.h>
30 
31 namespace fawkes {
32 class NavGraphStaticListNodeConstraint;
33 class NavGraphStaticListEdgeConstraint;
34 class NavGraphStaticListEdgeCostConstraint;
35 class NavGraphPolygonNodeConstraint;
36 class NavGraphPolygonEdgeConstraint;
37 } // namespace fawkes
38 
40  public fawkes::LoggingAspect,
43 {
44 public:
47 
48  virtual void init();
49  virtual void loop();
50  virtual void finalize();
51 
52  /** Stub to see name in backtrace for easier debugging. @see Thread::run() */
53 protected:
54  virtual void
55  run()
56  {
57  Thread::run();
58  }
59 
60 private:
63  fawkes::NavGraphStaticListEdgeCostConstraint *edge_cost_constraint_;
64  fawkes::NavGraphPolygonNodeConstraint * node_poly_constraint_;
65  fawkes::NavGraphPolygonEdgeConstraint * edge_poly_constraint_;
66 };
67 
68 #endif
fawkes::NavGraphPolygonNodeConstraint
Definition: polygon_node_constraint.h:36
NavGraphStaticConstraintsThread::finalize
virtual void finalize()
Finalize the thread.
Definition: navgraph_stconstr_thread.cpp:238
NavGraphStaticConstraintsThread::~NavGraphStaticConstraintsThread
virtual ~NavGraphStaticConstraintsThread()
Destructor.
Definition: navgraph_stconstr_thread.cpp:43
fawkes::NavGraphPolygonEdgeConstraint
Definition: polygon_edge_constraint.h:36
fawkes::NavGraphStaticListEdgeCostConstraint
Definition: static_list_edge_cost_constraint.h:38
NavGraphStaticConstraintsThread::init
virtual void init()
Initialize the thread.
Definition: navgraph_stconstr_thread.cpp:48
fawkes
fawkes::LoggingAspect
Definition: logging.h:36
fawkes::NavGraphAspect
Definition: navgraph.h:39
fawkes::NavGraphStaticListNodeConstraint
Definition: static_list_node_constraint.h:39
NavGraphStaticConstraintsThread::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition: navgraph_stconstr_thread.h:54
fawkes::Thread
Definition: thread.h:44
NavGraphStaticConstraintsThread::NavGraphStaticConstraintsThread
NavGraphStaticConstraintsThread()
Constructor.
Definition: navgraph_stconstr_thread.cpp:37
fawkes::ConfigurableAspect
Definition: configurable.h:36
NavGraphStaticConstraintsThread::loop
virtual void loop()
Code to execute in the thread.
Definition: navgraph_stconstr_thread.cpp:249
fawkes::NavGraphStaticListEdgeConstraint
Definition: static_list_edge_constraint.h:39
NavGraphStaticConstraintsThread
Definition: navgraph_stconstr_thread.h:38