[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Traci importing a new traffic light program
|
Write this piece of code in your script.
Or read relevant values from external. xml
file and feed here.
Hi all,
I want to know how to load an additional file with a traffic light program to change just one of the traffic lights using traci. I have a network with 4 traffic lights in a grid and I want to change just one of them to a different program. I can't change it
in the net file because I initialise the traffic light program separate to this.
I want to do something like this:
newprogram = 'myfiles/differenttlprogram.xml'
traci.trafficlight.setProgram(tl_1, newprogram)
but I'm not sure how to get the syntax right for importing the additional file. Thanks for your help!
Kind regards,
Charlotte
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
Attachment:
1.png
Description: PNG image