Revision 3877047d client/cpp/include/RobotGaze.h
client/cpp/include/RobotGaze.h | ||
---|---|---|
28 | 28 |
|
29 | 29 |
#pragma once |
30 | 30 |
#include <time.h> |
31 |
#include "RobotTimestamp.h" |
|
31 | 32 |
|
32 | 33 |
class RobotGaze{ |
33 | 34 |
public: |
34 |
RobotGaze(){ |
|
35 |
RobotGaze() : gaze_timestamp() {
|
|
35 | 36 |
pan = 0.0; |
36 | 37 |
tilt = 0.0; |
37 | 38 |
roll = 0.0; |
... | ... | |
41 | 42 |
gaze_type = ABSOLUTE; |
42 | 43 |
} |
43 | 44 |
|
44 |
static double now(){ |
|
45 |
/*static double now(){
|
|
45 | 46 |
//fetch time |
46 | 47 |
struct timespec tp; |
47 | 48 |
clock_gettime(CLOCK_REALTIME, &tp); |
48 | 49 |
return tp.tv_sec+tp.tv_nsec/1000000000.0; |
49 |
}; |
|
50 |
};*/
|
|
50 | 51 |
|
51 | 52 |
enum { |
52 | 53 |
RELATIVE = 0, |
53 | 54 |
ABSOLUTE = 1 |
54 | 55 |
}; |
55 | 56 |
|
56 |
double timestamp; |
|
57 |
|
|
57 |
RobotTimestamp gaze_timestamp; |
|
58 | 58 |
int gaze_type; |
59 | 59 |
|
60 | 60 |
float pan, tilt, roll, vergence; |
Also available in: Unified diff