Yes, truly that's easy in python-Traci. eg: if you want your vehicle to stop at the end of the last edge of its route for 50sec you may use the following snippet:
traci.vehicle.setStop( vehID=veh_id, edgeID=last_edge_of_route_id, pos=-0.1, duration =50000, flags=0) If you use negative pos-values, then they will be counted from the end of the lane, which is useful to avoid getting the length first. If you skip duration the vehicle will be stopped for around 49 days. by setting the flags you can decide, what kind of stop this is. you can find more documentation about the flags in the wiki http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#stop_.280x12.29 Best Marek Heinrich simoserv GmbH Am 21.11.2016 um 12:22 schrieb Michael Behrisch: > Hi, > if you are using TraCI anyway, you can simply add the stop using > traci.vehicle.setStop (at least for the python client). > > Best regards, > Michael > > > Am 21.11.2016 um 10:24 schrieb sumo.mahei: >> Hi, >> >> you may set the stop already in the route file: >> http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Stops >> >> With TraCI you can prolong the stop. >> >> With best Regards >> Marek Heinrich >> >> Am 21.11.2016 um 10:10 schrieb milena anghelone: >>> I have the same problem. How to put a stop? >>> Thanks >>> BR >>> Milena >>> >>> 2016-11-21 9:49 GMT+01:00 sumo.mahei <[email protected] >>> <mailto:[email protected]>>: >>> >>> Hi, >>> >>> You may put a stop at the end of the route which holds the vehicles in >>> place. >>> Be aware that the vehicles disappear, once the stopping time >>> is over, so you need set the stop time again. >>> >>> Best Marek Heinrich >>> simoserv GmbH >>> >>> Am 21.11.2016 um 05:52 schrieb Tanuja S: >>> > Hi >>> > >>> > Is there a way to keep back the vehicle in the specified route >>> without >>> > allowing it to exit when it reaches the destination/final edge? >>> This is for >>> > the routes having loops i.e. the source and destination edges >>> are the same. >>> > >>> > Scenario: In the simulation, source bus-stop is same as >>> > destination bus-stop. when the bus completes its route, it >>> should go for >>> > the next trip instead of exiting from the simulation. >>> > >>> > Thank You >>> > >>> > Regards, >>> > Tanuja S >>> > >>> >>> ------------------------------------------------------------------------------ >>> > _______________________________________________ >>> > sumo-user mailing list >>> > [email protected] >>> <mailto:[email protected]> >>> > https://lists.sourceforge.net/lists/listinfo/sumo-user >>> <https://lists.sourceforge.net/lists/listinfo/sumo-user> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>> <https://lists.sourceforge.net/lists/listinfo/sumo-user> >>> >>> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/sumo-user >> > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
