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 #if 0 /* just to make Emacs auto-indent happy */
36  }
37 }
38 #endif
39 
40 /** User info to pass to draw_skeletons(). */
41 typedef struct {
42  fawkes::HumanSkeletonInterface *skel_if; /**< Skeleton interface. */
43  fawkes::HumanSkeletonProjectionInterface *proj_if; /**< Projection interface. */
44 } UserInfo;
45 
46 /** Map from name to user info. */
47 typedef std::map<std::string, UserInfo> UserMap;
48 
49 
50 /** Hand info to pass to draw_skeletons(). */
51 typedef struct {
52  fawkes::ObjectPositionInterface *hand_if; /**< Hand pos interface. */
53 } HandInfo;
54 
55 /** Map from name to hand info. */
56 typedef std::map<std::string, HandInfo> HandMap;
57 
58 } // end namespace fawkes::openni
59 } // end namespace fawkes
60 
61 #endif
HumanSkeletonProjectionInterface Fawkes BlackBoard Interface.
ObjectPositionInterface Fawkes BlackBoard Interface.
Hand info to pass to draw_skeletons().
Definition: types.h:51
Fawkes library namespace.
fawkes::HumanSkeletonProjectionInterface * proj_if
Projection interface.
Definition: types.h:43
fawkes::HumanSkeletonInterface * skel_if
Skeleton interface.
Definition: types.h:42
fawkes::ObjectPositionInterface * hand_if
Hand pos interface.
Definition: types.h:52
HumanSkeletonInterface Fawkes BlackBoard Interface.
User info to pass to draw_skeletons().
Definition: types.h:41