Thank you for your reply. I am not knowing how to use the traci.vehicle.insertStop. In this link, https://sumo.dlr.de/pydoc/traci._vehicle.html#VehicleDomain-insertStop, I don’t understand what does the next stop Index mean. How do I add a stop having a specific Id that I Know.
For the attached file, Here is a working example of what my system aims to do. I assign stops dynamically using traci.vehicle.setBusStop for buses in the while loop. My problems are: 1. For the first turn in the cycle, the buses stop at the stops and board passengers but not until maximum capacity, only 6 passengers. I want the bus to board passengers to its full capacity and when it is finished to move forward. 2. in the second turn, the bus stops as I want at the stop but do not board any passengers even though it will stop at their destination stop after. Do you have any idea why is this problem. Thank you in advance Perla HAJJAR ________________________________ From: sumo-user <[email protected]> on behalf of Jakob Erdmann <[email protected]> Sent: Wednesday, May 18, 2022 10:50:24 AM To: Sumo project User discussions <[email protected]> Subject: Re: [sumo-user] Assign stops to buses and automatic simulation launching > if i increase it, the bus will be stuck on the stop. The stopping duration may increase beyond the configured stop 'duration' according to the number of persons entering the bus and the 'boardingDuration' value of the bus. However, unless you've increased the bording duration or the personCapacity of the bus, this should not take too long. You can observed the expected remaining stop duration as explained here: https://sumo.dlr.de/docs/sumo-gui.html#showing_routes_and_route-related_information Am Mi., 18. Mai 2022 um 10:11 Uhr schrieb Pearla Hajjar <[email protected]<mailto:[email protected]>>: Thabk you for your answer. I haven't tried the traci.load yet because I am trying to solve the problem of stopping. For this, when adding a stop, I am assigning the duration. If I put it 1, the bus will only pick one passenger, if ai increase it, the bus will be stuck on the stop. Perla HAJJAR Ph.D Student- Universite de Versailles SQ and Communauté d’Agglomération de Saint Quentin en Yvelines Direction des Mobilités- Navettes autonomes ________________________________ From: sumo-user <[email protected]<mailto:[email protected]>> on behalf of Jakob Erdmann <[email protected]<mailto:[email protected]>> Sent: Friday, 13 May 2022, 10:35 To: Sumo project User discussions <[email protected]<mailto:[email protected]>> Subject: Re: [sumo-user] Assign stops to buses and automatic simulation launching 1. You will have to add each stop of your repeating route individually. You can use function vehicle.insertStop to add stops anywhere within the list of existing stops. 2. you can use traci.load to relaunch the simulation. (make sure to use options -S -Q if you're starting sumo-gui). Am Fr., 13. Mai 2022 um 10:28 Uhr schrieb Pearla Hajjar <[email protected]<mailto:[email protected]>>: Bonjour, Hope you qre doing good. I have a question in my project. I am working on assigning different stops for buses in each simulation. In the main function I calculate the combination of stops the buses should stop at and I want to set then in the run funtion where the simulation happens. My questions are: 1. When i do traci.vehicle.setBusStop it only assigns this stop for the bus once in the simulation and I am using a circular root with repeat. How can I make the bus stop at these stops at every turn until my stopping condition is satisfied? 2. When generating the stopping paattern, I am have different combinations. I want to go through each combination and launch the simulation automatically after the previous one finishes with the new stop pattern. Any idea how to do so? Thank you in advance. Perla HAJJAR PhD at UVSQ _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
<<attachment: Stop_Problem.zip>>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
