Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Assign stops to buses and automatic simulation launching
  • From: Pearla Hajjar <pearlahajjar@xxxxxxxxxxx>
  • Date: Fri, 20 May 2022 08:39:41 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RP56IDTjHnyhnr10jmHId9JZmMGVM/zl2HBT5GqHMT0=; b=fgbSIrFRwr5470zMzwKtTSGy6yYAX+z7rk8JuqHpS/bEaYr/gKMz3IbLl5p5VAnkaZ7xb8xY/E4BP9s90k4pOKqxCYOdXXwmdbvDRWNgd5CO8iN4/19V3Bikc/f/1sPMEUE4zm2bI7bUKs6mSXU6zeogkrjQxhom1+RCSHrpNTqY4UXC0nLo+tPVZ2Gk70mfyiCDxrLu07VuXH9sM5QXqGxh5AwOgFEbiW7ZXCjyJsrV84zKK2L7sezPkVPArqbVxFSKJGntCJ9nprhKd+OmoE5GthXClOemc0RLreGLZlEv9DJV73CdqxGTRnXJvIWwkPg2WQqoHnsM2aSE91L4OQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YRZ+QFPAGpnnefdnk2sKFtNQzqx7XX320eWNtUiiHUec8Zzic/3rvr45awHTUsPPbYOsiy3naPguaIZkrRaSsl9LTHLtN2ljdvSFljpCaah5WKg2KSQV9RpEVPo3JeOKHWi1HKLYYmUIGFja44QKdZjLOl/nC/X7rztgKMp/yBnLAtE2+/a5H8QgE2qct+39vABoDTBqUmvw0BIwZcqQMs0bq6/oOWmMdXfG2jx1K7PW2yoVTSd7qujwVbUVP8V/owy/kSbAriZVsQN2inoiQ/5Rl0UKqT1cIF6kcajQB3AqlM25h+gcJm5lzNt0l8UIuvubXZDWCN8123HJZuZtDw==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHYZqJJVs/Qc1hdpUqsirJugzA0X60ce2yAgAfUUQuAAAueAIADIXHj
  • Thread-topic: [sumo-user] Assign stops to buses and automatic simulation launching

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 <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Wednesday, May 18, 2022 10:50:24 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
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 <pearlahajjar@xxxxxxxxxxx>:
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 <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Friday, 13 May 2022, 10:35
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
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 <pearlahajjar@xxxxxxxxxxx>:
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Attachment: Stop Problem.zip
Description: Stop Problem.zip


Back to the top