Fawkes API  Fawkes Development Version
pddl-planner_plugin.cpp
1 
2 /***************************************************************************
3  * pddl-planner_plugin.cpp - pddl-planner
4  *
5  * Created: Wed Dec 7 19:09:44 2016
6  * Copyright 2016 Frederik Zwilling
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.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Library General Public License for more details.
18  *
19  * Read the full text in the LICENSE.GPL file in the doc directory.
20  */
21 
22 #include "pddl-planner_thread.h"
23 
24 #include <core/plugin.h>
25 
26 using namespace fawkes;
27 
28 /** @class PddlPlannerPlugin "pddl-planner_plugin.cpp"
29  * Starts a pddl planner and writes the resulting plan into the robot memory
30  * @author Frederik Zwilling
31  */
33 {
34 public:
35  /** Constructor.
36  * @param config Fakwes configuration
37  */
38  explicit PddlPlannerPlugin(Configuration *config) : Plugin(config)
39  {
40  thread_list.push_back(new PddlPlannerThread());
41  }
42 };
43 
44 PLUGIN_DESCRIPTION("Starts a pddl planner and writes the resulting plan into the robot memory")
45 EXPORT_PLUGIN(PddlPlannerPlugin)
Starts a pddl planner and writes the resulting plan into the robot memory.
PddlPlannerPlugin(Configuration *config)
Constructor.
Starts a pddl planner and writes the resulting plan into the robot memory.
Interface for configuration handling.
Definition: config.h:68
Plugin interface class.
Definition: plugin.h:34
Fawkes library namespace.