Revision 25400c71 examples/yarp_icub/src/icub_jointinterface.cpp
examples/yarp_icub/src/icub_jointinterface.cpp | ||
---|---|---|
197 | 197 |
//! \param id of joint |
198 | 198 |
//! \param float value of position |
199 | 199 |
void iCubJointInterface::store_icub_joint_target(int icub_id, float position, float velocity) { |
200 |
//cout << "store_icub_joint_target(" << icub_id << ", " << position << ", ..)\n"; |
|
200 |
// cout << "store_icub_joint_target(" << icub_id << ", " << position << ", ..)\n";
|
|
201 | 201 |
|
202 | 202 |
if ((icub_id == ICUB_ID_NECK_PAN) || (icub_id == ICUB_ID_EYES_VERGENCE)) { |
203 | 203 |
// icub uses an inverted neck pan specification |
... | ... | |
332 | 332 |
// send it to icub face if |
333 | 333 |
face_interface_->set_eyelid_angle(opening); |
334 | 334 |
|
335 |
//eyebrows are set using a special command as well: |
|
335 |
// eyebrows are set using a special command as well:
|
|
336 | 336 |
face_interface_->set_eyebrow_angle(ICUB_ID_EYES_LEFT_BROW, target_angle_); |
337 | 337 |
face_interface_->set_eyebrow_angle(ICUB_ID_EYES_RIGHT_BROW, target_angle_); |
338 | 338 |
|
339 |
//mouth |
|
339 |
// mouth
|
|
340 | 340 |
face_interface_->set_mouth(target_angle_); |
341 | 341 |
|
342 | 342 |
// store joint values which we do not handle on icub here: |
343 |
double timestamp = humotion::Timestamp::now().to_seconds(); |
|
343 |
humotion::Timestamp timestamp = humotion::Timestamp::now(); |
|
344 |
|
|
344 | 345 |
JointInterface::store_incoming_position(ID_LIP_LEFT_UPPER, |
345 | 346 |
target_angle_[ICUB_ID_LIP_LEFT_UPPER], timestamp); |
346 | 347 |
JointInterface::store_incoming_position(ID_LIP_LEFT_LOWER, |
Also available in: Unified diff