Hello, if you load trips into the simulation, than the route is computed at the insertion time of the vehicle. You can access this route via traci (traci.vehicle.getRoute).
Alternatively, you can compute routes in advance with duarouter and read them from the generated xml file. Or you can run the simulation with the options --vehroute-output routes.xml --vehroute-output.sorted and then restart the simulation using routes.xml ans input. duarouter may have worse results because it computes the routes without reference to traffic conditions. regards, Jakob Am Do., 26. Sept. 2019 um 13:52 Uhr schrieb Radha Reddy < [email protected]>: > Dear Raaj, > > Many thanks for your kind response, but my question is, if we can know the > turn (left, right, or straight) of every single vehicle at the beginning of > the trip. Not at the entrance of the intersection. > > Regards > Radha > > On Thu, Sep 26, 2019, 09:53 Raaj Striker <[email protected]> wrote: > >> I think you can create a routes files with desired vehicle generation of >> turning left or right or straight by defining the the route Id in such a >> way that the vehicle follows that route's direction of turning left or >> right or straight. >> >> On Thu, 26 Sep, 2019, 1:52 PM Radha Reddy, <[email protected]> >> wrote: >> >>> Dear Sumo Community, >>> >>> I observed that the vehicle turns (left, right, straight) at the >>> intersection is assigned when a vehicle reached the intersection. >>> >>> Is there any possibility to assign/knowing the vehicles turns when they >>> are injected to the road network? >>> >>> By depending on the vehicle turn I would like to assign traffic light >>> signal so that the vehicle access the intersection without stopping. >>> >>> Regards >>> Radha >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or unsubscribe >>> from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
