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,
Jakob2017-11-02 2:46 GMT+01:00 Eugene Vinitsky via sumo-user < [email protected]>: > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
