Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
roomba_plugin.cpp
1
2
/***************************************************************************
3
* roomba_plugin.cpp - Plugin to interface with a Roomba
4
*
5
* Created: Thu Dec 30 22:05:07 2010
6
* Copyright 2006-2010 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#include "roomba_plugin.h"
24
#include "thread_roomba_500.h"
25
#include "sensor_thread.h"
26
27
using namespace
fawkes;
28
29
/** @class RoombaPlugin "roomba_plugin.h"
30
* Plugin to interface with a Roomba robot.
31
* @author Tim Niemueller
32
*/
33
34
/** Constructor.
35
* @param config Fawkes configuration
36
*/
37
RoombaPlugin::RoombaPlugin
(
Configuration
*config)
38
:
Plugin
(config)
39
{
40
Roomba500Thread
*roomba500_thread =
new
Roomba500Thread
();
41
thread_list
.
push_back
(roomba500_thread);
42
thread_list
.
push_back
(
new
RoombaSensorThread
(roomba500_thread));
43
}
44
45
46
PLUGIN_DESCRIPTION(
"Roomba vacuum robot plugin."
)
47
EXPORT_PLUGIN(
RoombaPlugin
)
src
plugins
roomba
roomba_plugin.cpp
Generated by
1.8.3.1