Fawkes API  Fawkes Development Version
skiller_navgraph_feature.h
1 /***************************************************************************
2  * skiller_navgraph_thread.h - Optional skiller access to navgraph
3  *
4  * Created: Wed Jul 16 13:01:06 2014 (on flight to Joao Pessoa)
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_SKILLER_SKILLER_NAVGRAPH_FEATURE_H_
22 #define __PLUGINS_SKILLER_SKILLER_NAVGRAPH_FEATURE_H_
23 
24 #include "skiller_feature.h"
25 
26 #include <core/threading/thread.h>
27 #include <aspect/configurable.h>
28 #include <aspect/logging.h>
29 #include <navgraph/aspect/navgraph.h>
30 
32 : public fawkes::Thread,
33  public fawkes::LoggingAspect,
36  public SkillerFeature
37 {
38  public:
40  virtual ~SkillerNavGraphFeature();
41 
42  virtual void init();
43  virtual void loop();
44  virtual void finalize();
45 
46  virtual void init_lua_context(fawkes::LuaContext *context);
47  virtual void finalize_lua_context(fawkes::LuaContext *context);
48 
49  /** Stub to see name in backtrace for easier debugging. @see Thread::run() */
50  protected: virtual void run() { Thread::run();}
51 
52  private:
53 };
54 
55 #endif
virtual void loop()
Code to execute in the thread.
virtual void finalize_lua_context(fawkes::LuaContext *context)
Finalize a Lua context.
Thread to access the navgraph from skiller.
virtual void finalize()
Finalize the thread.
Thread class encapsulation of pthreads.
Definition: thread.h:42
virtual ~SkillerNavGraphFeature()
Destructor.
virtual void init_lua_context(fawkes::LuaContext *context)
Initialize a Lua context.
virtual void run()
Stub to see name in backtrace for easier debugging.
Lua C++ wrapper.
Definition: context.h:47
virtual void init()
Initialize the thread.
Thread aspect to log output.
Definition: logging.h:35
Thread aspect to access configuration data.
Definition: configurable.h:35
Skiller feature base class.
Thread aspect to access NavGraph.
Definition: navgraph.h:37