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" }
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" )
31 "bookcase" : [
"shelf1",
"shelf2",
"shelf3",
"shelf4",
"shelf5"]
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"]))
41 if __name__ ==
"__main__":