Re: [sumo-user] Computing distance and travel time from a bus stop to another bus stop

2020-06-02 Thread Jakob Erdmann
If you know the lane and position of the busStops, you can use function traci.simulation.findRoute to get the distance and traveltime between them. You can either parse lane and position from the input xml (i.e. with sumolib.xml.parse) or you can use traci.busstop.getLaneID and

[sumo-user] Trouble in setting the opposite direction driving

2020-06-02 Thread Zhang Jackie
Hi All, I'd like to set the opposite direction driving available in a simple road network like the image below: 100m x 100m, 2 opposite edges and 2 lanes for each edge. (file name: net.net.xml) I use the NETCOVERT tool to generate the net.xml which allows the opposite driving, the command is like

Re: [sumo-user] Novel one-lane road for both directions, and any workarounds

2020-06-02 Thread K M
Hello Jacob, I've been working for while based on your last suggestion, placing cars as obstacles on one lane and using TraCI to detect when two opposing vehicles are within a range of each other. 1) My current approach is to make a distance matrix between vehicles to know whether car A is

[sumo-user] Osm to SUMO

2020-06-02 Thread Raheleh Zarei
Hello, I exported an OSM file of my city, using osmWebWizard.py. I used netconvert to convert this OSM file to SUMO network. I would like to know if there is any option that makes connections between all the streets meeting at an intersection? In the network example in

Re: [sumo-user] weight update inteval

2020-06-02 Thread Raheleh Zarei
Thanks. So, Could we say that "myValidUntil" parameter in CHRouter.h file, is set based on the value given to the option --device.rerouting.adaptation- interval? How this is used in Astar and Dijkstra? On Sat, May 16, 2020 at 2:46 PM Jakob Erdmann wrote: > This is all documented at >

[sumo-user] Building a Zipper Merge

2020-06-02 Thread Bae, Jong In
Hello, I have two straight edges with 2 lanes. I'm trying to build a zipper merge at the node between the two edges. I've set the node as zipper but it seems like NetEdit is not letting me set up the connections as zipper merge. Is there any way I can set up the connections as shown in the

[sumo-user] Changing lateral alignment

2020-06-02 Thread Reza
Hi, I am writing a code to change the lateral alignment of vehicles. There is nested if conditions in this code. In the second level, the "if 20 < sim_time < 60" is performed, and the results of it is observed in the simulation. However, it does not perform the statement after "elif sim_time >

Re: [sumo-user] Validation for Traffic Phase

2020-06-02 Thread Jakob Erdmann
Hello, there is a simple case and a complex case. In the simple case: - each traffic light controls a singe network junction - the traffic light has the same id as the junction - each index of the traffic light state corresponds to a single lane-to-lane connection and those indices have not