The recommended approach to testing new TLS algorithms in SUMO is to take a static controller and remote-controll it via TraCI. As indicated in an earlier answer, a good strategy is to set high green phase durations for the static controller and switch it by calling setPhase as triggered by your own algorithm implemented in python or java (or another supported client language). This is preferred to remote-controlling an actuated controller because additional interferece is usually not desired. If your algorithm is to be tested in a city wide simulation (i.e. 100+ controllers) and execution speed becomes critical, then you could take one of the actuated controllers as a template and add your own algorithm to the C++ code base.
2018-06-17 23:48 GMT+02:00 Jose Monreal Bailey <[email protected]>: > What do you mean by "you do not need these" ? > Regarding to the actuated algorithms, how can I implement a new algorithm > and pass it to the TL? > > Best regards, > José > > On Sun, 17 Jun 2018 at 20:58, Jakob Erdmann <[email protected]> wrote: > >> If you want to modify programs at runtime you do not need these. They >> implement traffic-actuated algorithms that work by themselves (described >> here: http://sumo.dlr.de/wiki/Simulation/Traffic_Lights# >> Actuated_Traffic_Lights >> >> 2018-06-16 0:49 GMT+02:00 Jose Monreal Bailey <[email protected]>: >> >>> Dear all, >>> >>> What's the difference between the TLS types static, actuated and >>> delay_based? >>> Can you give me some example how to use and when to use each of these? >>> >>> I also want to be able to modify the TLS programs on real-time through >>> traci. >>> >>> >>> Best regards, >>> José >>> >>> _______________________________________________ >>> 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 >> > > _______________________________________________ > 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
