-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathViconData.h
68 lines (54 loc) · 1.21 KB
/
ViconData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef _H_VICONDATA
#define _H_VICONDATA
#include "math.h"
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <cstring>
#include <fstream>
#define MAX_TOKENS_PER_LINE 50
#define MAX_LINE_BUFFER 10000
class ViconData {
public:
int frameNumber;
double frameRate;
int blink;
double headPosition[3];
int headPOccluded;
double headRotation[3];
int headROccluded;
double eyeRXY[2];
int eyeRXYOccluded[2];
double eyeRXYZ[3];
int eyeRXYZOccluded[3];
double eyeLXY[2];
int eyeLXYOccluded[2];
double eyeLXYZ[3];
int eyeLXYZOccluded[3];
double eyeRPosition[3];
int eyeRPOccluded;
double eyeLPosition[3];
int eyeLPOccluded;
double eyeRGaze[3];
int eyeRGazeOccluded;
double eyeLGaze[3];
int eyeLGazeOccluded;
double eyeRAngles[2];
double eyeLAngles[2];
int hasEyeRAngles;
int hasEyeLAngles;
std::string viconMsg;
void Reset();
ViconData();
const ViconData& operator=(const ViconData& source);
bool operator==(const ViconData& two);
ViconData(const ViconData& source);
void PrintData();
void ConvertEyeData();
void ToSendToMaya(char *msgbuffer, int len);
void SerializeData();
void SaveToFile(std::ofstream* log);
int getBoolean(char *tf);
int IsEmpty();
};
#endif