in data/envs/babyai/bot_agent.py [0:0]
def _remember_current_state(self):
self.prev_agent_pos = self.mission.unwrapped.agent_pos
self.prev_carrying = self.mission.unwrapped.carrying
fwd_cell = self.mission.unwrapped.grid.get(*self.mission.unwrapped.agent_pos + self.mission.unwrapped.dir_vec)
if fwd_cell and fwd_cell.type == "door":
self.fwd_door_was_open = fwd_cell.is_open
self.prev_fwd_cell = fwd_cell