Fawkes API
Fawkes Development Version
cmdvel_plugin.cpp
1
2
/***************************************************************************
3
* cmdvel_plugin.cpp - Translate ROS Twist messages to Navigator transrot
4
*
5
* Created: Fri Jun 1 13:29:39 CEST 2012
6
* Copyright 2012 Sebastian Reuter
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 "cmdvel_thread.h"
23
24
#include <core/plugin.h>
25
26
using namespace
fawkes
;
27
28
/** Plugin to translate ROS Twist messages to Navigator transrot. */
29
class
ROSCmdVelPlugin
:
public
fawkes::Plugin
30
{
31
public
:
32
/** Constructor.
33
* @param config Fawkes configuration
34
*/
35
explicit
ROSCmdVelPlugin
(
Configuration
*config) :
Plugin
(config)
36
{
37
thread_list.push_back(
new
ROSCmdVelThread
());
38
}
39
};
40
41
PLUGIN_DESCRIPTION(
"Translate ROS Twist to Fawkes TransRot"
)
42
EXPORT_PLUGIN(
ROSCmdVelPlugin
)
fawkes::Configuration
Interface for configuration handling.
Definition:
config.h:65
ROSCmdVelThread
Thread to translate ROS twist messages to navigator transrot messages.
Definition:
cmdvel_thread.h:43
fawkes
Fawkes library namespace.
ROSCmdVelPlugin::ROSCmdVelPlugin
ROSCmdVelPlugin(Configuration *config)
Constructor.
Definition:
cmdvel_plugin.cpp:35
fawkes::Plugin
Plugin interface class.
Definition:
plugin.h:34
ROSCmdVelPlugin
Plugin to translate ROS Twist messages to Navigator transrot.
Definition:
cmdvel_plugin.cpp:30
src
plugins
ros
cmdvel_plugin.cpp
Generated by
1.8.20