Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to get the phase duration of next phase in SUMO using traci4matlab?

Hello,
this can be accomplished by calling getCompleteRedYellowGreenDefinition and looking at the properties of the the phase that follows the current one.
regards,
Jakob

2017-09-30 14:27 GMT+02:00 Lawrence Soon via sumo-user <sumo-user@xxxxxxxxxxxxxxxxxxxxx>:
Hi all,


if I am currently in phase red, how to get the phase duration of next phase (green for example) using traci4matlab? the current available traci function traci.edge.getPhaseDuration accounts for the phrase duration of current phase (red in this case), and I am not allowed to simply set the phase index to the next phase (as this would change the setting of traffic light) and then get next phase duration. Does anyone know how to get it?


Thanks and have a great day!

Best Regards,
Lawrence
------------------------------------------------------------------------------
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@lists.sourceforge.net
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