robocup_knowledge
rgo2015/challenge_gpsr.py
Go to the documentation of this file.
1 # GERMAN OPEN 2015
2 
3 #locations:
4 starting_point = "initial_pose_door_A"
5 meeting_point = "gpsr_meeting_point"
6 
7 #data for speech recognition
8 objects_known = ["ice-tea", "oblates", "bubblegum", "candle", "cup", "beer", "wd40", "filler", "chocolate cereals", "coke",
9  "chocosticks", "yellow candle", "noodles", "coffee", "cranberry cereals", "muesli cereals", "bubblemint",
10  "deodorant", "brush", "cigarettes", "red bull", "meadow milk", "mints", "pringles", "fresh milk", "coffeepads",
11  "peanut"]
12 
13 object_types_plural = ["decoration", "food", "drinks", "tools", "leisure"]
14 object_types_singular = ["drink", "snack", "bowl", "tray", "tool", "leisure"]
15 object_types = object_types_plural + object_types_singular
16 
17 location_placement = ['left bedside table', 'dinnertable', 'cupboard',
18  'bartable', 'stove', 'counter', 'left bookcase', 'fridge',
19  'bed', 'sink', 'desk', 'small table',
20  'kitchencounter', 'cabinet', 'couchtable', 'right bedside table', 'right bookcase']
21 
22 
23 location_types = ['', 'shelf', 'appliance', 'seat', 'table', 'utility']
24 
25 rooms = ["kitchen", "livingroom", "hall", "bedroom", "office"]
26 persons_women = ["Anna","Beth","Carmen","Jennifer","Jessica","Kimberly","Kristina","Laura","Mary","Sarah"]
27 persons_men = ["Alfred","Charles","Daniel","James","John","Luis","Paul","Richard","Robert","Steve"]
28 
29 #spec_get_and_deliver
30 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>)))"
31 
32 #spec go to room and search for an object
33 spec_goroom_findobj = "(<1_vb_goto> the <1_room> and <2_vb_find> the <2_object>)"
34 
35 #spec find a person and talk with
36 spec_findperson_talk = "(<2_vb_find> a person in the <1_room> and ((answer a <3_question>)|(<3_vb_speak> <3_name_time_date>)))"
37 
38 spec = "("+spec_get_deliver+"|"+spec_goroom_findobj+"|"+spec_findperson_talk+")"
39 #spec = spec_get_deliver
40 
41 choices = {'1_location':location_placement,
42 '2_vb_take':['take', 'grasp', 'get'],
43 '2_object':objects_known,
44 '3_vb_deliver': ['bring', 'carry', 'deliver', 'take'],
45 '3_person_me':['me'],
46 '3_person':persons_men+persons_women,
47 '3_place_location':location_placement,
48 '3_room':rooms,
49 
50 '1_vb_goto':['go to', 'navigate to', 'reach', 'get into'],
51 '1_room':rooms,
52 '2_vb_find':['find', 'look for'],
53 '3_question':['question'],
54 '3_vb_speak':['tell', 'say', 'speak'],
55 '3_name_time_date':['your name', 'the name of your team', 'the time', 'what time is it', 'tell the date', 'what day is today', 'what day is today', 'what day is tomorrow', 'tell the day of the month', ' tell the day of the week']}