robocup_knowledge
rwc2016b/common.py
Go to the documentation of this file.
2 
3 # Keep same reference
4 locations.extend([
5  { "room" : "bedroom", "name" : "bed", "location_category" : "", "manipulation" : "no" },
6  { "room" : "bedroom", "name" : "desk", "location_category" : "snacks", "manipulation" : "yes" },
7  { "room" : "bedroom", "name" : "bedside", "location_category" : "candies", "manipulation" : "yes" },
8  { "room" : "kitchen", "name" : "bar", "location_category" : "", "manipulation" : "yes" },
9  { "room" : "kitchen", "name" : "sink", "location_category" : "containers", "manipulation" : "yes" },
10  { "room" : "kitchen", "name" : "cupboard", "location_category" : "drinks", "manipulation" : "yes" },
11  { "room" : "kitchen", "name" : "sideshelf", "location_category" : "food", "manipulation" : "yes" },
12  { "room" : "dining_room", "name" : "tv_stand", "location_category" : "", "manipulation" : "yes" },
13  { "room" : "dining_room", "name" : "dining_table", "location_category" : "", "manipulation" : "yes" },
14  { "room" : "dining_room", "name" : "bookcase", "location_category" : "", "manipulation" : "yes" },
15  { "room" : "living_room", "name" : "living_shelf", "location_category" : "", "manipulation" : "yes" },
16  { "room" : "living_room", "name" : "living_table", "location_category" : "", "manipulation" : "yes" },
17  { "room" : "living_room", "name" : "drawer", "location_category" : "toiletries", "manipulation" : "yes" },
18  { "room" : "corridor", "name" : "cabinet", "location_category" : "", "manipulation" : "yes" }
19 ])
20 
21 category_locations.update({
22  "candies": ( "bedside", "on_top_of" ),
23  "snacks": ( "desk", "on_top_of" ),
24  "drinks": ( "cupboard", "on_top_of" ),
25  "food": ( "sideshelf", "on_top_of" ),
26  "toiletries": ( "drawer", "on_top_of" ),
27  "containers": ( "sink", "on_top_of" )
28 })
29 
30 inspect_areas = {
31  "bookcase" : ["shelf1", "shelf2", "shelf3", "shelf4", "shelf5"]
32 }
33 
34 inspect_positions = {
35 }
36 
37 rooms = list(set([o["room"] for o in locations]))
38 grab_locations = list(set([o["name"] for o in locations if o["manipulation"] == "yes"]))
39 put_locations = list(set([o["name"] for o in locations if o["manipulation"] != "no"]))
40 
41 if __name__ == "__main__":
robocup_knowledge.environments.rwc2016_common.common
Definition: rwc2016_common/common.py:1
robocup_knowledge.environments.rwc2016_common.common.test_knowledge
def test_knowledge()
Definition: rwc2016_common/common.py:115