Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Traci.simulation.getEmergencyStoppingVehiclesNumber() and traci.simulation.getEmergencyStoppingVehiclesIDList() can't work correctly

Please provide a failing example scenario (the smaller the better).

2018-07-26 8:29 GMT+02:00 Zhiqiang Hu <hzq950419@xxxxxxxxx>:
Hi Jakob,

I have cloned the latest version of SUMO from github and build it in Ubuntu 16.04.And I tried to get the emergency stops using traci.simulation.getEmergencyStoppingVehiclesIDList(),but it returned nothing as below.Then I used Traci.simulation.getEmergencyStoppingVehiclesNumber() to do it ,but it also can't return the right value.there may be some bugs,could you please check it ?Thanks in advance!

Best regards,
Zhiqiang

Loading configuration... done.
Loading net-file from 'data/cross.net.xml'... done (3ms).
Loading additional-files from 'data/cross.det.xml'... done (0ms).
Loading done.
Simulation started with time: 0.00
[]
[]
[]
[]
[]
[]
Warning: Vehicle 'right_4' performs emergency stop at the end of lane '1i_0' because of a red traffic light (decel=-16.58, offset=10.94), time=55.00.
[]
Warning: Vehicle 'up_11' performs emergency stop at the end of lane '3i_0' because of a red traffic light (decel=-16.37, offset=4.82), time=64.00.
[]
[]
[]
[]
[]
[]
Warning: Vehicle 'up_35' performs emergency stop at the end of lane '3i_0' because of a red traffic light (decel=-5.68, offset=0.84), time=118.00.
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
Simulation ended at time: 236.00
Reason: TraCI issued load command.
Performance:
Duration: 166ms
Real time factor: 1421.69
UPS: 27445.783133
Vehicles:
Inserted: 43
Running: 0
Waiting: 0
Emergency Stops: 3



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top