From 50e8f5f8ff8d98be2e2857d9c08944c8f1e17ab0 Mon Sep 17 00:00:00 2001 From: Antonio Andriella <aandriella@iri.upc.edu> Date: Tue, 13 Oct 2020 18:12:09 +0200 Subject: [PATCH] remove legacy code --- .../config/sentences/load_sentences.py | 2 - src/robot_behaviour/robot.py | 486 ------------------ src/robot_behaviour/robot.pyc | Bin 11559 -> 0 bytes src/robot_behaviour/sentences.py | 30 -- 4 files changed, 518 deletions(-) delete mode 100644 src/robot_behaviour/config/sentences/load_sentences.py delete mode 100644 src/robot_behaviour/robot.py delete mode 100644 src/robot_behaviour/robot.pyc delete mode 100644 src/robot_behaviour/sentences.py diff --git a/src/robot_behaviour/config/sentences/load_sentences.py b/src/robot_behaviour/config/sentences/load_sentences.py deleted file mode 100644 index 139597f..0000000 --- a/src/robot_behaviour/config/sentences/load_sentences.py +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/src/robot_behaviour/robot.py b/src/robot_behaviour/robot.py deleted file mode 100644 index 6e9b212..0000000 --- a/src/robot_behaviour/robot.py +++ /dev/null @@ -1,486 +0,0 @@ - - -import time -import numpy as np -import random -import rospy - -# import from the package xml_reader -from xml_reader.xml_reader import XMLReader -from SKT import SKT -from robot_behaviour.speech import Speech -from robot_behaviour.gesture import Gesture -from robot_behaviour.face import Face - - -class Robot: - ''' - robot class to define the actions of assistance, combining speech and gesture - ''' - - def __init__(self, actions_file_name, xml_reader): - ''' - :param assistive_actions_modalities: - :param engaging_actions_modalities: - :param congratulate_actions_modalities: - :param assistive_actions_speech: - :param engaging_actions_speech: - :param congratulate_actions_speech: - ''' - - self.instructions_speech = xml_reader.get_actions_by_tag(actions_file_name, 'instruction') - - self.assistive_actions_speech = [xml_reader.get_actions_by_tag(actions_file_name, 'LEV_0'), - xml_reader.get_actions_by_tag(actions_file_name, 'LEV_1'), - xml_reader.get_actions_by_tag(actions_file_name, 'LEV_2'), - xml_reader.get_actions_by_tag(actions_file_name, 'LEV_3'), - xml_reader.get_actions_by_tag(actions_file_name, 'LEV_4')] - - # define the function for the action of engagement - # self.engaging_actions_modalities - - - self.congratulate_actions_speech = xml_reader.get_actions_by_tag(actions_file_name, 'congratulation') - self.compassion_actions_speech = xml_reader.get_actions_by_tag(actions_file_name, 'compassion') - self.move_back_actions_speech = xml_reader.get_actions_by_tag(actions_file_name, 'move_back') - self.correct_token_speech = xml_reader.get_actions_by_tag(actions_file_name, 'correct_token') - self.timeout_action_speech = xml_reader.get_actions_by_tag(actions_file_name, "time_out") - self.help_action_speech = xml_reader.get_actions_by_tag(actions_file_name, 'help') - self.help_attempt = xml_reader.get_actions_by_tag(actions_file_name, "help_attempt") - self.help_timeout = xml_reader.get_actions_by_tag(actions_file_name, "help_timeout") - self.end_game = xml_reader.get_actions_by_tag(actions_file_name, "end_game") - self.play_again = xml_reader.get_actions_by_tag(actions_file_name, "play_again") - self.max_attempt = xml_reader.get_actions_by_tag(actions_file_name, "max_attempt") - self.unexpected_beahviour = xml_reader.get_actions_by_tag(actions_file_name, "unexpected_behaviour") - self.positive_feedback = xml_reader.get_actions_by_tag(actions_file_name, "positive_feedback") - self.negative_feedback = xml_reader.get_actions_by_tag(actions_file_name, "negative_feedback") - - - def get_instructions_speech(self): - ''' - :return: the instructions speech - ''' - return self.instructions_speech - - def get_congratulate_actions_speech(self): - ''' - :return: congratulate instructions - ''' - return self.congratulate_actions_speech - - def get_compassion_actions_speech(self): - ''' - :return: compasstion instructions - ''' - return self.compassion_actions_speech - - def get_move_back_actions_speech(self): - ''' - :return: move back action - ''' - return self.move_back_actions_speech - - def get_correct_token_speech(self): - ''' - :return: - ''' - return self.correct_token_speech - def get_help_actions_speech(self): - ''' - :return: help actions - ''' - return self.help_action_speech - - def get_help_attempt_actions_speech(self): - ''' - :return: help attempt actions - ''' - return self.help_attempt - - def get_help_timeout_actions_speech(self): - ''' - :return: help timeout actions - ''' - return self.help_timeout - - def get_positive_feedback_speech(self): - return self.positive_feedback - - def get_negative_feedback_speech(self): - return self.negative_feedback - - def get_timeout_actions_speech(self): - ''' - :return: - ''' - return self.timeout_action_speech - - def get_play_again_speech(self): - ''' - :return: - ''' - return self.play_again - - def get_end_game_speech(self): - ''' - :return: - ''' - return self.end_game - - def get_max_attempt_speech(self): - ''' - :return: - ''' - return self.max_attempt - - def change_facial_expression(self, face, expression, x=0, y=0): - face.reproduce_face_expression(expression) - face.move_eyes(x,y) - rospy.sleep(1) - - def change_pupils_direction(self, face, x, y): - face.move_eyes(x,y) - - - def get_unexpected_beahviour(self): - ''' - :return: - ''' - return self.unexpected_beahviour - - def get_assistive_actions(self, level_index): - ''' - :param level_index: - :return: - ''' - return self.assistive_actions_speech[level_index] - - def get_assistive_action_speech(self, level_index, attempt): - ''' - :param level_index: its the index of the lev -> LEV 0:0, LEV 1: 1, and so on - :param action_index: its the index of the action of that level - :return: the string with the text to reproduce - ''' - try: - return self.assistive_actions_speech[level_index][attempt] - except IndexError: - print("The index is out of bound, we will set it to 0 for action index") - - def get_token_subset_solution(self, token, skt): - board_cols = skt.get_board_size()[1] - solution_subset = [] - # we need to get the location of the current token - # and get the two that are closer - solution_location = skt.get_token_location(token) - # if the right token is is the last column of the board - if (solution_location == (board_cols) or solution_location == ((2 * board_cols)) or solution_location == ( - 3 * board_cols) or solution_location == (4 * board_cols)): - left_left_closer_token = skt.get_current_board_status()[solution_location - 2] - if left_left_closer_token != '0': solution_subset.append(left_left_closer_token) - left_closer_token = skt.get_current_board_status()[solution_location - 1] - if left_closer_token != '0': solution_subset.append(left_closer_token) - solution_subset.append(token) - - # if theright token is in the first column of the board - elif (solution_location == 1 or solution_location == (board_cols + 1) or solution_location == ( - board_cols * 2) + 1 or solution_location == (board_cols * 3) + 1): - solution_subset.append(token) - right_closer_token = skt.get_current_board_status()[solution_location + 1] - if right_closer_token != '0': solution_subset.append(right_closer_token) - right_right_closer_token = skt.get_current_board_status()[solution_location + 2] - if right_right_closer_token != '0': solution_subset.append(right_right_closer_token) - else: - left_closer_token = skt.get_current_board_status()[solution_location +1] - if left_closer_token != '0': solution_subset.append(left_closer_token) - solution_subset.append(token) - right_closer_token = skt.get_current_board_status()[solution_location - 1] - if right_closer_token != '0': solution_subset.append(right_closer_token) - return solution_subset - - def move_token_back(self, token, skt): - # action to move back the token - token_curr_loc = skt.get_token_location(token) - token_dest_loc = skt.get_token_initial_location(token) - return token_curr_loc, token_dest_loc - - def provide_positive_feedback(self, speech): - action_index = random.randint(0, len(self.get_positive_feedback_speech())-1) - speech.text_to_speech(self.get_positive_feedback_speech()[action_index][0]) - - def provide_negative_feedback(self, speech, ): - action_index = random.randint(0, len(self.get_negative_feedback_speech())-1) - speech.text_to_speech(self.get_negative_feedback_speech()[action_index][0]) - - def provide_reengagement_timeout(self, speech): - for i in range(len(self.get_timeout_actions_speech())): - # check if we need to reproduce a gesture - if self.get_timeout_actions_speech()[i][1] == 1: - speech.text_to_speech(self.get_timeout_actions_speech()[i][0]) - # reproduce the gesture - else: - speech.text_to_speech(self.get_timeout_actions_speech()[i][0]) - - def provide_instructions(self, speech, actions): - - speech.text_to_speech(self.get_instructions_speech()[0][0]) - # reproduce the gesture - # if at the first one of the instructions are with gesture then reproduce it - if self.get_instructions_speech()[0][1] == 1: - actions.initial_pos() - - def provide_assistance(self, level_index, attempt, token, skt, speech, actions): - token_id, token_loc = token - if level_index == 0: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - - elif level_index == 1: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - # if in the xml file name!= "no_gesture" - if self.get_assistive_action_speech(level_index, attempt)[1] == 1: - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - else: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - - elif level_index == 2: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - # robot action - if self.get_assistive_action_speech(level_index, attempt)[1] == 1: - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - # reproduce the gesture - subset_solution = self.get_token_subset_solution(token_id, skt) - print(subset_solution) - actions.suggest_subset(token_loc, speech, subset_solution, 3) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - #actions.initial_pos() - else: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - subset_solution = self.get_token_subset_solution(token_id, skt) - for i in range(len(subset_solution)): - speech.text_to_speech(subset_solution[i]) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - - elif level_index == 3: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - # robot action - if self.get_assistive_action_speech(level_index, attempt)[1] == 1: - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - # reproduce the gesture - actions.suggest_solution(token_id, token_loc, speech, 5) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - #actions.initial_pos() - else: - if attempt > len(self.get_assistive_actions(level_index)) - 1: - attempt = np.random.randint(0, len(self.get_assistive_actions(level_index))) - speech.text_to_speech(self.get_assistive_action_speech(level_index, attempt)[0]) - speech.text_to_speech(token_id) - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - - elif level_index == 4: - print("Warning hard coded string") - # reproduce the gesture - token_loc = skt.get_token_initial_location(token[0]) - speech.text_to_speech(self.get_assistive_action_speech(level_index, 0)[0]) - if self.get_assistive_action_speech(level_index, 0)[1] == 1: - actions.offer_token(token_loc, speech, self.get_assistive_action_speech(level_index, 1)[0]) - # speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - actions.initial_pos() - # hard coded string - speech.text_to_speech(self.get_assistive_action_speech(0, 0)[0]) - # speech.text_to_speech(token) - # reproduce the gesture - # speech.text_to_speech(self.get_assistive_action_speech(level_index, 1)[0]) - else: - assert Exception("error in the index level, please revise it") - - def provide_congratulation(self, attempt, speech, actions): - if attempt > len(self.get_congratulate_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_congratulate_actions_speech())) - if self.get_congratulate_actions_speech()[attempt][1] == 1: - # perform robot action - #actions.head_noddling_yes() - speech.text_to_speech(self.get_congratulate_actions_speech()[attempt][0]) - else: - speech.text_to_speech(self.get_congratulate_actions_speech()[attempt][0]) - - def provide_compassion(self, attempt, speech, actions): - if attempt > len(self.get_compassion_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_compassion_actions_speech())) - - if self.get_compassion_actions_speech()[attempt][1] == 1: - # perform robot action - #actions.head_noddling_no() - speech.text_to_speech(self.get_compassion_actions_speech()[attempt][0]) - else: - speech.text_to_speech(self.get_compassion_actions_speech()[attempt][0]) - - def provide_help(self, attempt, speech): - if attempt > len(self.get_help_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_help_actions_speech())) - - if self.get_help_actions_speech()[attempt][1] == 1: - speech.text_to_speech(self.get_help_actions_speech()[attempt][0]) - # perform robot action (need to implement this movement) - else: - speech.text_to_speech(self.get_help_actions_speech()[attempt][0]) - - def provide_help_attempt(self, attempt, speech): - if attempt > len(self.get_help_attempt_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_help_attempt_actions_speech())) - - if self.get_help_attempt_actions_speech()[attempt][1] == 1: - speech.text_to_speech(self.get_help_attempt_actions_speech()[attempt][0]) - # perform robot action - else: - speech.text_to_speech(self.get_help_attempt_actions_speech()[attempt][0]) - - def provide_help_timeout(self, attempt, speech): - if attempt > len(self.get_help_timeout_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_help_timeout_actions_speech())) - - if self.get_help_timeout_actions_speech()[attempt][1] == 1: - speech.text_to_speech(self.get_help_timeout_actions_speech()[attempt][0]) - # perform robot action - else: - speech.text_to_speech(self.get_help_timeout_actions_speech()[attempt][0]) - - def provide_token_back(self, attempt, speech, actions, _from, _to): - if attempt >= len(self.get_move_back_actions_speech()) - 1: - attempt = np.random.randint(0, len(self.get_move_back_actions_speech())) - - if self.get_move_back_actions_speech()[attempt][1] == 1: - # perform robot action - speech.text_to_speech(self.get_move_back_actions_speech()[attempt][0]) - actions.pick_and_place(_from, _to) - actions.initial_pos() - else: - speech.text_to_speech(self.get_move_back_actions_speech()[attempt][0]) - - def provide_correct_token(self, attempt, speech, actions, _from, _to): - if attempt >= len(self.get_correct_token_speech()) - 1: - attempt = np.random.randint(0, len(self.get_correct_token_speech())) - - if self.get_correct_token_speech()[attempt][1] == 1: - # perform robot action - speech.text_to_speech(self.get_correct_token_speech()[attempt][0]) - actions.pick_and_place(_from, _to) - actions.initial_pos() - else: - speech.text_to_speech(self.get_correct_token_speech()[attempt][0]) - - def provide_game_completed(self, speech, actions): - for i in range(len(self.get_end_game_speech())): - # check if we need to reproduce a gesture - if self.get_end_game_speech()[i][1] == 1: - speech.text_to_speech(self.get_end_game_speech()[i][0]) - # reproduce the gesture - actions.wave() - else: - speech.text_to_speech(self.get_end_game_speech()[i][0]) - - def provide_play_again(self, speech): - speech.text_to_speech(self.get_play_again_speech()[0][0]) - - def provide_max_attempt(self, speech, actions, _from, _to): - speech.text_to_speech(self.get_max_attempt_speech()[0][0]) - if self.get_max_attempt_speech()[0][1] == 1: - actions.pick_and_place(_from, _to) - - def provide_unexpected_behaviour(self, speech, actions): - for i in range(len(self.get_unexpected_beahviour())): - if self.get_unexpected_beahviour()[i][1] == 1: - speech.text_to_speech(self.get_unexpected_beahviour()[i][0]) - # reproduce action - actions.head_noddling_no() - else: - speech.text_to_speech(self.get_unexpected_beahviour()[i][0]) - - def provide_any_instruction(self, speech, sentence): - speech.text_to_speech(sentence) - - def provide_illegal_move(self, speech, token, location): - speech.text_to_speech("Move token " + token + ". in location " + location) - time.sleep(2) - -# length=5 -# progress=1 -# timeout=15 -# assistance_levels = 5 -# max_attempt = 4 -# assistance_probs = [] -# complexity_probs = [] -# total_tokens= 10 -# -# -# -# initial_board = {1:'0', 2:'0', 3:'0', 4:'0', 5:'0', -# 6:'0', 7:'0', 8:'0', 9:'0', 10:'0', -# 11:'A', 12:'G', 13:'U', 14:'B', 15:'E', -# 16:'C', 17:'D', 18:'I', 19:'O', 20:'R' -# } -# -# current_board ={1:'0', 2:'0', 3:'0', 4:'0', 5:'0', -# 6:'0', 7:'0', 8:'0', 9:'0', 10:'0', -# 11:'A', 12:'G', 13:'U', 14:'B', 15:'E', -# 16:'C', 17:'D', 18:'I', 19:'O', 20:'R' -# } -# solution_board = {1:'C', 2:'U', 3:'R', 4:'I', 5:'E', -# 6:'0', 7:'0', 8:'0', 9:'0', 10:'0', -# 11: 'A', 12: 'G', 13: '0', 14: 'B', 15: '0', -# 16: '0', 17: 'D', 18: '0', 19: 'O', 20: '0' -# } -# -# -# current_board = initial_board.copy() -# tokens_list = ['A', 'G', 'U', 'B', 'E', 'C', 'D', 'I', 'O', 'R'] -# -# objective = "ascending" -# board_size = (4,5) -# -# skt = SKT(board_size, 5, progress, timeout, assistance_probs, 0, 0, -# max_attempt, -# assistance_probs, complexity_probs, total_tokens, -# initial_board, current_board, tokens_list, objective, solution_board) -# -# -# print(skt.get_current_board_status()) -# -# xml = XMLReader() -# -# tiago = Robot("/home/pal/cognitive_game_ws/src/robot_behaviour/src/robot_behaviour/config/assistive_actions_definition_esp.xml", xml) -# speech = Speech("es_ES") -# actions = Gesture() -# token = ("U", 13) -# tiago.provide_assistance(4, 1, token, skt, speech, actions) - -#tiago.provide_instructions(speech, actions) -#tiago.provide_assistance(3, 1, '55', skt, speech, actions) -# -# for i in (tokens_list): -# for k in range(max_attempt+2): -# token = (i, skt.get_token_location(i)) -# tiago.provide_congratulation(k, speech, actions) -# tiago.provide_compassion(k, speech, actions) -# tiago.provide_assistance(0, k, token, skt, speech, actions) -# tiago.provide_assistance(1, k, token, skt, speech, actions) -# tiago.provide_assistance(2, k, token, skt, speech, actions) -# tiago.provide_assistance(3, k, token, skt, speech, actions) -# tiago.provide_assistance(4, k, token, skt, speech, actions) - - diff --git a/src/robot_behaviour/robot.pyc b/src/robot_behaviour/robot.pyc deleted file mode 100644 index 4b43d92b0f9c961edf87e979a3dce06516ea2f6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11559 zcmds7%WvGq86R?Y^|md)wT>UmTTPtUZh`_e(!`GKq(u^=rII*N8xYizl4x<s4LP#q zz`DdewCFkQp{E>*9(!$p9MfBm?Wwo^0lfqW&|cc#?;DcKl~%G0I8tIs9L<X}^L_I@ ze%}lmU+tUt;)~z>qN9qR2L4~dlcz`m{8=hiYTo2+6<exnt9e^lY-^~vp}Gw<-!SE- zikqt2Qu8fSZmD=gbw}0ws3~KtF*QG~f)N#rsbEz7QmK1NeK<eCdFE!vF=zBY{9K>4 zkku@I@Xp(A=m%kDs<^(nx85~{11$8yu(SN0)?wx+ozOIlqTzB!M`@Dl7V>Vokm`y? zj{Q2G{O?FYP-l@+5QRlxMW80ICDSB{tZAvBDH$xhC7DqY!KRW9k~JnZAZA=LlPZ{y z%#;cyC9_WjQ<B-Qf_;)Xpo0C9nO4C8$sAO{v}6vc;Gkp<tKg7ij;P?UWR9xfh-8kb z;HYGdtKgVqW|TWOdz{qGA(?QTjI=wQ*w1rEr%n(qMoH-C<<RjBhn#fLL1UC_GVrX^ zNxKVC5+zGcF1&U8Byg6(T(4#!#_Mnk_>jq0@Z<^%y=$wRNWn=<-LutQr97)vX-j3* zr!iP;4i;O3#Ss>lS~4a^t_B&EZkVW1s~jsUo3+aEvJ!(-uTPYfBelxOvU0RmIaOAU z)hhRumDu<FkX_1R{uL6i$Z;<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DbUYMgAfl>~O!Zb1ZVsJ#rpJv0eOa$!{=(|5+a)rrNCO>83GI^KDdrXLB zUEbxoKS$E%o8)%sLo1guJ&h-S5y?nn#2!CAKC<C=Y<x;;C&nknUmKsqFLM)S#k_|# zhxd1K&AZF~XJaq+vm{-)*b;O4XpR>>e4l4N&2<?`i9op&Bay0PwcER6Tq_s3H~bM< WdBsS_t6aW_)YRxS#0kHM9{vv+fLZYX diff --git a/src/robot_behaviour/sentences.py b/src/robot_behaviour/sentences.py deleted file mode 100644 index 3367c19..0000000 --- a/src/robot_behaviour/sentences.py +++ /dev/null @@ -1,30 +0,0 @@ -sentences = { -'instruction':["The goal is to sort numbered tokens in ascending order on the board. Please wait for my instructions to move a token. Ready???? Let's start"], -'compassion':["People say lucky in love unlucky in gaming", - "Dont worry sometimes happens", - "Dont worry I'm sure you will get better", - "I know how you feel, I've been in this situation before"], -'congratulation':["You made a great move", - "Well done, you're playing as I expected", - "I really enjoying playing with you"], -'max_attempt':["You've reached the maximum number of attempts, I will move the token for you"], -'timeout':["Time is passing I will provide you assistance again"], -'user_move_back':["could you please move back the token?"], -'robot_move_back':["no worries, I will move the token back"], -'lev_0':["It's your turn, please move a token"], -'lev_1':["Come on. I know you can do it", - "Remember, The numbers have to be sorted in ascending order", - "I believe in you!!", - "Dont be afraid to make a mistake. Do it!!"], -'lev_2':["The solution is on row ", - "Look at row "], -'lev_3':["I'm here to help you The solution can be one of those:", - "Why do not try with one of those:"], -'lev_4':["The right token is this one:", - "The right token to move is:", - "It's not so difficult. the right token to move is."], -'lev_5':["The token to move is this one.", - "Take it . and move in the right location"], -'pick_ok':["Yep", "Ok", "Great"], -'pick_no':["Really???", "Are you sure?", "No"] -} -- GitLab