
# tm002
tm002_room_cell_match = {'toilet': [[5,10]], 
        'bathroom_sink': [[5,8],[5,9]],
        'livingroom_chair': [[4,1]],
        'kitchen_sink': [[7,4]],
        'bedroom_duration': [[1,6], [1,7], [1,8], [1,9], [1,10], [2,6], [2,7], [2,8], [2,9], [2,10], [3,6],[3,7],[3,8],[3,9],[3,10]],
        'kitchen_duration':[[5,1],[5,2],[5,3],[5,4],[6,1],[6,2],[6,3],[6,4],[6,5],[7,1],[7,2],[7,3],[7,4],[7,5]], 
        'livingroom_duration':[[1,1],[1,2],[1,3],[1,4],[1,5],[2,1],[2,2],[2,3],[2,4],[2,5],[3,1],[3,2],[3,3],[3,4],[3,5],[4,1],[4,2],[4,3],[4,4],[4,5]], 
        'hallway_duration':[[4,6],[4,7],[5,6], [5,7],[6,6],[6,7],[7,6],[7,7]],
        'stove': [[7,3]],
        # 'kitchen_chair': [[6,2]],
        'office_chair':[[2,7]]
        }

# tm001
tm001_room_cell_match = {'toilet': [[4,1]], 
        'bathroom_sink': [[4,2],[4,3]],
        'livingroom_chair': [[3,11]],
        'kitchen_sink': [[7,8]],
        'bedroom_duration': [[1,1],[1,2],[1,3],[1,4],[1,5],[2,1],[2,2],[2,3],[2,4],[2,5]],
        'kitchen_duration':[[4,11],[5,8],[5,9],[5,10],[5,11],[6,7],[6,8],[6,9],[6,10],[6,11],[7,8],[7,9],[7,10],[7,11]], 
        'livingroom_duration':[[1,6],[1,7],[1,8],[1,9],[1,10],[1,11],[2,6],[2,7],[2,8],[2,9],[2,10],[2,11],[3,6],[3,7],[3,8],[3,9],[3,10],[3,11],[4,6],[4,7],[4,8],[4,9],[4,10]], 
        'hallway_duration':[[3,4],[3,5],[4,4],[4,5],[5,5],[6,4],[6,5],[6,6]],
        'stove': [[7,9]],
        # 'kitchen_chair': [[4,11]],
        'office_chair':[[5,9],[5,8]]
        }

## hh105
hh105_room_cell_match = {'toilet': [[7,12]], 
        'bathroom_sink': [[6,11]],
        'livingroom_chair': [[5,7]],
        'kitchen_sink': [[3,2]],
        'bedroom_duration': [[1,9],[1,10],[1,11],[1,12],[2,9],[2,10],[2,11],[2,12],[3,9],[3,10],[3,11],[4,9],[4,10],[4,11],[4,12],[5,9],[5,10],[5,11],[5,12],[6,9],[6,10]],
        'kitchen_duration':[[1,1],[1,2],[1,3],[1,4],[1,5],[2,1],[2,2],[2,3],[2,4],[2,5],[3,1],[3,2],[3,3],[3,4],[4,1],[4,2],[4,3]], 
        'livingroom_duration':[[5,4],[5,5],[5,6],[5,7],[5,8],[6,4],[6,5],[6,6],[6,7],[6,8],[7,4],[7,5],[7,6],[7,7],[7,8]], 
        'hallway_duration':[[4,4],[4,5],[4,6],[4,7],[4,8]],
        'stove': [[2,2]],
        # 'kitchen_chair': [[2,5]],
        'office_chair':[[2,8]]
        }

# hh109
hh109_room_cell_match = {'toilet': [[7,9]], 
        'bathroom_sink': [[6,8]],
        'livingroom_chair': [[4,5]],
        'kitchen_sink': [[7,2]],
        'bedroom_duration': [[1,7],[1,8],[1,9],[2,7],[2,8],[2,9],[3,7],[3,8],[3,9],[4,7],[4,8],[4,9],[5,7],[5,8],[5,9],[6,7]],
        'kitchen_duration':[[5,1],[6,1],[7,1],[8,1],[5,2],[6,2],[7,2],[8,2]], 
        'livingroom_duration':[[1,4],[1,5],[2,4],[2,5],[3,4],[3,5],[4,4],[4,5]], 
        'hallway_duration':[[6,4],[6,5]],
        'stove': [[5,2]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[2,8]]
        }

# hh104
hh104_room_cell_match = {'toilet': [[4,3],[4,11]], 
        'bathroom_sink': [[4,3],[4,11]],
        'livingroom_chair': [[6,5],[7,4]],
        'kitchen_sink': [[3,5]],
        'bedroom_duration': [[5,8],[5,9],[5,10],[5,11],[6,9],[6,10],[6,11],[7,9],[7,10],[7,11]],
        'kitchen_duration':[[2,5],[3,5],[3,6],[3,7]], 
        'livingroom_duration':[[6,4],[6,5],[6,6],[6,7],[7,4],[7,5],[7,6],[7,7]], 
        'hallway_duration':[[5,4],[5,5],[5,6],[5,7]],
        'stove': [[3,7]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[6,1]]
        }

# hh122
hh122_room_cell_match = {'toilet': [[7,8],[5,2]], 
        'bathroom_sink': [[7,8],[5,2]],
        'livingroom_chair': [[2,12],[3,12]],
        'kitchen_sink': [[2,5]],
        'bedroom_duration': [[1,1],[2,1],[3,1],[4,1],[1,2],[2,2],[3,2],[4,2],[4,3],[4,4],[4,5]],
        'kitchen_duration':[[1,3],[2,3],[2,4],[2,5],[2,6],[2,7]], 
        'livingroom_duration':[[2,10],[2,11],[2,12],[3,10],[3,11],[3,12]], 
        'hallway_duration':[[4,6],[4,7],[4,8]],
        'stove': [[2,4]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[7,12]]
        }

# hh124
hh124_room_cell_match = {'toilet': [[5,12]], 
        'bathroom_sink': [[5,12]],
        'livingroom_chair': [[2,5], [3,5]],
        'kitchen_sink': [[7,4]],
        'bedroom_duration': [[3,13],[5,11]],
        'kitchen_duration':[[6,5],[7,4]], 
        'livingroom_duration':[[2,5],[3,5],[4,3]], 
        'hallway_duration':[[5,6],[6,7],[6,9]],
        'stove': [[7,4]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[4,7]]
        }


# aruba
aruba_room_cell_match = {'toilet': [[6,8], [2,6]], 
        'bathroom_sink': [[6,8], [2,6]],
        'livingroom_chair': [[6,3],[7,3]],
        'kitchen_sink': [[2,1]],
        'bedroom_duration': [[8,7], [8,5], [7,5], [6,6], [6,5]],
        'kitchen_duration':[[2,1], [1,3], [2,3], [3,3]], 
        'livingroom_duration':[[7,2], [6,2], [4,2], [6,3], [7,3]],
        'hallway_duration':[[6,4], [8,4], [4,4], [4,6]],
        'stove': [[2,1]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[1,9], [2,9]]
        }


# hh107
hh107_room_cell_match = {'toilet': [[5,2], [5,15]], 
        'bathroom_sink': [[5,2], [5,15]],
        'livingroom_chair': [[1,7], [2,7], [3,4]],
        'kitchen_sink': [[5,10]],
        'bedroom_duration': [[1,16], [3,16], [3,13]],
        'kitchen_duration':[[5,10], [6,10], [5,12], [5,11]], 
        'livingroom_duration':[[1,7], [2,7], [3,4]], 
        'hallway_duration':[[5,5],[3,8],[3,9]],
        'stove': [[5,10]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[4,1]]
        }


# hh127
hh127_room_cell_match = {'toilet': [[5,1]], 
        'bathroom_sink': [[5,1]],
        'livingroom_chair': [[2,13], [3,11]],
        'kitchen_sink': [[7,11]],
        'bedroom_duration': [[5,2]],
        'kitchen_duration':[[7,10],[7,11],[6,13]], 
        'livingroom_duration':[[2,13], [3,11]], 
        'hallway_duration':[[7,5], [7,7]],
        'stove': [[7,10]],
        # 'kitchen_chair': [[3,2]],
        'office_chair':[[2,6]]
        }




room_names = ['toilet', 'bathroom_sink', 'livingroom_chair','kitchen_sink',\
                'bedroom_duration','kitchen_duration', 'livingroom_duration', \
                'hallway_duration','stove','office_chair']

# number_activities = ['toilet', 'livingroom_chair', 'kitchen_sink', 'kitchen_chair', 'office_chair']
number_activities = ['toilet', 'livingroom_chair', 'kitchen_sink', 'office_chair']
# IAT = ['bet_to_toilet']


tm002_spot_cell_match = {'toilet': "BathroomAToilet", 
        'livingroom_chair': "LivingRoomAChair",
        'kitchen_sink': "KitchenASink",
        # 'kitchen_chair': "KitchenADiningChair",
        'office_chair': "OfficeAChair",
        }

tm002_cell_id = {"BathroomASink": [5,9],
      "BathroomAToilet": [5,10],
      "BedroomABed": [2,10],
      "BedroomADoor":[3,7],
      "HallwayA": [4,6],
      "KitchenADiningChair":[6,2],
      "KitchenARefrigerator": [6,5],
      "KitchenASink":[7,4],
      "KitchenAStove": [7,3],
      "LivingRoomAChair": [4, 1],
      "MainDoor": [7,7],
      "MainEntryway": [6,6],
      "OfficeAChair": [2,7],
      "BathroomATemperature": [6,10]}

tm002_IAT = {'bed':"BedroomABed", 'toilet':"BathroomAToilet"}


tm001_spot_cell_match = {'toilet': "BathroomAToilet", 
        'livingroom_chair': "LivingRoomAChair",
        'kitchen_sink': "KitchenASink",
        # 'kitchen_chair': "KitchenADiningChair",
        'office_chair': "OfficeAChair"
        }

tm001_cell_id = {"BathroomASink": [4,2],
           "BathroomAToilet": [4,1],
           "BedroomABed": [1,1],
           "BedroomADoor": [2,5],
           "HallwayA": [3,5],
           "KitchenADiningChair": [5,11],
           "KitchenARefrigerator": [6,7],
           "KitchenASink": [7,8],
           "KitchenAStove": [7,9],
           "LivingRoomAChair": [3,11],
           "MainEntryway": [6,5],
           "OfficeAChair": [5,9],
           "BathroomATemperature": [5,1]}

tm001_IAT = {'bed':"BedroomABed", 'toilet':"BathroomAToilet"}


hh105_spot_cell_match = {'toilet': 'MA011', 
        'livingroom_chair': 'M005',
        'kitchen_sink': 'M007',
        # 'kitchen_chair': 'M018',
        'office_chair': 'M014'
        }
hh105_cell_id = {"M002":[8,9],
     "M003":[7,9],
     "M004":[2,2],
     "M005":[5,7],
     "M006":[3,10],
     "M007":[3,2],
     "M008":[6,10],
     "M010":[5,10],
     "M012":[2,11],
     "M013":[3,11],
     "M014":[2,8],
     "M017":[4,6],
     "M018":[2,5],
     "T104":[8,11]}

hh105_IAT = {'bed':'M013', 'toilet':'MA011'}

# hh109
hh109_spot_cell_match = {'toilet': 'MA017', 
        'livingroom_chair': 'M003',
        'kitchen_sink': 'M010',
        # 'kitchen_chair': 'M007',
        'office_chair':'M014'
        }
hh109_cell_id = {"M001":[8,6],
     "M002":[7,6],
     "M003":[4,5],
     "M004":[2,4],
     "M006":[6,4],
     "M007":[3,2],
     "M008":[5,2],
     "M010":[7,2],
     "M011":[5,7],
     "M012":[4,7],
     "M014":[2,8],
     "M015":[4,9],
     "M016":[7,7]}
hh109_IAT = {'bed':'M015', 'toilet':'M017'}

## hh104

# hh104_spot_cell_match = {'toilet': ['MA014','MA019'], 
#         'livingroom_chair': ['M005','M006'],
#         'kitchen_sink': ['M026'],
#         # 'kitchen_chair': 'M018',
#         'office_chair': ['M008']
#         }


hh104_spot_cell_match = {'toilet': 'MA014', 
        'livingroom_chair': 'M005',
        'kitchen_sink': 'M026',
        # 'kitchen_chair': 'M018',
        'office_chair': 'M008'
        }

hh104_cell_id = {"M001":[5,6],
        "M002":[1,4],
        "M003":[5,11],
        "M004":[3,4],
        "M005":[6,5],
        "M006":[7,4],
        "M007":[6,9],
        "M008":[6,1],
        "M009":[5,1],
        "M010":[7,1],
        "M011":[3,7],
        "M012":[7,11],
        "M013":[5,4],
        "M016":[6,6],
        "M020":[7,3],
        "M021":[6,11],
        "M023":[4,9],
        "M024":[5,8],
        "M025":[5,9],
        "M026":[3,5],
        "M027":[3,6],
        "MA014":[4,11],
        "MA019":[4,3]}

## hh122
## hh104

# hh122_spot_cell_match = {'toilet': ['MA013','MA005'], 
#         'livingroom_chair': ['M020','M021'],
#         'kitchen_sink': ['M010'],
#         # 'kitchen_chair': 'M018',
#         'office_chair': ['M022']
#         }


hh122_spot_cell_match = {'toilet': 'MA005', 
        'livingroom_chair': 'M020',
        'kitchen_sink': 'M010',
        # 'kitchen_chair': 'M018',
        'office_chair': 'M022'
        }

hh122_cell_id = {"M001":[9,3],
        "M002":[8,5],
        "M003":[4,5],
        "M004":[4,2],
        "M006":[6,1],
        "M007":[3,1],
        "M008":[2,2],
        "M009":[4,7],
        "M010":[2,5],
        "M012":[2,4],
        "M014":[6,10],
        "M015":[4,8],
        "M016":[2,7],
        "M017":[2,10],
        "M018":[3,10],
        "M020":[2,12],
        "M021":[3,12],
        "M022":[7,12],
        "M024":[1,4],
        "MA005":[5,2],
        "MA013":[7,8]}

hh124_spot_cell_match = {'toilet':'MA018', 
        'livingroom_chair': 'M008',
        'kitchen_sink': 'M004',
        # 'kitchen_chair': 'M018',
        'office_chair': 'MA020'}

hh124_cell_id ={"MA018":[5,12],
      "MA020":[4,7],
      "M001":[6,7],
      "M002":[6,9],
      "M003":[5,6],
      "M004":[7,4],
      "M006":[4,3],
      "M007":[6,1],
      "M008":[3,5],
      "M009":[3,13],
      "M010":[5,11],
      "M011":[2,5],
      "M013":[6,5]
}



hh107_spot_cell_match = {'toilet':'MA020', 
        'livingroom_chair': 'M010',
        'kitchen_sink': 'M007',
        # 'kitchen_chair': 'M018',
        'office_chair': 'MA019'}

hh107_cell_id ={"M001":[6,3],
        "M002":[4,2],
        "M003":[5,5],
        "M004":[3,8],
        "M005":[3,9],
        "M006":[3,13],
        "M007":[5,10],
        "M008":[6,10],
        "M009":[1,7],
        "M010":[2,7],
        "M011":[1,16],
        "M012":[3,16],
        "M013":[5,15],
        "M014":[5,12],
        "M015":[5,11],
        "M016":[3,4],
        "M017":[2,10],
        "M018":[1,11],
        "MA019":[4,1],
        "MA020":[5,2]}


aruba_spot_cell_match = {'toilet':'M004', 
        'livingroom_chair': 'M010',
        'kitchen_sink': 'M015',
        # 'kitchen_chair': 'M018',
        'office_chair': 'M026'}

aruba_cell_id ={"M001":[8,7],
        "M002":[8,5],
        "M003":[7,5],
        "M004":[6,8],
        "M005":[6,6],
        "M006":[6,5],
        "M008":[6,4],
        "M009":[6,3],
        "M010":[7,3],
        "M011":[8,4],
        "M012":[7,2],
        "M013":[6,2],
        "M014":[4,2],
        "M015":[2,1],
        "M016":[1,3],
        "M017":[2,3],
        "M018":[3,3],
        "M021":[4,4],
        "M022":[4,6],
        "M023":[3,7],
        "M025":[2,9],
        "M026":[1,9],
        "M028":[2,7],
        "M029":[2,6],
        "M030":[1,6],
        "M031":[3,5]}


hh127_spot_cell_match = {'toilet':'MA012', 
        'livingroom_chair': 'M006',
        'kitchen_sink': 'M004',
        # 'kitchen_chair': 'M018',
        'office_chair': 'M010'}

hh127_cell_id = {"M001":[7,5],
        "M002":[7,7],
        "M003":[7,10],
        "M004":[7,11],
        "M005":[6,13],
        "M006":[2,13],
        "M007":[3,11],
        "M009":[5,5],
        "M010":[2,6],
        "M013":[5,2],
        "MA012":[5,1]}