Revision 1c758459 src/server/gaze_motion_generator.cpp
src/server/gaze_motion_generator.cpp | ||
---|---|---|
52 | 52 |
//! update gaze target: |
53 | 53 |
//! \param GazeState with target values for the overall gaze |
54 | 54 |
void GazeMotionGenerator::set_gaze_target(GazeState new_gaze_target){ |
55 |
if (requested_gaze_state.type == GazeState::RELATIVE){ |
|
56 |
//relative gaze target -> calculate target angle: |
|
57 |
printf("> FIXME: add code to interpolate the current position based on timestamp of gaze correction\n"); |
|
58 |
exit(0); |
|
55 |
if (requested_gaze_state.gaze_type == GazeState::GAZETYPE_RELATIVE){ |
|
56 |
printf("> ERROR: gaze targets should be converted to absolute before calling this\n"); |
|
57 |
exit(EXIT_FAILURE); |
|
59 | 58 |
} |
60 | 59 |
|
61 | 60 |
//check magnitude of gaze change to detect eye-neck saccades: |
Also available in: Unified diff