[sumo-user] Extremely High Values Returned by traci.edge.getTraveltime
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, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] rerouteTraveltime Odd Behaviour
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) - unusually, this is not actually the ‘best’ travel time possible, other routes are actually available which are a far better which aren’t picked up by rerouteTravelTime. Do you know why this may be? Have you come across this before? If so, is there a fix to this issue? Kind regards, Jonathan ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Rerouting Question
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 can lead down, path 1 is congested at the moment but by the time the vehicle reaches it the congestion should have cleared, path 2 is not congested whatsoever, however, by the time the vehicle reaches it the path will be fully congested. In this case the vehicle should take path 1 given these future conditions. Does SUMO do this automatically or only reroute based on the exact current road conditions? If it does, is there any documentation you know of regarding this? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] vehicle.setRoute() Changing Initial Edge
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 is that I am setting a route which does not begin with the edge in which the vehicle is currently occupying. For example, if I have a route which I know would work from the point of the simulation beginning, if I were to set that route after the vehicle had moved off that initial edge, I would receive the error. I’ve tried to do vehicle.changeTarget() with the last edge of the aforementioned route being the target in hopes that the route would be rebuilt with the first element in the route list being the current edge, however, the origin edge is still used. I have also tried to do a rerouting using rerouteTraveltime(), again with the hopes that the routes generated would be from the current position of the vehicle, but with similar results to the changeTarget() method. Is there any methods in order to reroute the vehicle with consideration of it’s current edge (where the route would be from that current edge to the same destination edge as defined in the routes.xml file)? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Rerouting Multiple Vehicles
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 the lift are rerouted instantaneously without noticeable delay. This has been checked with debugging and regardless of any changes made to the code the first rerouting always takes a significant amount of time. Even when not iterating through vehicles and simply rerouting a single vehicle x amount of times (in a while loop), the first rerouting still takes the longest. Have you observed this? And if not, do you think this may be down to some type of hardware limitation? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Vehicle.rerouteTravelTime() currentTravelTimes
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 few questions asked about this method, but I am still unsure what this really means; could you provide an explanation as to what exactly the difference between true and false is? Whenever I run it I find there is no difference whether this is True or False as the same route is always given. Furthermore, is there an easy way to remove all of the adaptedTraveltime’s for each of the edges (in the vehicle’s internal memory) such that all travel times reset to their global settings (edge.getTraveltime())? I’m aware there’s a begin and end to setAdaptedTraveltime(), the issue is that if the beginning is say the current time and the end is current time + 1, and at the same point you reroute based on travel time, you’d think that the vehicle would change route (as it has those settings loaded) when calling rerouteTraveltime(), but I’ve found that the vehicle only really reacts to this if the endTime is after the end of the route journey time. Is there any way to simply set a traveltime for the step you are taking so that you can compute an alternative route and have all of the settings turn back to the global once the next simulationStep takes place? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Real-time Simulation
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 antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] k-Shortest Paths
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. Specifically, I’ve seen that there’s a tool available called the Marouter which produces k paths, but I’m wondering if I could call this during runtime with the current traffic conditions and for each vehicle? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] RandomTrips.py Number of Vehicles
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 place, say up to 10 vehicles per timestep into the simulation to fill the network entirely? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Combining Edges Using NetConvert
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 which are connected from junction A to B are counted as a single edge (rather than being split up which is currently happening). Further to this, is it possible to define a maximum length of an edge? Given that the distance between junction A and B is say 100m, and we define the maximum edge length to be 60m, would it be possible to automatically generate 2 edges between these junctions of lengths 60m and 40m? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Combining Edges Using NetConvert
Hello all, Sorry, I made a mistake in my previous email. I have removed any edges which don’t allow the vType ‘private’, however, there are now a bunch of junctions in the middle of the road segment (on straight road segments). Also, at other turning points there are sometimes many junctions 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 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 which are connected from junction A to B are counted as a single edge (rather than being split up which is currently happening). Further to this, is it possible to define a maximum length of an edge? Given that the distance between junction A and B is say 100m, and we define the maximum edge length to be 60m, would it be possible to automatically generate 2 edges between these junctions of lengths 60m and 40m? Kind regards, Jonathan Virus-free. www.avast.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Code Completion with Traci
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 up, e.g. getIDList(). When I insert ‘traci.’ I get some suggestions, e.g. ‘traci._edge.EdgeDomain’, but from my understanding these aren’t meant to be used in code but you should use the instantiated version – in this case ‘traci.edge’. I’m unsure if this is the correct thinking or not as I am new to Python, having switched from using TraaS due to some limited functionality. Is there something I need to add/settings to change to have some kind of code completion in Pycharm when inserting commands such as ‘traci.edge.’, or is this an issue with the dynamic typing of Python? Any help would be highly appreciated, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Add Trips Dynamically Not Working
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 the information as given by the webpage, I still receive the error “Vehicle 'veh' has no valid route. No connection between edge 'edge1' and edge 'edge3’.” Do you know if there are any further steps to get this to work? Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Assigning Trips Based on Map
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 no longer supported – I can’t find the executable in the SUMO directory either. Is there any tool for doing this? Preferably graphical in nature. Thanks, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Error in randomTrips.py -> Routes with Inclusionof'--trip-attributes'
Hi Jakob, Upon doing ‘sumo –version’ I get back the version “SUMO Version v0_32_0+0567-75b159a203”. I am using 64 bit Windows 10 OS. 1) In my case the trip file is created, however, the route files are not made (calling DUAROUTER by -r routes.xml in the randomTrips command). 2) This is the same in my case. When running the command ‘python randomTrips.py -n map.net.xml --trip-attributes="departLane=\best\ " -r routes.xml’ I have an error returned by DUAROUTER “Error: attribute value expected” & “Quitting (on error)”. The issue is when a correct input is passed, e.g. ‘python randomTrips.py -n map.net.xml --trip-attributes="departLane=\”best\” departPos=\”random\”" -r routes.xml’ no error is returned and no routes.xml file is created. Interestingly, when passing one correct parameter, e.g. ‘python randomTrips.py -n map.net.xml --trip-attributes="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; Sumo project User discussions Cc: sumo-u...@lists.sourceforge.net Subject: Re: [sumo-user] Error in randomTrips.py -> Routes with Inclusionof'--trip-attributes' Hello, I am unable to reproduce both of these problems using the latest version of sumo 1) with the given command a trip file with correct format is created 2) when passing a randomTrips command that creates trips with invalid attributes ( departLane=\best\ ) randomTrips aborts with an error from duarouter what version of sumo and what operating system are you using? regards, Jakob 2018-03-22 23:40 GMT+01:00 Jonathan Harper via sumo-user <sumo-u...@lists.sourceforge.net>: 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.xml’ DUAROUTER does not run (no success or failure, just no notification at all – this is confirmed as the file ‘routes.xml’ has not been created). When running command ‘duarouter -n input_net.net.xml –route-files trips.trips.xml -o routes_new.xml’ I receive the error “Error: attribute value expected”. When I remove any of the ‘—trips-attributes’ from the randomTrips.py command it is successful. An example trip in the trips.trips.xml file is as follow: Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Error in randomTrips.py -> Routes with Inclusion of '--trip-attributes'
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.xml’ DUAROUTER does not run (no success or failure, just no notification at all – this is confirmed as the file ‘routes.xml’ has not been created). When running command ‘duarouter -n input_net.net.xml –route-files trips.trips.xml -o routes_new.xml’ I receive the error “Error: attribute value expected”. When I remove any of the ‘—trips-attributes’ from the randomTrips.py command it is successful. An example trip in the trips.trips.xml file is as follow: Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Error in randomTrips.py -> Routes with Inclusion of'--trip-attributes'
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.xml’ DUAROUTER does not run (no success or failure, just no notification at all – this is confirmed as the file ‘routes.xml’ has not been created). When running command ‘duarouter -n input_net.net.xml –route-files trips.trips.xml -o routes_new.xml’ I receive the error “Error: attribute value expected”. When I remove any of the ‘—trips-attributes’ from the randomTrips.py command it is successful. An example trip in the trips.trips.xml file is as follow: Kind regards, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes
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 routes to particular vehicles depending on their location relative to the road condition. I've read about automatic re-routing here: http://sumo.dlr.de/wiki/Demand/Automatic_Routing, however I'm unsure how to activate this (if it's not done by default), or if this is even the correct solution. So far I've been able to assign a route in TraaS, but I can't seem to use DUAROUTER during runtime to be able to generate the route from point A to C without defining the intermediate edges, C (trip -> route). From my understanding a trip is a start and end destination, whereas a route is this with the addition of all of the intermediate edges passed through. SumoStringList listExample = new SumoStringList(); ArrayList edgeList = new ArrayList<>(); edgeList.add("edge1"); edgeList.add("edge3"); listExample.addAll(edgeList); conn.do_job_set(Route.add("test", listExample)); When ran (without edge2 being included in the edgeList) I get the error Vehicle 'testVehicle' has no valid route. No connection between edge 'edge1' and edge 'edge3'., which is resolved upon including edge2. Is it possible to convert trips -> routes during runtime? Is there a way to call DUAROUTER (or another tool) during runtime in TraaS? Many thanks --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Opening TraaS GUI
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 gives the error “A Java exception has occurred”). Many thanks --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Edge.setEffort() Returning Error
Hello Jakob, Below is a reproducible example using TraaS. public static void main(String[] args) { SumoTraciConnection conn = new SumoTraciConnection(sumo-gui, config_file); conn.addOption("step-length", "0.1"); //timestep 100 ms try{ conn.runServer(); conn.do_timestep(); conn.do_job_set(Vehicle.add("vehicle", "vehicleType", "route", 0, 1, 1, (byte) 0)); conn.do_job_set(Vehicle.changeTarget("vehicle", "edgeToTarget")); //This is where the error occurs conn.do_job_set(Edge.setEffort("edgeToSetEffort", 1)); for(int counter=0; counter<5000; counter++){ conn.do_timestep(); } conn.close(); } catch(Exception exception){ exception.printStackTrace();} } 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, Jonathan From: Jakob Erdmann Sent: 21 March 2018 18:51 To: Jonathan Harper Cc: sumo-u...@lists.sourceforge.net; sumo-user@eclipse.org Subject: Re: [sumo-user] Edge.setEffort() Returning Error Hello 1) this is quite strange. The last time i saw something like this it came from multiple traci threads that were trying to talk to sumo at the same time. Can you reproduce this with a single traci thread? If so, please send me a minimal scenario. 2) yes. regards, Jakob 2018-03-20 22:03 GMT+01:00 Jonathan Harper via sumo-user <sumo-u...@lists.sourceforge.net>: 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. When setting an edge using ‘conn.do_job_set(Edge.setEffort("edge1", 1.5))’ I receive the errors “Unexpected command and status IDs match: expected 202, got 196” given by Traci (TraaS), and “Error: Answered with error to command 0xc4: Setting effort requires a compound object.” given by the SUMO client. Is there anything more to this? Is the syntax wrong? 2. When setting an effort for a vehicle Vehicle.setEffort(), is this simply an effort given to an edge for a period of time exclusive to this vehicle? Many thanks, Jonathan --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes
Hi Jakob, Thanks for all the help so far, I’ve tried changing the target using Vehicle.changeTarget, however, I receive the error “SUMO error for command 196: Route replacement failed for veh”. My thinking is that I need to somehow activate the automatic routing, but I can’t seem to find a way 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-20 12:21 GMT+01:00 Jonathan Harper <jonathan.v.har...@gmail.com>: 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...@lists.sourceforge.net; sumo-user@eclipse.org Subject: Re: [sumo-user] (SUMO) TraaS Dynamic Routing & Incomplete Routes Hello, - automatic routing is suitable if you just want vehicles to react to changing road conditions (congestion). This causes them to periodically check if there is a better route and then change the route but keep the original destination - if you need more influence on the timing or individual routing preferences you can call traci.vehicle.rerouteTravelTime - if you need to change the destination you can call traci.vehicle.changeTarget - for intermediate goals that must be visited you can define 'via' edge using traci.vehicle.setVia - if you want to compute fastest routes without affecting a vehicle you can call simulation.findRoute regards, Jakob 2018-03-20 11:49 GMT+01:00 Jonathan Harper via sumo-user <sumo-u...@lists.sourceforge.net>: 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 routes to particular vehicles depending on their location relative to the road condition. I've read about automatic re-routing here: http://sumo.dlr.de/wiki/Demand/Automatic_Routing, however I'm unsure how to activate this (if it's not done by default), or if this is even the correct solution. So far I've been able to assign a route in TraaS, but I can't seem to use DUAROUTER during runtime to be able to generate the route from point A to C without defining the intermediate edges, C (trip -> route). From my understanding a trip is a start and end destination, whereas a route is this with the addition of all of the intermediate edges passed through. SumoStringList listExample = new SumoStringList(); ArrayList edgeList = new ArrayList<>(); edgeList.add("edge1"); edgeList.add("edge3"); listExample.addAll(edgeList); conn.do_job_set(Route.add("test", listExample)); When ran (without edge2 being included in the edgeList) I get the error Vehicle 'testVehicle' has no valid route. No connection between edge 'edge1' and edge 'edge3'., which is resolved upon including edge2. Is it possible to convert trips -> routes during runtime? Is there a way to call DUAROUTER (or another tool) during runtime in TraaS? Many thanks --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user Virus-free. www.avast.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ sumo-user mailing list sumo-u...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user ___ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user