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

> I don’t understand what does the next stop Index mean.
'index' refers to the current list of stops of that vehicle

> How do I add a stop having a specific Id that I Know.
stops = vehicle.getStops(vehID)
vehicle.insertStop(vehID, len(stops), busStopID, duration=x)

note, that insertStop requires version 1.13.0

Regarding your scenario:
- route_0 (which is used in your input) has no stops at all
- route2 is also lacking stops
- route3 is missing the "repeat" attribute
- route4 doesn't stop at all stops

If you use route3 with 'repeat' it should work fine.

Am Fr., 20. Mai 2022 um 10:39 Uhr schrieb Pearla Hajjar <pearlahajjar@xxxxxxxxxxx>:

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
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top