diff --git a/gym_ai2thor/envs/ai2thor_env.py b/gym_ai2thor/envs/ai2thor_env.py index fe0bdd1..25dc866 100644 --- a/gym_ai2thor/envs/ai2thor_env.py +++ b/gym_ai2thor/envs/ai2thor_env.py @@ -172,7 +172,7 @@ def step(self, action, verbose=True): for obj in visible_objects: # look for closest closed receptacle to open it is_closest_closed_receptacle = obj['openable'] and \ - obj['distance'] < distance and not obj['isopen'] and \ + obj['distance'] < distance and not obj['isOpen'] and \ obj['objectType'] in self.objects['openables'] if is_closest_closed_receptacle: closest_openable = obj @@ -187,7 +187,7 @@ def step(self, action, verbose=True): for obj in visible_objects: # look for closest opened receptacle to close it is_closest_open_receptacle = obj['openable'] and obj['distance'] < distance \ - and obj['isopen'] and \ + and obj['isOpen'] and \ obj['objectType'] in self.objects['openables'] if is_closest_open_receptacle: closest_openable = obj