geek-ai / MAgent

A Platform for Many-Agent Reinforcement Learning
MIT License
1.68k stars 332 forks source link

cannot find a blank position in a filled map #18

Closed ddhostallero closed 5 years ago

ddhostallero commented 6 years ago

While I was running some simulation, this happened. I cannot replicate it since it happened only one. However, you might want to investigate it

terminate called after throwing an instance of 'std::runtime_error'
  what():  /home/MAgent/src/gridworld/Map.cc:60 : cannot find a blank position in a filled map
merrymercy commented 6 years ago

This error means your map is full, so the engine cannot insert new object (agent or wall) into the map. Do you add new agents during your simulation?

sunfanyunn commented 6 years ago

Is it okay to add new agents during simulation?

merrymercy commented 6 years ago

Yes, it is supported.