2 from robocup_knowledge
import knowledge_loader
3 challenge_speech_recognition_data = knowledge_loader.load_knowledge(
"challenge_speech_recognition")
5 spec_questions = challenge_speech_recognition_data.spec
6 choices_questions = challenge_speech_recognition_data.choices
9 starting_point =
"initial_pose_door_A"
10 meeting_point =
"gpsr_meeting_point"
11 gpsr_exit =
"exit_door_B1"
14 rooms_detailed = {
'kitchen':[
'kitchentable',
'kitchencounter',
'cupboard'],
15 'livingroom':[
'bar',
'couchtable',
'dinnertable',
'sofa'],
16 'bedroom':[
'left_bedside_table',
'right_bedside_table',
'desk',
'bed'],
17 'hallway':[
'hallwaytable',
'bookcase/shelf1',
'bookcase/shelf2',
'bookcase/shelf3',
'bookcase/shelf4',
'bookcase/shelf5',
'bookcase/shelf6',
'bookcase/shelf7',
'bookcase/shelf8']}
19 objects_known_recognize = [
'pure_milk',
'orange_juice',
'sponge',
'papaya_milk',
'apple',
'tomato_chips',
'lemon',
'toothpaste',
20 'chocolates',
'bowl',
'beer',
'toilet_paper',
'soap',
'plate',
'pear',
'lotion',
'water',
'cloth',
21 'green_tea',
'gram_soup',
'bubble_gum',
'bean_sauce',
'barbecue_chips',
'tray',
'coconut_cereals',
22 'egg_stars',
'honey_chips',
'coco_balls',
'biscuits']
30 objects_known = [
'pure milk',
'orange juice',
'sponge',
'papaya milk',
'apple',
'tomato chips',
'lemon',
'toothpaste',
31 'chocolates',
'bowl',
'beer',
'toilet paper',
'soap',
'plate',
'pear',
'lotion',
'water',
'cloth',
32 'green tea',
'gram soup',
'bubble gum',
'bean sauce',
'barbecue chips',
'tray',
'coconut cereals',
33 'egg stars',
'honey chips',
'coco balls',
'biscuits']
35 location_placement = [
'kitchentable',
'kitchencounter',
'cupboard',
'bar',
'couchtable',
'dinnertable',
'sofa',
36 'left bedside table',
'right bedside table',
'desk',
'bed',
'bookcase',
'hallwaytable']
40 rooms = [
"kitchen",
"hallway",
"livingroom",
"bedroom"]
43 persons_women = [
"Alex",
"Angel",
"Eve",
"Jamie",
"Jane",
"Liza",
"Melissa",
"Tracy",
"Robin",
"Sophia"]
44 persons_men = [
"Alex",
"Angel",
"Edward",
"Homer",
"Jamie",
"John",
"Kevin",
"Kurt",
"Tracy",
"Robin"]
47 spec_get_deliver =
"(<2_vb_take> the <2_object> from the <1_location> and <3_vb_deliver> it to (<3_person_me>|(the <3_place_location>)|(<3_person> (at|in|(which is in)) the <3_room>)))"
51 spec_goroom_findobj =
"(<1_vb_goto> the <1_room> and <2_vb_find> the <2_object>)"
54 spec_findperson_talk =
"(<2_vb_find> a person in the <1_room> and ((answer a <3_question>)|(<3_vb_speak> <3_name_time_date>)))"
56 spec =
"("+spec_get_deliver+
"|"+spec_goroom_findobj+
"|"+spec_findperson_talk+
")"
59 choices = {
'1_location':location_placement,
60 '2_vb_take':[
'take',
'grasp',
'get'],
61 '2_object':objects_known,
62 '3_vb_deliver': [
'bring',
'carry',
'deliver',
'take'],
64 '3_person':persons_men+persons_women,
65 '3_place_location':location_placement,
68 '1_vb_goto':[
'go to',
'navigate to',
'reach',
'get into'],
70 '2_vb_find':[
'find',
'look for'],
71 '3_question':[
'question'],
72 '3_vb_speak':[
'tell',
'say',
'speak'],
73 '3_name_time_date':[
'your name',
'the name of your team',
'the time',
'what time is it',
'what time it is',
'the date',
'what day is today',
'what day is tomorrow',
'the day of the month',
'the day of the week']}