- Routing is enabled explictly in the scenario with the "probability 
- The traci-added vehicles do change their route.
- I don't want to mess with the scenario.

Is there a way (simple or otherwise) to suppress rerouting for 
traci-added vehicles?

Another problem I am facing is with insertion failures: when traci fails 
to add a vehicle to the network it doesn't seem to report it in any way. 
My workaround is to test whether the vehicle is in the simulation on the 
next time step. If not, I add it. Curiously, I get vehicles that are 
reportedly not added to the simulation (not in the ID list), yet when I 
try to add it again the simulation crashes on exception "vehicle ID 
already in network".


On 19.9.2016 08:32, Jakob Erdmann wrote:
> Hello,
> generally, vehicles do not change their route after being added to the 
> simulation (via TraCI or otherwise).
> They retain the route that you assigned in the vehicle.add() method.
> Routing must be enabled explicitly via vehicle devices (this would 
> apply to traci-added vehicles if the device probability option is 
> used) or Rerouter elements (http://sumo.dlr.de/wiki/Simulation/Routing).
> regards,
> Jakob
> 2016-09-18 11:48 GMT+02:00 Matěj Kubička 
> <matej.kubi...@l2s.centralesupelec.fr 
> <mailto:matej.kubi...@l2s.centralesupelec.fr>>:
>     Hello,
>     is it possible to disable rerouting for vehicles added to
>     simulation via
>     TraCI? -- I need them to follow exactly the path I've set for them. My
>     current solution is to call traci.vehicle.SetRouteID at each step.
>     This
>     sometimes ends in "route replacement failed" exception (presumably
>     because the vehicle is already on another route).
>     I want to avoid global rerouting disable.
>     Thanks,
>     Matej.
> ------------------------------------------------------------------------------
>     _______________________________________________
>     sumo-user mailing list
>     sumo-user@lists.sourceforge.net
>     <mailto:sumo-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/sumo-user
>     <https://lists.sourceforge.net/lists/listinfo/sumo-user>

sumo-user mailing list

Reply via email to