Revision 62aeb8ce server/include/ROS/GazeCallbackWrapperROS.h

View differences:

server/include/ROS/GazeCallbackWrapperROS.h
63 63

  
64 64
        //use timestamp from request
65 65
        gaze_state.timestamp = convert_ros_to_timestamp_ms(request->timestamp); //get_timestamp();
66
        if (request->type == hlrc_server::gazetargetGoal::GAZETARGET_RELATIVE){
67
            gaze_state.type = humotion::GazeState::RELATIVE;
68
        }else{
66
        if (request->gaze_type == hlrc_server::gazetargetGoal::GAZETARGET_ABSOLUTE){
69 67
            gaze_state.type = humotion::GazeState::ABSOLUTE;
68
        }else{
69
            gaze_state.type = humotion::GazeState::RELATIVE;
70 70
        }
71 71

  
72 72
        //default:

Also available in: Unified diff