harmoni_gesture.gesture_service

Module Contents

Classes

GestureService

Gesture service

Functions

main()

class harmoni_gesture.gesture_service.GestureService(name, param)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Gesture service

_gesture_done_callback(data)

Callback function for gesture done

Parameters:

data (bool) – gesture done (True)

_get_list_callback(data)

Getting the list from the gesture reader

Parameters:

data (str) – json of items of gesture for a specific robot

setup_gesture()

Setup the gesture

do(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(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]

harmoni_gesture.gesture_service.main()