Re: [sumo-user] Edge lenght

2018-07-08 Thread Michael Behrisch
Hi, the way to do it is: net = sumolib.net.readNet('myNet.net.xml') for edge in net.getEdges(): if edge.getID() == myedgeid: length = edge.getLength() You can parse the net directly but then you do not always have a length attribute (only if there is a user defined length for the

Re: [sumo-user] collision and teleporting vehicle

2018-07-08 Thread Jakob Erdmann
There are three "appropriate" ways to model this type of situation and also "inappropriate" ones. Which of the following did you use? 1) one of the lanes does not have a connection to the next edge (vehicles are forced to change lanes to continue) 2) junction type 'zipper'. vehicles perform

Re: [sumo-user] Get the number of emergency stops

2018-07-08 Thread Jakob Erdmann
Hello, this is currently not supported. We'd be happy to accept a patch: https://github.com/eclipse/sumo/issues/4312 As a work-around you could monitor for vehicles that decelerate beyond their specified decel value. regards, Jakob 2018-07-07 7:14 GMT+02:00 胡志强 : > Dear sumo_users: >

Re: [sumo-user] Vehicle Position in a Lane

2018-07-08 Thread Jakob Erdmann
Hello, if you are looking for examples of lateral evasion, you can look at our sublane model tests at https://github.com/eclipse/sumo/tree/master/tests/sumo/sublane_model Regarding the files you sent: - the lateral- resolution parameter was not used in your example - lateral evasion only takes

[sumo-user] Help with Collisions in SUMO

2018-07-08 Thread rohan gugale via sumo-user
Dear Sir / Ma'am,I am Rohan, a student at Technische Universität Kaiserslautern and I am currently working in the field of Traffic Management using SUMO Simulator. I am implementing a own logic of mine to control the junction behavior of the vehicles.   I can see vehicles intersecting at the

[sumo-user] Edge lenght

2018-07-08 Thread Stefano Niero via sumo-user
Dear Sumo Community, I would like to ask how it is possible to retrieve the length of an edge through Python. Based on what I found here: http://sumo.dlr.de/wiki/Tools/Sumolib at the paragraph: "compute the average and median edge length in a plain xml edge file", I wrote the following code: for