Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Set traffic light error

Thank you!

On Thu, Nov 2, 2017 at 12:14 AM Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx> wrote:
Hello,
the error indicates that the phase string "GyGy" does not have the correct number of entries. Right-click the traffic ligh (red/green bars) for center0 in sumo-gui and check the number of controlled links by selecting 'show phases' or simply call
trafficlights.getRedYellowGreenState('center0') to see what the proper size should be.
regards,
Jakob

2017-11-02 2:46 GMT+01:00 Eugene Vinitsky via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hello, I am trying to control a grid of traffic lights in which they are
named "center0", "center1", etc.
I run the command

self.traci_connection.trafficlights.setRedYellowGreenState('center0', 'GyGy')

I then get the error: Mismatching phase size in tls 'center0', program
'online'.ACT

If someone can see what I'm doing wrong, that'd be much appreciated.

Thanks!

Eugene Vinitsky
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top