Revision ea068cf1 src/server/eyebrow_motion_generator.cpp

View differences:

src/server/eyebrow_motion_generator.cpp
46 46
//! calculate joint targets
47 47
void EyebrowMotionGenerator::calculate_targets() {
48 48
    // printf("> humotion: calculating eyebrow targets\n");
49
    float eyebrow_left_target = requested_gaze_state.eyebrow_left;
50
    float eyebrow_right_target = requested_gaze_state.eyebrow_right;
49
    float eyebrow_left_target = requested_gaze_state_.eyebrow_left;
50
    float eyebrow_right_target = requested_gaze_state_.eyebrow_right;
51 51

  
52 52
    // store targets
53
    joint_interface->set_target(JointInterface::ID_EYES_LEFT_BROW, eyebrow_left_target, 0.0);
54
    joint_interface->set_target(JointInterface::ID_EYES_RIGHT_BROW, eyebrow_right_target, 0.0);
53
    joint_interface_->set_target(JointInterface::ID_EYES_LEFT_BROW, eyebrow_left_target, 0.0);
54
    joint_interface_->set_target(JointInterface::ID_EYES_RIGHT_BROW, eyebrow_right_target, 0.0);
55 55
}
56 56

  
57 57
//! publish targets to motor boards:
58 58
void EyebrowMotionGenerator::publish_targets() {
59 59
    // publish values if there is an active gaze input within the last timerange
60 60
    if (gaze_target_input_active()) {
61
        joint_interface->publish_target(JointInterface::ID_EYES_LEFT_BROW);
62
        joint_interface->publish_target(JointInterface::ID_EYES_RIGHT_BROW);
61
        joint_interface_->publish_target(JointInterface::ID_EYES_LEFT_BROW);
62
        joint_interface_->publish_target(JointInterface::ID_EYES_RIGHT_BROW);
63 63
    }
64 64
}

Also available in: Unified diff