robocup_knowledge
rgo2017/challenge_open.py
Go to the documentation of this file.
1 starting_point = "initial_pose"
2 
3 ask_waypoint = "challenge_open_ask_waypoint"
4 
5 # required keys: entity_id (str), room_id (str), navigation_area (str), segment_areas (list)
6 inspection_places = [
7  {"entity_id": "dinner_table",
8  "room_id": "dining_room",
9  "navigate_area": "near",
10  "segment_areas": ["on_top_of"]},
11 
12  {"entity_id": "desk",
13  "room_id": "kitchen",
14  "navigate_area": "near",
15  "segment_areas": ["on_top_of"]},
16 
17  {"entity_id": "kitchencounter",
18  "room_id": "living_room",
19  "navigate_area": "in_front_of",
20  "segment_areas": ["on_top_of"]},
21 
22  {"entity_id": "stove",
23  "room_id": "kitchen",
24  "navigate_area": "in_front_of",
25  "segment_areas": ["on_top_of"]},
26 ]
27 
28 grammar = "T[X] -> PLACES[X]"
29 grammar_target = "T"
30 for place in inspection_places:
31  grammar += "\nPLACES[%s] -> %s" % (place['entity_id'], place['entity_id'])
32  grammar += "\nPLACES[%s] -> %s" % (place['entity_id'], place['room_id'])