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
29namespace fawkes {
30class HumanSkeletonInterface;
31class HumanSkeletonProjectionInterface;
32class ObjectPositionInterface;
33
34namespace openni {
35
36/** User info to pass to draw_skeletons(). */
37typedef 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. */
44typedef std::map<std::string, UserInfo> UserMap;
45
46/** Hand info to pass to draw_skeletons(). */
47typedef struct
48{
49 fawkes::ObjectPositionInterface *hand_if; /**< Hand pos interface. */
50} HandInfo;
51
52/** Map from name to hand info. */
53typedef std::map<std::string, HandInfo> HandMap;
54
55} // namespace openni
56} // end namespace fawkes
57
58#endif
HumanSkeletonInterface Fawkes BlackBoard Interface.
HumanSkeletonProjectionInterface Fawkes BlackBoard Interface.
ObjectPositionInterface Fawkes BlackBoard Interface.
Fawkes library namespace.
Hand info to pass to draw_skeletons().
Definition: types.h:48
fawkes::ObjectPositionInterface * hand_if
Hand pos interface.
Definition: types.h:49
User info to pass to draw_skeletons().
Definition: types.h:38
fawkes::HumanSkeletonInterface * skel_if
Skeleton interface.
Definition: types.h:39
fawkes::HumanSkeletonProjectionInterface * proj_if
Projection interface.
Definition: types.h:40