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

2018-04-17 Thread Jakob Erdmann
Hello, the solution is to generate routes that start from the current vehicle edge. Either: - use findRoute() from the current edge to the intended destination - if you have a route that starts somewhere else, remove all edges before the current vehicle edge regards, Jakob 2018-04-18 2:29 GMT+02:

[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

Re: [sumo-user] Rerouting Question

2018-04-17 Thread Jakob Erdmann
Hello, The function rerouteTravelTime use the time values from edge.getTraveltime() and this is based on the average vehicle speed at that time. (no smoothing of past fluctuations and no extrapolation into the future). Various smoothing options are available when using the rerouting device (but als

[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

Re: [sumo-user] Make vehicles automatically choose sublanes

2018-04-17 Thread Jakob Erdmann
Hello, this feature is not yet supported in the sublane-lanechanging model. Lane-changing within a single lane does not regard strategic considerations (route following). The only thing you could do at the moment is to set the preferred lateral alignment of the vehicles using TraCI depending on the