Hi Menno, Can you provide an example scenario triggering the mentioned assertions? Best, Leo
-----Ursprüngliche Nachricht----- Von: Menno van der Woude via sumo-devel [mailto:[email protected]] Gesendet: Sonntag, 23. Juli 2017 21:12 An: Jakob Erdmann Cc: [email protected] Betreff: Re: [sumo-devel] Setting individual traffic light state via TraCI Hello Jakob, thanks for clarifying this. It would be nice to be able to set the index via NETEDIT. And/or to set a custom string field per connection, which could be referenced in a TraCI call. I'd be happy to implement the latter, but I'd need some pointers on where to begin. Is it possible now to set tl index via an additionals file, or only when not using NETEDIT, but building the xml data by hand? From the docs, I am assuming the latter. I attached a patch with the code I wrote, that implements setting a single tl phase directly via TraCI. It looks at either the id of the lane, or the id of the edge. The function expects a single string, containing both an id and a state as a single char, seperated by a space, ie. "sg1 G". Nicer might be to have two arguments, but I did not know how to implement that. Attached a network that if run with SUMO-GUI r25299, causes the mentioned failure when ran with the debug version. Also note, that the detectors (actually unused now, cause TraCI is decoupled) are in a somewhat different place when viewed with SUMO-GUI r26299, than when edited with NETEDIT 0.30. That may be related to the fact that in the svn version of NETEDIT, it seems not possible to save detectors? See screenshot of a dialog that appears while trying to save the additionals file that was made with version 0.30. I am not aware of force moving vehicles. The trips have been generated with od2trips, based on an od matrix. Kind regards, Menno ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
