cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
osaOpenNISkeleton.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Kelleher Guerin, Simon Leonard
7  Created on: 2011
8 
9  (C) Copyright 2011 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _osaOpenNISkeleton_h
23 #define _osaOpenNISkeleton_h
24 
25 #include <vector>
27 
28 class osaOpenNI;
29 
30 // Always include last!
32 
34 
35 private:
36 
37  osaOpenNI* OpenNI;
38 
39 
40 public:
42  std::vector<vct3> points3D;
43 
45  std::vector<vctInt2> points2D;
46 
48  std::vector<bool> confidence;
49 
51  bool exists;
52 
54  osaOpenNISkeleton(osaOpenNI * openNI);
55 
58 
60  void Update(int id);
61  void SetExists(bool val);
62  void PrintUserState(void);
63  void UpdateUserStates(void);
64  std::vector<vct3> GetPoints3D(void);
65 
66  int usrState;
67  int calState;
68  int skelID;
69 
70 };
71 
72 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
int calState
Definition: osaOpenNISkeleton.h:67
std::vector< vctInt2 > points2D
2D Projective Coorinates
Definition: osaOpenNISkeleton.h:45
Typedef for fixed size vectors.
Definition: osaOpenNI.h:87
int usrState
Definition: osaOpenNISkeleton.h:66
int skelID
Definition: osaOpenNISkeleton.h:68
bool exists
Skeleton has been populated coorectly.
Definition: osaOpenNISkeleton.h:51
std::vector< vct3 > points3D
3D Joint Coordinates
Definition: osaOpenNISkeleton.h:42
Definition: osaOpenNISkeleton.h:33
std::vector< bool > confidence
Joint Existance Confidence.
Definition: osaOpenNISkeleton.h:48