Fawkes API  Fawkes Development Version
types.h
1 
2 /***************************************************************************
3  * skel_if_observer.h - Skeleton interface observer
4  *
5  * Created: Sat Apr 02 18:14:37 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_TYPES_H_
24 #define _PLUGINS_OPENNI_UTILS_TYPES_H_
25 
26 #include <map>
27 #include <string>
28 
29 namespace fawkes {
30 class HumanSkeletonInterface;
31 class HumanSkeletonProjectionInterface;
32 class ObjectPositionInterface;
33 
34 namespace openni {
35 
36 /** User info to pass to draw_skeletons(). */
37 typedef struct
38 {
39  fawkes::HumanSkeletonInterface * skel_if; /**< Skeleton interface. */
40  fawkes::HumanSkeletonProjectionInterface *proj_if; /**< Projection interface. */
41 } UserInfo;
42 
43 /** Map from name to user info. */
44 typedef std::map<std::string, UserInfo> UserMap;
45 
46 /** Hand info to pass to draw_skeletons(). */
47 typedef struct
48 {
49  fawkes::ObjectPositionInterface *hand_if; /**< Hand pos interface. */
50 } HandInfo;
51 
52 /** Map from name to hand info. */
53 typedef std::map<std::string, HandInfo> HandMap;
54 
55 } // namespace openni
56 } // end namespace fawkes
57 
58 #endif
fawkes::openni::UserInfo::proj_if
fawkes::HumanSkeletonProjectionInterface * proj_if
Projection interface.
Definition: types.h:40
fawkes::HumanSkeletonInterface
HumanSkeletonInterface Fawkes BlackBoard Interface.
Definition: HumanSkeletonInterface.h:34
fawkes::HumanSkeletonProjectionInterface
HumanSkeletonProjectionInterface Fawkes BlackBoard Interface.
Definition: HumanSkeletonProjectionInterface.h:34
fawkes
Fawkes library namespace.
fawkes::openni::UserInfo::skel_if
fawkes::HumanSkeletonInterface * skel_if
Skeleton interface.
Definition: types.h:39
fawkes::openni::UserInfo
User info to pass to draw_skeletons().
Definition: types.h:38
fawkes::openni::HandInfo
Hand info to pass to draw_skeletons().
Definition: types.h:48
fawkes::openni::HandInfo::hand_if
fawkes::ObjectPositionInterface * hand_if
Hand pos interface.
Definition: types.h:49
fawkes::ObjectPositionInterface
ObjectPositionInterface Fawkes BlackBoard Interface.
Definition: ObjectPositionInterface.h:34