Thanks for the response Harald. The
arguments I used for the Python script look something like
this:
python
compute-pass-per-vehicle-with-sumo_3b.py -f 3600 -l 60000 -v
0 1 2 3 4 5 6 7 -g True -- -c test.sumocfg
-f 3600
-l 60000
-v 0 1 2 3 4 5 6 7
-g True
--
-c test.sumocfg
I ran the scenario in the sumo gui rather
than in sumo to see how some of the vehicles in the simulation
were behaving based on the commands in the Python script. That
may be why the vehicles are teleporting when you run it in
plain sumo as opposed to giving you a fatal error (as seen
when you run in sumo gui).
Sent from Mail for Windows
Hi Ifezue,
please provide also the arguments for the python script or
add a simple run.bat file, which just calls compute-pass-per-vehicle-with-sumo_3b.py
with the correct parameters
Running a program
with traci is always slower than without.
If I run your
scenario with plain sumo, I see that buses 3 and 4 are
teleported:
Warning: Teleporting
vehicle '3'; waited too long
(wrong lane), lane='374986789.109.16_1', time=5435.00.
Warning: Vehicle '3' ends teleporting on
edge '374986789.138', time 5435.00.
Warning: Teleporting vehicle '4'; waited too long
(wrong lane), lane='374986789.109.16_1', time=34896.00.
Warning: Vehicle '4' ends teleporting on
edge '374986789.138', time 34896.00.
Warning: Teleporting vehicle '4'; waited too long
(wrong lane), lane='374986789.109.16_1', time=53365.00.
Warning: Vehicle '4' ends teleporting on
edge '374986789.138', time 53365.00.
If you have
still trouble or fatal errors, please provide the scenario
with the calling parameters, so I can reproduce your error.
Harald
Am 23.10.21 um 00:57 schrieb
vincentobiako:
Hello Everyone
I have a simulation with buses that are
running on multiple routes and when each bus reaches a
certain fuel capacity and a bus capacity equal to 0, they
are required to begin the process of refueling by going to a
charging station. I have been able to get the vehicles to
move to their recharging station when two conditions are met
but once they get to the station and begin recharging they
all seem to get stuck on the same lane or charging location
and the SUMO gui crashes and I get a Fatal Error message in
my command prompt.
I have tried shortening the charging
delay and actual charging duration that each bus spends in
the process of refueling or recharging to see if that will
prevent the Fatal Error from occurring and allow the buses
to move on to their next bus stop, but I keep getting a
Fatal Error message. Another thing I noticed when I was
doing this is that the simulation in the GUI seemed to run
significantly slower than normal for some reason and I am
not sure why.
Does anyone know why I am getting a Fatal
Error message and how I can get the buses to refuel and then
move on with rest of their bus routes after they are done
refueling/recharging? Also, why is my simulation running
slow when I execute my code in TraCI?
I have attached my testing files for
reference.
Thank you
Ifezue
Sent from Mail for Windows
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user