Revision 35b3ca25 examples/yarp_icub/src/icub_faceinterface.cpp

View differences:

examples/yarp_icub/src/icub_faceinterface.cpp
108 108

  
109 109
//! special command to set eyelid angle
110 110
//! \param angle in degrees
111
void iCubFaceInterface::set_eyelid_angle(double angle){
111
void iCubFaceInterface::set_eyelid_angle(float angle){
112 112
    if (emotion_port[0].getOutputCount()>0){
113 113
        //try to set the value based on the upper one
114 114
        //some guesses from the sim: S30 = 0° / S40 = 10°
......
140 140
//! special command to set the eyebrow angle
141 141
//! \param id {0=left, 1=right)
142 142
//! \param angle in degrees
143
void iCubFaceInterface::set_eyebrow_angle(int id, double *target_angle){
143
void iCubFaceInterface::set_eyebrow_angle(int id, float *target_angle){
144 144
    int port_id;
145 145
    if (id == iCubJointInterface::ICUB_ID_EYES_LEFT_BROW){
146 146
        port_id = 1;
......
195 195
    }
196 196
}
197 197

  
198
void iCubFaceInterface::set_mouth(double *target_angle){
198
void iCubFaceInterface::set_mouth(float *target_angle){
199 199
    //convert from 6DOF mouth displacement to icub leds:
200 200
    int led_value = 0;
201 201

  

Also available in: Unified diff