Re: [sumo-user] change tls linkIndex

2019-01-10 Thread Jakob Erdmann
Yes. This can be done via Netedit by setting the connection attribute 'linkIndex' http://sumo.dlr.de/wiki/NETEDIT#Inspecting_connections or by building a network with suitable input http://sumo.dlr.de/wiki/Networks/PlainXML#Traffic_Light_Program_Definition Am Do., 10. Jan. 2019 um 21:47 Uhr

[sumo-user] Fwd: change tls linkIndex

2019-01-10 Thread Pratik Dutta
*Regards,* Pratik Dutta Mob: 8017342498 -- Forwarded message - From: Pratik Dutta Date: Thu, Jan 10, 2019 at 8:46 PM Subject: [sumo-user] change tls linkIndex To: can I change the linkIndexof connected link of a TLS? ___ sumo-user

Re: [sumo-user] Calculating shortest driving route between 2 nodes in SUMO/TraCI/SumoLib

2019-01-10 Thread Bijal Varia
Dear sir My case is different. I am not just want to find shortest distance but my aim is to find optimal path using ant colony. This is one of the the milestone of my PhD. So I guess to achieve this i need to follow you first suggestion. Please correct me if I am wrong. On 10-Jan-2019 6:23

[sumo-user] FW: OD2Trips - Vehicle type 'truck' not known

2019-01-10 Thread Ugirumurera, Juliette
Hello, I created some truck trips from an OD matrix file with OD2trips with: od2trips -d od_file --taz-files taz_file -o output_file –vtype truck When I try route the trips with duarouter, I get the error: Error: The vehicle type 'truck' for vehicle 'x' is not known I thought the –vtype option

[sumo-user] OD2Trips - Vehicle type 'truck' not known

2019-01-10 Thread Ugirumurera, Juliette
Hello, I created some truck trips from an OD matrix file with OD2trips with: od2trips -d od_file --taz-files taz_file -o output_file –vtype truck When I try route the trips with duarouter, I get the error: Error: The vehicle type 'truck' for vehicle 'x' is not known I thought the –vtype option

[sumo-user] change tls linkIndex

2019-01-10 Thread Pratik Dutta
can I change the linkIndexof connected link of a TLS? ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Re: [sumo-user] Issues with parking area, vehicle stopped on the road.

2019-01-10 Thread Jakob Erdmann
In version 1.1.0 there is a fix for deadlock caused by long vehicles being unable to re-enter traffic after parking in a short parkingArea. Issue #4832 (basically, vehicles that wish to enter to parkingArea but are unable to do so because it is full

Re: [sumo-user] Issues with parking area, vehicle stopped on the road.

2019-01-10 Thread Lara CODECA
Hello Jakob, Thanks for the suggestions: - The issue seems independent from the random seed (I tried with 15 different seeds and happens all the time) - Changing the startPos from 47.09 to 45.09 the problem disappears. For the moment I’ll fix it by making the areas

Re: [sumo-user] Traci + Sumo : Drive vehicle based on edge weight from Source to Destination

2019-01-10 Thread Jakob Erdmann
your script starts with the lines: while traci.simulation.getMinExpectedNumber() > 0: > traci.simulationStep() > This loop runs the simulation until all vehicles are gone. Your whole code comes afterwards. Instead put your traci code inside the loop. Am Do., 10. Jan. 2019 um 10:29 Uhr

Re: [sumo-user] Calculating shortest driving route between 2 nodes in SUMO/TraCI/SumoLib

2019-01-10 Thread Arslane Hamza Cherif
You have to do it on your own, I managed to achieve it via SumoLib and Networkxs by that time, but now you don't even need this I think since you can use the distance request command (as explained in my previous reply) Le jeu. 10 janv. 2019 à 11:50, Bijal Varia a écrit : > Thanks for detail

Re: [sumo-user] how to get and change tls phase duration?

2019-01-10 Thread iCashWave
I wish the codes below will help you. #-- x is duration array. def set_sig(x): phases = [] phases.append(traci.trafficlights.Phase(x[0], 0, 0, "GGrr")) phases.append(traci.trafficlights.Phase(3, 0, 0, "yyrr")) phases.append(traci.trafficlights.Phase(x[1], 0, 0, "rrGG"))

Re: [sumo-user] how to get and change tls phase duration?

2019-01-10 Thread Jakob Erdmann
see http://sumo.dlr.de/wiki/Simulation/Traffic_Lights#Controlling_traffic_lights_via_TraCI Am Do., 10. Jan. 2019 um 12:45 Uhr schrieb Hajar LAMGHARI < hajarlh.1...@gmail.com>: > Hello, > I am using TraCI and I want to make Traffic light duration Dynamic. I > found that to define new tlLogic with

[sumo-user] how to get and change tls phase duration?

2019-01-10 Thread Hajar LAMGHARI
Hello, I am using TraCI and I want to make Traffic light duration Dynamic. I found that to define new tlLogic with new durations and new states in real time, I have to use : traci.trafficlights.getCompleteRedYellowGreenDefinition(tlsID) and,

Re: [sumo-user] Calculating shortest driving route between 2 nodes in SUMO/TraCI/SumoLib

2019-01-10 Thread Bijal Varia
Thanks for detail reply sir, But for the beginner like me its too difficult to understand your code. so i need to go step by step. 1. What code converts road network into a weighted graph ? Sir please quote Any tutorial to get help on this? On Thu, Jan 10, 2019 at 5:17 PM Arslane Hamza Cherif

Re: [sumo-user] Intersection dynamics - difference between v. 1.0.1 and 1.1.0?

2019-01-10 Thread Jakob Erdmann
There were a number of changes related to intersection behavior [1] so one of them might be responsible for the regression you observe. Please send me your scenario and I will investigate. regards, Jakob [1] https://github.com/eclipse/sumo/issues/4806 https://github.com/eclipse/sumo/issues/4900

[sumo-user] Intersection dynamics - difference between v. 1.0.1 and 1.1.0?

2019-01-10 Thread m.bartha...@t-online.de
Hello all, I have been working with the same SUMO network for months using different versions of SUMO. It consists of a medium-sized signalised intersection with some roads around it. Recently, I switched to v.1.1.0 and rerun my simulation. All my detector evaluation showed very bad results

Re: [sumo-user] Traci + Sumo : Drive vehicle based on edge weight from Source to Destination

2019-01-10 Thread Bijal Varia
Sorry sir i forgot to attache route file and config files: Route File : Sumo Config File : On Thu, Jan 10, 2019 at 5:24 PM Bijal Varia wrote: > Thanks sir for your reply. > > I am attaching

Re: [sumo-user] Traci + Sumo : Drive vehicle based on edge weight from Source to Destination

2019-01-10 Thread Bijal Varia
Thanks sir for your reply. I am attaching my Traci_runner.py file. Sir, I am trying your suggestion. But I am not able to get why *my_vehicle_list* *Prints Blank --> () ??* * my_vehicle_list = traci.vehicle.getIDList()* *print(my_vehicle_list) // Why this Prints Blank --> () ??* *for

Re: [sumo-user] Calculating shortest driving route between 2 nodes in SUMO/TraCI/SumoLib

2019-01-10 Thread Arslane Hamza Cherif
Hello Bijal VARIA, The solution that I had used was somewhat bounded to the considered version of SUMO, this is why my solution involved several tools (I was using at that time SUMO 0.13): - First of all I had to convert the whole road network into a weighted graph, by relying on Networkxs

Re: [sumo-user] Traci + Sumo : Drive vehicle based on edge weight from Source to Destination

2019-01-10 Thread Jakob Erdmann
What part about http://sumo.dlr.de/wiki/Simulation/Routing#TraCI is unclear? Am Mi., 9. Jan. 2019 um 17:08 Uhr schrieb Bijal Varia < bijal.vari...@gmail.com>: > Thanks for reply sir. > > But what about following? > > How to drive vehicle based on Edge weight given Source & destination > Junction

Re: [sumo-user] Calculating shortest driving route between 2 nodes in SUMO/TraCI/SumoLib

2019-01-10 Thread Jakob Erdmann
You will have to do the actual programming yourself but here are some hints: edges = traci.vehicle.getRoute(vehID) remainingEdges = edges[traci.vehicle.getRouteIndex(vehID):] stage = traci.simulation.findRoute(fromEdge, toEdge) travelTime = stage.travelTime Am Mi., 9. Jan. 2019 um 17:07 Uhr

Re: [sumo-user] moveToXY and FatalTraCIError: connection closed by SUMO

2019-01-10 Thread Jakob Erdmann
This looks as if sumo crashed. Please zip up your scenario files and traci script and send them to me so I can reproduce the problem. Please remove all vehicles and all traci code that is not needed to show the problem. regards, Jakob Am Do., 10. Jan. 2019 um 00:04 Uhr schrieb Zheya : > Hi