[sumo-user] Extremely High Values Returned by traci.edge.getTraveltime

2018-07-30 Thread Jonathan Harper
Hello, When using the function traci.edge.getTraveltime(), the returned value is sometimes extremely large. Is there anyway around this? Thanks ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password,

[sumo-user] rerouteTraveltime Odd Behaviour

2018-07-27 Thread Jonathan Harper
Hello, I’ve ran into an odd behaviour in regards to traci.vehicle.rerouteTraveltime(). Sometimes, the best time will produce a route with an absurdly long (as in it will be 100x more than expected kind of long) estimated travel time (using the current travel times of the edges in the route) -

[sumo-user] Rerouting Question

2018-04-17 Thread Jonathan Harper
Hi there, More of a generic question – when rerouting a vehicle with vehicle.rerouteTraveltime(), does the vehicle account for traffic as it currently stands or traffic that it estimates will be there once the vehicle reaches the point of congestion? E.g. say a vehicle has 2 possible paths it

[sumo-user] vehicle.setRoute() Changing Initial Edge

2018-04-17 Thread Jonathan Harper
Hello, I’m currently attempting to set the route of a vehicle during runtime, however, currently setRoute() returns the error “raise TraCIException(prefix[1], _RESULTS[prefix[2]], err) // traci.exceptions.TraCIException: Route replacement failed”. After doing some debugging I believe the issue

[sumo-user] Rerouting Multiple Vehicles

2018-04-12 Thread Jonathan Harper
Hello, An observation I’ve had when rerouting many vehicles at once (going through a list of vehicles and rerouting them one after the other) is that the rerouting of the first vehicle seemingly takes by far the longest (sometimes being up to 10 seconds), whereas the other vehicles present in

[sumo-user] Vehicle.rerouteTravelTime() currentTravelTimes

2018-04-08 Thread Jonathan Harper
Hello, I’m using Traci to interface with SUMO. I’m currently trying to reroute vehicles based on travel time, to do this I’ve decided to change the vehicle’s travel time for an edge using setAdaptedTraveltime() and then rerouting using vehicle.rerouteTravelTime(). I’ve noticed there’s been a

[sumo-user] Real-time Simulation

2018-04-08 Thread Jonathan Harper
Hello, Is it possible to run traci.simulationStep() at the same time as running other code, e.g. rerouting code, so that the simulation runs in realtime without stopping (to perform other duties such as rerouting)? Thanks, Jonathan --- This email has been checked for viruses by Avast

[sumo-user] k-Shortest Paths

2018-04-05 Thread Jonathan Harper
Hello, I’m currently trying to generate k-shortest paths for each vehicle (which requires rerouting) at linear intervals (>100 seconds). However, I’m currently wondering if I should implement an algorithm myself or if there are any tools currently available in SUMO which shall automate it.

[sumo-user] RandomTrips.py Number of Vehicles

2018-04-01 Thread Jonathan Harper
Hello, Is there a way to make the number of vehicles much greater? I have tried using the arguments -r and –binomial at both large and tiny values and still receive the same number of vehicles (around about). The number of vehicles do not fill the network whatsoever. Is there a way to randomly

[sumo-user] Combining Edges Using NetConvert

2018-03-30 Thread Jonathan Harper
Hello all, I’m currently building a small network from OSM -> .net.xml through NetConvert. I’m attempting to find the average congestion on a given road segment, however, I have ran into a minor issue. I was wondering if there was a way to combine the edges between junctions, so that edges

Re: [sumo-user] Combining Edges Using NetConvert

2018-03-30 Thread Jonathan Harper
which separate edges. Is there a way to remove these? Attached is an example of this. Jonathan From: Jonathan Harper Sent: 29 March 2018 21:58 To: sumo-user@eclipse.org; sumo-u...@lists.sourceforge.net Subject: Combining Edges Using NetConvert Hello all, I’m currently building a small network

[sumo-user] Code Completion with Traci

2018-03-26 Thread Jonathan Harper via sumo-user
Hello, Currently using Traci to interface with SUMO. One small problem I have ran into is code completion (I’m using Pycharm), for example if I’m inserting ‘traci.’, instances such as ‘edge’ do not appear in the list. Further when typing ‘traci.edge.’, functions associated to that do not show

[sumo-user] Add Trips Dynamically Not Working

2018-03-25 Thread Jonathan Harper
Hello, I’m attempting to add trips and have the vehicle route dynamically at runtime. I am using the tutorial from http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python#Add_trips_.28incomplete_routes.29_dynamically under “Add trips (incomplete routes) dynamically” subheading. When

[sumo-user] Assigning Trips Based on Map

2018-03-24 Thread Jonathan Harper
Hello, I’m making a map and intend for the vehicles to travel from the left of the map to the right. I need the vehicles to randomly be assigned a random origin (on the left hand side) and a random destination (on the right). I’ve read about a tool called trafficmodeler but it’s deprecated and

Re: [sumo-user] Error in randomTrips.py -> Routes with Inclusionof'--trip-attributes'

2018-03-23 Thread Jonathan Harper
"departLane=\”best\”” -r routes.xml’, the same error “Error: attribute value expected” occurs, whereas with multiple parameters for –trip-attributes produces no error (and subsequently no route file). Kind regards, Jonathan From: Jakob Erdmann Sent: 23 March 2018 11:24 To: Jonathan Harper; Sum

[sumo-user] Error in randomTrips.py -> Routes with Inclusion of '--trip-attributes'

2018-03-23 Thread Jonathan Harper
Hello, I’m currently running a command to generated random trips to routes (using DUAROUTER). The command I am using is ‘python randomTrips.py -n input_net.net.xml --trip-attributes="departLane=\"best\" departSpeed=\"max\" departPos=\"random\""’, however, when appending the command ‘-r

[sumo-user] Error in randomTrips.py -> Routes with Inclusion of'--trip-attributes'

2018-03-23 Thread Jonathan Harper via sumo-user
Hello, I’m currently running a command to generated random trips to routes (using DUAROUTER). The command I am using is ‘python randomTrips.py -n input_net.net.xml --trip-attributes="departLane=\"best\" departSpeed=\"max\" departPos=\"random\""’, however, when appending the command ‘-r

[sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes

2018-03-21 Thread Jonathan Harper
Hello, I'm unsure on how to dynamically assign routes to vehicles (with each vehicle having a route which is unique to them) depending on certain conditions (i.e. traffic jams, congestion). I'm using TraaS to interface with SUMO and need to react to certain conditions and dynamically assign

[sumo-user] Opening TraaS GUI

2018-03-21 Thread Jonathan Harper
Hello, I’m a beginner in using SUMO which I am interfacing with TraaS. I can’t seem to find a way to open up the TraaS GUI, I’ve got it working through importing into the intelliJ IDE, however, can’t seem to find the user interface (in /Sumo/bin/ there’s a TraaS Java executable when ran it

Re: [sumo-user] Edge.setEffort() Returning Error

2018-03-21 Thread Jonathan Harper
kTrace();} } The simulation runs fine without ‘conn.do_job_set(Edge.setEffort("edgeToSetEffort", 1));’ Also, ‘conn.do_job_set(Vehicle.setEffort("vehicle", 0, 5000, "edge", 1))’ works fine, however, I’d like to set the effort for the edges globally. Thanks, Jona

Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes

2018-03-20 Thread Jonathan Harper via sumo-user
to do it in TraaS. Any help would be greatly appreciated From: Jakob Erdmann Sent: 20 March 2018 12:12 To: Jonathan Harper Cc: sumo-u...@lists.sourceforge.net Subject: Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes You can define everything at runtime via TraCI. 2018-03-2