Hello everyone,
I am currently working on an urban traffic model in GAMA, using the driving skill to simulate vehicle traffic on a road network imported from QGIS. I would like to implement parking management: allowing some car agents to leave the road and park on a predefined parking spot (point or polygon), and possibly leave the parking spot later (unparking).
However, I have encountered a problem:
When I change the location of a car agent to move it “off” the road (for example, setting its position on a parking spot), the following car stops completely, as if the parked car was still considered as an obstacle or a “car leader” in the lane. The driving skill continues to consider the parked car for following distance and leader calculations, which blocks the traffic behind it.
I have tried setting variables like current_road, current_path, etc., to nil and disabling reflexes, but the issue remains.
I would like to know:
Thank you in advance for any feedback or suggestions.
I am happy to provide more details if needed, and I can share a code excerpt if helpful—my code is based on the code found in the models from the "Plug-in / Driving Skills" section in GAMA.
Best regards,
Thomas Boyer
PhD student, UMR ESPACE Nice, Université Côte d’Azur
Emc2 Project