Revision 35b3ca25 src/server/eyebrow_motion_generator.cpp

View differences:

src/server/eyebrow_motion_generator.cpp
22 22
    float eyebrow_right_target = requested_gaze_state.eyebrow_right;
23 23

  
24 24
    //store targets:
25
    joint_interface->set_target_position(JointInterface::ID_EYES_LEFT_BROW, eyebrow_left_target, 0.0);
26
    joint_interface->set_target_position(JointInterface::ID_EYES_RIGHT_BROW, eyebrow_right_target, 0.0);
25
    joint_interface->set_target(JointInterface::ID_EYES_LEFT_BROW, eyebrow_left_target, 0.0);
26
    joint_interface->set_target(JointInterface::ID_EYES_RIGHT_BROW, eyebrow_right_target, 0.0);
27 27
}
28 28

  
29 29
//! publish targets to motor boards:
30 30
void EyebrowMotionGenerator::publish_targets(){
31 31
    //publish values if there is an active gaze input within the last timerange
32 32
    if (gaze_target_input_active()){
33
        joint_interface->publish_target_position(JointInterface::ID_EYES_LEFT_BROW);
34
        joint_interface->publish_target_position(JointInterface::ID_EYES_RIGHT_BROW);
33
        joint_interface->publish_target(JointInterface::ID_EYES_LEFT_BROW);
34
        joint_interface->publish_target(JointInterface::ID_EYES_RIGHT_BROW);
35 35
    }
36 36
}

Also available in: Unified diff