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
hand_if_observer.h
1
2
/***************************************************************************
3
* hand_if_observer.h - Skeleton hand interface observer
4
*
5
* Created: Sat Apr 02 19:26:57 2011 (RoboCup German Open 2011, Magdeburg)
6
* Copyright 2006-2011 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
#ifndef __PLUGINS_OPENNI_UTILS_HAND_IF_OBSERVER_H_
24
#define __PLUGINS_OPENNI_UTILS_HAND_IF_OBSERVER_H_
25
26
#include <plugins/openni/utils/types.h>
27
#include <blackboard/interface_observer.h>
28
29
#include <queue>
30
#include <string>
31
32
namespace
fawkes {
33
class
BlackBoard;
34
class
Mutex;
35
36
namespace
openni {
37
#if 0
/* just to make Emacs auto-indent happy */
38
}
39
}
40
#endif
41
42
class
HandIfObserver
:
public
BlackBoardInterfaceObserver
43
{
44
public
:
45
HandIfObserver
(
BlackBoard
*bb, HandMap &hands);
46
~
HandIfObserver
();
47
48
virtual
void
bb_interface_created(
const
char
*type,
const
char
*
id
)
throw
();
49
50
void
process_queue();
51
52
private
:
53
HandMap &__hands;
54
BlackBoard
*__bb;
55
Mutex
*__queue_lock;
56
unsigned
int
__active_queue;
57
std::queue<std::string> __queues[2];
58
};
59
60
}
// end namespace fawkes::openni
61
}
// end namespace fawkes
62
63
#endif
src
plugins
openni
utils
hand_if_observer.h
Generated by
1.8.1.2