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