Revision 35b3ca25 src/server/mouth_motion_generator.cpp
src/server/mouth_motion_generator.cpp | ||
---|---|---|
91 | 91 |
unsafe_target_upper = unsafe_target_lower - opening; |
92 | 92 |
} |
93 | 93 |
|
94 |
//tell the joint about the new values: |
|
95 |
joint_interface->set_target_position(upper_id, unsafe_target_upper, 0.0); |
|
96 |
joint_interface->set_target_position(lower_id, unsafe_target_lower, 0.0); |
|
97 |
|
|
98 |
//printf("> update_mouth_target(u=%d, l=%d) -> upper = %4.2f, lower = %4.2f\n",upper_id, lower_id,unsafe_target_upper,unsafe_target_lower); |
|
94 |
// tell the joint about the new values: |
|
95 |
joint_interface->set_target(upper_id, unsafe_target_upper, 0.0); |
|
96 |
joint_interface->set_target(lower_id, unsafe_target_lower, 0.0); |
|
99 | 97 |
} |
100 | 98 |
|
101 | 99 |
|
... | ... | |
139 | 137 |
void MouthMotionGenerator::publish_targets(){ |
140 | 138 |
//publish values if there is an active gaze input within the last timerange |
141 | 139 |
if (mouth_target_input_active()){ |
142 |
joint_interface->publish_target_position(JointInterface::ID_LIP_LEFT_UPPER);
|
|
143 |
joint_interface->publish_target_position(JointInterface::ID_LIP_LEFT_LOWER);
|
|
144 |
joint_interface->publish_target_position(JointInterface::ID_LIP_CENTER_UPPER);
|
|
145 |
joint_interface->publish_target_position(JointInterface::ID_LIP_CENTER_LOWER);
|
|
146 |
joint_interface->publish_target_position(JointInterface::ID_LIP_RIGHT_UPPER);
|
|
147 |
joint_interface->publish_target_position(JointInterface::ID_LIP_RIGHT_LOWER);
|
|
140 |
joint_interface->publish_target(JointInterface::ID_LIP_LEFT_UPPER); |
|
141 |
joint_interface->publish_target(JointInterface::ID_LIP_LEFT_LOWER); |
|
142 |
joint_interface->publish_target(JointInterface::ID_LIP_CENTER_UPPER); |
|
143 |
joint_interface->publish_target(JointInterface::ID_LIP_CENTER_LOWER); |
|
144 |
joint_interface->publish_target(JointInterface::ID_LIP_RIGHT_UPPER); |
|
145 |
joint_interface->publish_target(JointInterface::ID_LIP_RIGHT_LOWER); |
|
148 | 146 |
} |
149 | 147 |
} |
150 | 148 |
|
Also available in: Unified diff