1 #ifndef SUBSYSTEM_EMOTION_H 2 #define SUBSYSTEM_EMOTION_H 22 #define SUBSYSTEM_EMOTION "emotion" 41 typedef std::map<std::string, std::string> StringMap;
48 bool sendEmotion(std::pair<std::string, std::string> emPair);
50 StringMap mapToEmotion = StringMap {
62 StringMap mapToPart = StringMap {
65 {
"left_eyebrow",
"leb"},
66 {
"right_eyebrow",
"reb"},
70 std::pair<std::string, std::string> currentEmotionPair;
87 bool setEmotion(std::string emotion, std::string part=
"all");
93 std::pair<std::string, std::string>
getEmotion();
98 #endif // SUBSYSTEM_EMOTION_H SubSystem_emotion(const std::string &masterName)
Default constructor.
Grants access to high level motor commands (grasp, touch, look, goto, etc) of the robot as well as it...
virtual void Close()
Clean up resources.
bool setEmotion(std::string emotion, std::string part="all")
Method to switch iCub emotion for different parts of face.
Abstract class to handle sub-systems of the icub-client.
std::pair< std::string, std::string > getEmotion()
Method to get current iCub emotion.