Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] TraCI: Close a lane to all Vehicles for a given time

Hi,
I'm using TraCI's python API to control my SUMO simulation
and need to close off (for all vehicle types) a given Lane, L, for some period of time, D.

traci.lane.setDisallowed()

Seems to be the only solution to close the lane off, however it requires me to specify a list of all vehicle classes I want to disallow (and unlike the setAllowed command doesn't assume that empty arguments means all vehicles).

(1) I don't know what this list needs to be so it disallows all  vehicles, if someone could provide that, it would be much appreciated.

(2) In terms of re-allowing the Lane after time D, I am currently using a datastructure in the python script and doing the time keeping manually, is there a better way to do this via TraCI?

Regards,
Jordan McConnon
 

Séanadh Ríomhphoist/

Email Disclaimer

Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo. 

This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here. 


Back to the top