Statistics
| Branch: | Tag: | Revision:

humotion / examples / yarp_icub / include / icub_faceinterface.h @ adf38895

History | View | Annotate | Download (863 Bytes)

1
#pragma once
2
#include <yarp/dev/ControlBoardInterfaces.h>
3
#include <yarp/os/Network.h>
4
#include "icub_jointinterface.h"
5
/*
6
 * #include <humotion/server/server.h>
7
#include <yarp/os/RateThread.h>
8
#include <yarp/os/Time.h>
9
#include <yarp/os/Property.h>
10
#include <yarp/os/Port.h>
11
#include <yarp/dev/ControlBoardInterfaces.h>
12
#include "icub_data_receiver.h"
13
*/
14

    
15

    
16
class iCubFaceInterface {
17
public:
18
    iCubFaceInterface(std::string scope);
19
    ~iCubFaceInterface();
20

    
21

    
22
    void set_eyelid_angle(double angle);
23
    void set_eyebrow_angle(int id, double *target_angle);
24
    void set_mouth(double *target_angle);
25

    
26
private:
27
    double lid_angle;
28
    int lid_opening_previous;
29
    int previous_mouth_state;
30
    double target_angle_previous[iCubJointInterface::ICUB_JOINT_ID_ENUM_SIZE];
31
    std::string scope;
32
    yarp::os::BufferedPort<yarp::os::Bottle> emotion_port[4];
33

    
34
};