Revision 95dd1012
include/humotion/server/eyelid_motion_generator.h | ||
---|---|---|
59 | 59 |
|
60 | 60 |
enum SIDE_ID { |
61 | 61 |
LEFT = 0, |
62 |
RIGHT, |
|
63 |
SIDE_ID_SIZE |
|
62 |
RIGHT |
|
64 | 63 |
}; |
65 | 64 |
|
66 | 65 |
bool saccade_blink_active_; |
67 | 66 |
bool saccade_blink_requested_; |
68 | 67 |
|
69 |
bool eyeblink_active_[SIDE_ID_SIZE];
|
|
70 |
bool eyelid_closed_[SIDE_ID_SIZE];
|
|
68 |
bool eyeblink_active_[2];
|
|
69 |
bool eyelid_closed_[2];
|
|
71 | 70 |
|
72 | 71 |
boost::system_time periodic_blink_start_time_; |
73 |
boost::system_time eyeblink_timeout_[SIDE_ID_SIZE];
|
|
72 |
boost::system_time eyeblink_timeout_[2];
|
|
74 | 73 |
boost::system_time eyeblink_blocked_timeout_; |
75 | 74 |
}; |
76 | 75 |
|
src/server/eyelid_motion_generator.cpp | ||
---|---|---|
41 | 41 |
EyeMotionGenerator(j, cfg) { |
42 | 42 |
saccade_blink_active_ = false; |
43 | 43 |
saccade_blink_requested_ = false; |
44 |
eyelid_closed_[LEFT] = false; |
|
45 |
eyelid_closed_[RIGHT] = false; |
|
44 |
|
|
45 |
for (int i = 0; i < 2; i++) { |
|
46 |
eyelid_closed_[i] = false; |
|
47 |
eyeblink_active_[i] = false; |
|
48 |
eyeblink_timeout_[i] = boost::get_system_time(); |
|
49 |
} |
|
46 | 50 |
|
47 | 51 |
eyeblink_blocked_timeout_ = boost::get_system_time(); |
48 | 52 |
} |
Also available in: Unified diff