[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 give

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

2018-03-21 Thread Jonathan Harper
Hello, I’m currently using TraaS to interface with SUMO. I am attempting to reroute a vehicle and hope to make it change path by setting an effort to an edge (I believe this is the equivalent of setting a ‘weight’ to that edge), this effort is calculated from the congestion + other metrics. 1.

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

[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 rou

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 routes.x

[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

[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 adding

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] 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 whic

[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] k-Shortest Paths

2018-04-04 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. Spec

[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 antivir

[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 fe

[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 t

[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 c

[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] Traffic Zone Definitions

2018-07-12 Thread Jonathan Harper
Hello, I’m attempting to define traffic zones such that traffic will flow from left to right (departing from a random location in the left area of the map and arriving in a random location on the right hand side of the map). Could you point me in the right direction to be able to do this? Jonat

[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) - u

[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, o

[sumo-user] Teleporting

2018-08-13 Thread Jonathan Harper
Hello, I’m currently generating a SUMO scenario using a well-known city in the UK. I used OSM to obtain the .osm file and used netconvert to convert it to a .net.xml file. However, I am getting quite a few teleportations and I’m worried this may skew the results. The 2 main warnings I’m getting

[sumo-user] Opening TraaS GUI

2018-03-20 Thread Jonathan Harper via sumo-user
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 give

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

2018-03-20 Thread Jonathan Harper via sumo-user
Hi Jakob, Thanks for the swift response. For this to work must I have set up the trip before runtime, or can I define the trips during runtime and ask the vehicles to reroute during runtime? Kind regards From: Jakob Erdmann Sent: 20 March 2018 11:04 To: Jonathan Harper Cc: sumo-u

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

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

2018-03-22 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 routes.x

[sumo-user] Code Completion with Traci

2018-03-25 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 u