Closed eugenevinitsky closed 5 years ago
This potential bug probably never gets triggered because reset is always called to start.
Adding a check in case get_map_with_agents gets called before agents are initialized properly with a position. In that case, they just aren't added to the map, but it still returns what does exist of the map.
Currently the agent initialization script looks like this: map_with_agents = self.get_map_with_agents()
However, when self.get_map_with_agents() is called, the map is currently empty. Hence, at the time of their initialization, their grid may not be correct.
@natashamjaques , I've assigned this to you as this is code you have written so you're more familiar with it than I am.