Revision 0d0f5ca1 examples/yarp_icub/include/icub_jointinterface.h
examples/yarp_icub/include/icub_jointinterface.h | ||
---|---|---|
18 | 18 |
#include "icub_data_receiver.h" |
19 | 19 |
|
20 | 20 |
class iCubDataReceiver; |
21 |
class iCubFaceInterface; |
|
21 | 22 |
|
22 | 23 |
class iCubJointInterface : public humotion::server::JointInterface{ |
23 | 24 |
public: |
... | ... | |
69 | 70 |
double target_angle[ICUB_JOINT_ID_ENUM_SIZE]; |
70 | 71 |
double target_angle_previous[ICUB_JOINT_ID_ENUM_SIZE]; |
71 | 72 |
|
72 |
void set_eyelid_angle(double angle); |
|
73 |
void set_eyebrow_angle(int id); |
|
74 |
void set_mouth(); |
|
75 |
|
|
76 | 73 |
iCubDataReceiver *icub_data_receiver; |
77 | 74 |
void init_joints(); |
78 |
double lid_angle; |
|
79 |
int lid_opening_previous; |
|
80 |
int previous_mouth_state; |
|
81 | 75 |
|
82 | 76 |
std::string scope; |
83 | 77 |
yarp::dev::PolyDriver dd; |
... | ... | |
85 | 79 |
yarp::sig::Vector velocities; |
86 | 80 |
yarp::sig::Vector commands; |
87 | 81 |
|
88 |
yarp::os::BufferedPort<yarp::os::Bottle> emotion_port[4]; |
|
89 |
|
|
90 | 82 |
yarp::dev::IVelocityControl *ivel; |
91 | 83 |
yarp::dev::IPositionControl *ipos; |
92 | 84 |
yarp::dev::IEncodersTimed *iencs; |
... | ... | |
110 | 102 |
int convert_enum_to_motorid(int e); |
111 | 103 |
int convert_motorid_to_enum(int id); |
112 | 104 |
|
105 |
iCubFaceInterface *face_interface; |
|
113 | 106 |
|
114 | 107 |
typedef boost::bimap<int, int > enum_id_bimap_t; |
115 | 108 |
typedef enum_id_bimap_t::value_type enum_id_bimap_entry_t; |
Also available in: Unified diff