This was a great help, thanks!

On Tue, 25 Jan 2022 at 05:46, Jakob Erdmann <[email protected]> wrote:

> 1.
> disallow everything: setDisallowed(laneID, ["all"])
> alternatively, allow only a singe class that probably isn't used in your
> vehicle input: setAllowed(laneID, ["authority"]). Bonus: the lane will be
> orange in the GUI.
>
> 2.
> Not with traci, but you can do time-based permission changes with XML
> input: https://sumo.dlr.de/docs/Simulation/Rerouter.html#closing_a_lane
>
>
> Am Mo., 24. Jan. 2022 um 19:11 Uhr schrieb Jordan Mc Connon <
> [email protected]>:
>
>> 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 DisclaimerTá 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.
>> <https://www.dcu.ie/iss/seanadh-riomhphoist.shtml>
>> <https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml>This e-mail and any
>> files transmitted with it are confidential and are intended solely for use
>> by the addressee. Read more here.
>> <https://www.dcu.ie/iss/email-disclaimer.shtml> *
>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>

-- 
__

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. 
<https://www.dcu.ie/iss/seanadh-riomhphoist.shtml>  
<https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml>*
_

This e-mail and any 
files transmitted with it are confidential and are intended solely for use 
by the addressee. Read more here. 
<https://www.dcu.ie/iss/email-disclaimer.shtml> _
*_
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to