robocup_knowledge
rwc2015/challenge_gpsr.py
Go to the documentation of this file.
1 # RWC2015
2 from robocup_knowledge import knowledge_loader
3 challenge_speech_recognition_data = knowledge_loader.load_knowledge("challenge_speech_recognition")
4 
5 spec_questions = challenge_speech_recognition_data.spec
6 choices_questions = challenge_speech_recognition_data.choices
7 
8 #locations: # TO BE DEFINED IN model.yaml!
9 starting_point = "initial_pose_door_A"
10 meeting_point = "gpsr_meeting_point"
11 gpsr_exit = "exit_door_B1"
12 
13 # locations inside room used for finding object in room.
14 rooms_detailed = { 'kitchen':['kitchentable','kitchencounter', 'cupboard'], # fridge and trashbin are no manipulation locations
15  'livingroom':['bar','couchtable','dinnertable','sofa'], # dinnertable and sofa have both two spots
16  'bedroom':['left_bedside_table','right_bedside_table','desk','bed'],# bed has two spots
17  'hallway':['hallwaytable', 'bookcase/shelf1','bookcase/shelf2','bookcase/shelf3','bookcase/shelf4','bookcase/shelf5','bookcase/shelf6','bookcase/shelf7','bookcase/shelf8']} #,'bookcase']} # both locations have multiple spots.
18 
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']
23 
24 
27 
28 #data for speech recognition
29 
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']
34 
35 location_placement = ['kitchentable', 'kitchencounter', 'cupboard', 'bar', 'couchtable', 'dinnertable', 'sofa',
36  'left bedside table', 'right bedside table', 'desk', 'bed', 'bookcase', 'hallwaytable']
37 
38 #location_placement = ['kitchentable','dinnertable']
39 
40 rooms = ["kitchen", "hallway", "livingroom", "bedroom"]
41 #rooms = ["hallway"]
42 
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"]
45 
46 #spec_get_and_deliver
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>)))"
48 #spec_get_deliver = "(<2_vb_take> the <2_object> from the <1_location> and <3_vb_deliver> it to the <3_place_location>)"
49 
50 #spec go to room and search for an object
51 spec_goroom_findobj = "(<1_vb_goto> the <1_room> and <2_vb_find> the <2_object>)"
52 
53 #spec find a person and talk with
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>)))"
55 
56 spec = "("+spec_get_deliver+"|"+spec_goroom_findobj+"|"+spec_findperson_talk+")"
57 #spec = spec_get_deliver
58 
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'],
63 '3_person_me':['me'],
64 '3_person':persons_men+persons_women,
65 '3_place_location':location_placement,
66 '3_room':rooms,
67 
68 '1_vb_goto':['go to', 'navigate to', 'reach', 'get into'],
69 '1_room':rooms,
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']}
74