Revision 1c758459 src/server/middleware_ros.cpp

View differences:

src/server/middleware_ros.cpp
108 108
    GazeState gaze_state;
109 109
    ///printf("> incoming gaze_target [P:%3.1f, T:%3.1f, R:%3.1f] %s\n", msg->pan, msg->tilt, msg->roll, msg->type==humotion::gaze::ABSOLUTE?"ABSOLUTE":"RELATIVE");
110 110

  
111
    gaze_state.type = msg->type;
112 111
    gaze_state.pan  = msg->pan;
113 112
    gaze_state.tilt = msg->tilt;
114 113
    gaze_state.roll = msg->roll;
......
127 126
    gaze_state.eyeblink_request_left = msg->eyeblink_request_left;
128 127
    gaze_state.eyeblink_request_right = msg->eyeblink_request_right;
129 128

  
129
    if (msg->gaze_type == humotion::gaze::GAZETYPE_ABSOLUTE){
130
        gaze_state.gaze_type = GazeState::GAZETYPE_ABSOLUTE;
131
    }else{
132
        gaze_state.gaze_type = GazeState::GAZETYPE_RELATIVE;
133
    }
130 134
    gaze_state.timestamp = convert_ros_to_timestamp_ms(msg->header.stamp);
131 135

  
132 136
    controller->set_gaze_target(gaze_state);

Also available in: Unified diff