Re: [sumo-user] Appropriate values for jmTimegapMinor

2018-07-02 Thread florian preusse
Hi Jakob, thank you for your answer, but Im afraid, that I dont quite understand this attribute still. I might be wrong, but could it be, that the letters you used (A,B,C) are a bit mixed up? Did you mean it this way? "Consider two vehicles A and B in the main flow with time gap T and a vehic

Re: [sumo-user] Appropriate values for jmTimegapMinor

2018-07-02 Thread Jakob Erdmann
Yes and No. - a) and c) are computed from context values. ( Please excuse the typo) - d) does refer to the gap between the merging vehicle C and the second vehicle on the main flow B (Please exuse the typo) - b) really does refer to the minimum time gap between the leading vehicle on the main flow

[sumo-user] Traffic Lights Question

2018-07-02 Thread Jose Monreal Bailey
Dear all, Regarding to traffic lights, I was reading the wiki, and I saw the following example of TLS program, >From each of the phases, how can I read what it means the state and the duration? How can I tell from that example th

Re: [sumo-user] Traffic Lights Question

2018-07-02 Thread Menno van der Woude
Hi José, the string "state" contains the state for all links the are controlled by this traffic light. Each char sets the state for a link (or multiple links with the same index). For the meaning of the chars, see: http://www.sumo.dlr.de/daily/pydoc/traci._trafficlight.html#TrafficLightDomai

[sumo-user] Get the number of vehicles teleported from the simulation

2018-07-02 Thread Sneha Konnur
Dear all, I am running a sumo simulation using traci. Because of some bad values in the parameters the vehicles experience huge delays. These vehicles are teleported by sumo. Is it possible to detect these so that I can stop the simulation if such teleports occur? I do not want to wait till the si

Re: [sumo-user] Traffic Lights Question

2018-07-02 Thread Jose Monreal Bailey
Thank you Menno On Mon, 2 Jul 2018 at 12:05, Menno van der Woude wrote: > Hi José, > > the string "state" contains the state for all links the are controlled > by this traffic light. Each char sets the state for a link (or multiple > links with the same index). > > For the meaning of the chars,

Re: [sumo-user] Get the number of vehicles teleported from the simulation

2018-07-02 Thread Jakob Erdmann
you can use traci.simulation.getStartingTeleportNumber() to detect teleports. Altenatively, traci.simulation.getStartingTeleportIDList() gives you the ids of teleporting vehicles. regards, Jakob 2018-07-02 13:09 GMT+02:00 Sneha Konnur : > Dear all, > > I am running a sumo simulation using traci.

[sumo-user] TraCI creation of new vehicle and route

2018-07-02 Thread Stefano Niero
Dear SUMO Community, I tried generate a new trip and a new vehicle using the example written in the following page: http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python At the beginning, to understand how it works I decided to keep things simple and used a minimal map (attached). The line

Re: [sumo-user] TraCI creation of new vehicle and route

2018-07-02 Thread Jakob Erdmann
Hello, 1) adding a route only succeeds if the name is not already used by another route. Therefore, adding the same route again and again in a loop cannot work. The resulting error is not fatal, however. You can catch the TraCIException and continue with your script. 2) adding a trip (a route with