Fawkes API
Fawkes Development Version
execution_time_estimator_navgraph_plugin.cpp
1
/***************************************************************************
2
* execution_time_estimator_navgraph_plugin.cpp - Skill exec times from navgraph
3
*
4
* Created: Tue 07 Jan 2020 15:36:35 CET 15:36
5
* Copyright 2020 Till Hofmann <hofmann@kbsg.rwth-aachen.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
#include "execution_time_estimator_navgraph_thread.h"
22
23
#include <core/plugin.h>
24
25
/** @class ExecutionTimeEstimatorNavgraphPlugin
26
* Plugin to get estimates for skill execution times from the navgraph.
27
*/
28
29
class
ExecutionTimeEstimatorNavgraphPlugin
:
public
fawkes::Plugin
30
{
31
public
:
32
/** Constructor.
33
* @param config The fawkes config to use
34
*/
35
explicit
ExecutionTimeEstimatorNavgraphPlugin
(
fawkes::Configuration
*
config
) :
Plugin
(
config
)
36
{
37
thread_list
.
push_back
(
new
ExecutionTimeEstimatorNavgraphThread
());
38
}
39
};
40
41
PLUGIN_DESCRIPTION(
"Estimate skill execution times with the navgraph"
)
42
EXPORT_PLUGIN(
ExecutionTimeEstimatorNavgraphPlugin
)
fawkes::Plugin::config
Configuration * config
Fawkes configuration.
Definition:
plugin.h:58
fawkes::Plugin::thread_list
ThreadList thread_list
Thread list member.
Definition:
plugin.h:53
fawkes::ThreadList::push_back
void push_back(Thread *thread)
Add thread to the end.
Definition:
thread_list.cpp:773
ExecutionTimeEstimatorNavgraphPlugin
Plugin to get estimates for skill execution times from the navgraph.
Definition:
execution_time_estimator_navgraph_plugin.cpp:30
fawkes::Configuration
Interface for configuration handling.
Definition:
config.h:65
ExecutionTimeEstimatorNavgraphThread
Get estimates for skill execution times from the navgraph.
Definition:
execution_time_estimator_navgraph_thread.h:35
Plugin
Plugin representation for JSON transfer.
Definition:
Plugin.h:28
ExecutionTimeEstimatorNavgraphPlugin::ExecutionTimeEstimatorNavgraphPlugin
ExecutionTimeEstimatorNavgraphPlugin(fawkes::Configuration *config)
Constructor.
Definition:
execution_time_estimator_navgraph_plugin.cpp:35
fawkes::Plugin
Plugin interface class.
Definition:
plugin.h:34
src
plugins
execution-time-estimator-navgraph
execution_time_estimator_navgraph_plugin.cpp
Generated by
1.8.20