Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gym_ai2thor/envs/ai2thor_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down