gesture_service¶
Module Contents¶
Classes¶
Gesture service |
Functions¶
|
- class gesture_service.GestureService(name, param)¶
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerGesture service
- _gesture_done_callback(self, data)¶
Callback function for gesture done
- Parameters
data (bool) – gesture done (True)
- _get_list_callback(self, data)¶
Getting the list from the gesture reader
- Parameters
data (str) – json of items of gesture for a specific robot
- setup_gesture(self)¶
Setup the gesture
- do(self, data)¶
Do the gesture
- Parameters
data (str) – it could be a string of: - object containing {“behavior_data”: str} (as results of the TTS synthetization) - object of: {“name”: str, “timing”: int}
- Returns
state of the DO action
- Return type
response (int)
- _get_gesture_data(self, data)¶
Getting the gesture data parsing the output of TTS
- Parameters
data (str) – string of json {“behavior_data”:str}
- Returns
getting the gesture done (True)
- Return type
[bool]
- gesture_service.main()¶