[Discussion] RealRandomSpawn - How often should we try to place the pedestrians?
The new spawning method in the SingleSourceController divides the space in a grid which leads to certain side effects e.g. pedestrians are only place in the same "rows" and "columns". @BZoennchen Added a new SourceController (SingleSourceRealRandomController) which places the pedestrians randomly within the given source shape (at the moment limited to a rectangle). For this method, one needs to check if the next pedestrian position leads to overlapping pedestrians.
The question to be discussed is: How many times should we try to place the pedestrians before giving up and what should happen if we give up?
At the moment, we give it 100 tries and then the rest of the pedestrians are generated in the next / following time steps.
Other Possibilites (please feel free to add your ideas):
- Stop the simulation if the source area is too small for the selected number of pedestrians.