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 <aspect/configurable.h>
27#include <aspect/logging.h>
28#include <core/threading/thread.h>
29#include <navgraph/aspect/navgraph.h>
30
35 public SkillerFeature
36{
37public:
40
41 virtual void init();
42 virtual void loop();
43 virtual void finalize();
44
45 virtual void init_lua_context(fawkes::LuaContext *context);
46 virtual void finalize_lua_context(fawkes::LuaContext *context);
47
48 /** Stub to see name in backtrace for easier debugging. @see Thread::run() */
49protected:
50 virtual void
52 {
53 Thread::run();
54 }
55
56private:
57};
58
59#endif
Skiller feature base class.
Thread to access the navgraph from skiller.
virtual void loop()
Code to execute in the thread.
virtual void init_lua_context(fawkes::LuaContext *context)
Initialize a Lua context.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual void init()
Initialize the thread.
virtual void finalize_lua_context(fawkes::LuaContext *context)
Finalize a Lua context.
virtual void finalize()
Finalize the thread.
virtual ~SkillerNavGraphFeature()
Destructor.
Thread aspect to access configuration data.
Definition: configurable.h:33
Thread aspect to log output.
Definition: logging.h:33
Lua C++ wrapper.
Definition: context.h:44
Thread aspect to access NavGraph.
Definition: navgraph.h:36
Thread class encapsulation of pthreads.
Definition: thread.h:46