Fawkes API  Fawkes Development Version
position_3d_plugin.cpp
1 /***************************************************************************
2  * position_3d_plugin.cpp - Publish 3D Position to ROS
3  *
4  * Created: Wed Jul 16 17:04:42 2014
5  * Copyright 2014 Till Hofmann
6  *
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 <core/plugin.h>
23 
24 #include "position_3d_thread.h"
25 
26 using namespace fawkes;
27 
28 /** Plugin to publish 3D Positions to ROS
29  * @author Till Hofmann
30  */
32 {
33  public:
34  /** Constructor.
35  * @param config Fawkes configuration
36  */
38  : Plugin(config)
39  {
40  thread_list.push_back(new RosPosition3DThread());
41  }
42 };
43 
44 PLUGIN_DESCRIPTION("Plugin to publish 3D Positions to ROS")
45 EXPORT_PLUGIN(RosPosition3DPlugin)
Plugin interface class.
Definition: plugin.h:33
Fawkes library namespace.
Thread to publish Position3Ds to ROS.
Plugin to publish 3D Positions to ROS.
RosPosition3DPlugin(Configuration *config)
Constructor.
Interface for configuration handling.
Definition: config.h:67