Fawkes API
Fawkes Development Version
robot_description_plugin.cpp
1
/***************************************************************************
2
* robot_description_plugin.cpp - ROS Robot Description Plugin
3
*
4
* Created: Fri May 16 15:26:33 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 "robot_description_thread.h"
23
24
#include <core/plugin.h>
25
26
using namespace
fawkes
;
27
28
/** Plugin to publish the robot description to ROS
29
* @author Till Hofmann
30
*/
31
class
ROSRobotDescriptionPlugin
:
public
fawkes::Plugin
32
{
33
public
:
34
/** Constructor.
35
* @param config Fawkes configuration
36
*/
37
explicit
ROSRobotDescriptionPlugin
(
Configuration
*config) :
Plugin
(config)
38
{
39
thread_list.push_back(
new
ROSRobotDescriptionThread
());
40
}
41
};
42
43
PLUGIN_DESCRIPTION(
"Plugin to publish the robot description to ROS"
)
44
EXPORT_PLUGIN(
ROSRobotDescriptionPlugin
)
fawkes::Configuration
Interface for configuration handling.
Definition:
config.h:65
fawkes
Fawkes library namespace.
ROSRobotDescriptionPlugin::ROSRobotDescriptionPlugin
ROSRobotDescriptionPlugin(Configuration *config)
Constructor.
Definition:
robot_description_plugin.cpp:37
ROSRobotDescriptionPlugin
Plugin to publish the robot description to ROS.
Definition:
robot_description_plugin.cpp:32
ROSRobotDescriptionThread
Thread to publish the robot description to ROS.
Definition:
robot_description_thread.h:36
fawkes::Plugin
Plugin interface class.
Definition:
plugin.h:34
src
plugins
ros
robot_description_plugin.cpp
Generated by
1.8.20