I got into a problem while utilizing if conditions in a for loop in TraCI, a Python module. This module is used to control a traffic simulation software called SUMO. As it is shown here in the first code, the if conditions are checked for every vehicle at every simulation step. However, since in the second code, the term 'vehtp == "1"' is added to the if condition, while running, every vehicle is checked once in the if conditions. I was wondering to know how I should change it that the if conditions are checked for every vehicle at every simulation step until the end of simulation. I appreciate for any help in advance.
Thanks, Reza.
Aucun commentaire:
Enregistrer un commentaire