Fawkes API
Fawkes Development Version
imu_plugin.cpp
1
/***************************************************************************
2
* imu_plugin.cpp - Publish IMU data to ROS
3
*
4
* Created: Mon 03 Apr 2017 13:21:33 CEST 13:21
5
* Copyright 2017 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 "imu_thread.h"
22
23
#include <core/plugin.h>
24
25
using namespace
fawkes
;
26
27
/** Plugin to publish IMU data to ROS.
28
* @author Till Hofmann
29
*/
30
class
RosIMUPlugin
:
public
fawkes::Plugin
31
{
32
public
:
33
/** Constructor.
34
* @param config Fawkes configuration
35
*/
36
explicit
RosIMUPlugin
(
Configuration
*config) :
Plugin
(config)
37
{
38
thread_list.push_back(
new
RosIMUThread
());
39
}
40
};
41
42
PLUGIN_DESCRIPTION(
"ROS IMU Publisher Plugin"
)
43
EXPORT_PLUGIN(
RosIMUPlugin
)
RosIMUPlugin
Plugin to publish IMU data to ROS.
Definition:
imu_plugin.cpp:30
fawkes::Configuration
Definition:
config.h:68
fawkes
RosIMUPlugin::RosIMUPlugin
RosIMUPlugin(Configuration *config)
Constructor.
Definition:
imu_plugin.cpp:36
RosIMUThread
Definition:
imu_thread.h:32
fawkes::Plugin
Definition:
plugin.h:37
src
plugins
ros
imu_plugin.cpp
Generated by
1.8.16