Fawkes API Fawkes Development Version
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
25#include "sensor_thread.h"
26#include "thread_roomba_500.h"
27
28using namespace fawkes;
29
30/** @class RoombaPlugin "roomba_plugin.h"
31 * Plugin to interface with a Roomba robot.
32 * @author Tim Niemueller
33 */
34
35/** Constructor.
36 * @param config Fawkes configuration
37 */
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
45PLUGIN_DESCRIPTION("Roomba vacuum robot plugin.")
46EXPORT_PLUGIN(RoombaPlugin)
Roomba 500 integration thread.
Plugin to interface with a Roomba robot.
Definition: roomba_plugin.h:29
RoombaPlugin(fawkes::Configuration *config)
Constructor.
Roomba sensor hook integration thread.
Definition: sensor_thread.h:35
Interface for configuration handling.
Definition: config.h:68
Plugin interface class.
Definition: plugin.h:34
ThreadList thread_list
Thread list member.
Definition: plugin.h:53
void push_back(Thread *thread)
Add thread to the end.
Fawkes library namespace.