Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retrieve emergency stopped vehicles #4312

Closed
namdre opened this issue Jul 8, 2018 · 8 comments
Closed

retrieve emergency stopped vehicles #4312

namdre opened this issue Jul 8, 2018 · 8 comments

Comments

@namdre
Copy link
Contributor

namdre commented Jul 8, 2018

traci.simulation.getEmergencyStoppingVehicleNumber
traci.simulation.getEmergencyStoppingVehicleIDList

@namdre
Copy link
Contributor Author

namdre commented Jul 8, 2018

structurally similar to the implementation of getCollidingVehiclesNumber() and getCollidingVehiclesIDList()

@HZQ950419
Copy link

Hi Jakob,
I use emergency_stops = traci.simulation.getCollidingVehiclesNumber() to get the emergency stops,but it returns 0 as below.I would like to know why the simulation outputs can count the emergency stops but the python interface can't.I suggest to add it to the latest development version of SUMO.

Loading configuration... done.
Loading net-file from 'data/cross.net.xml'... done (3ms).
Loading additional-files from 'data/cross.det.xml'... done (1ms).
Loading done.
Simulation started with time: 0.00
0
0
0
0
0
0
Warning: Vehicle 'down_left_3' performs emergency stop at the end of lane '4i_1' because of a red traffic light (decel=-7.65, offset=2.98), time=57.00.
0
0
0
0
0
0
Warning: Vehicle 'right_30' performs emergency stop at the end of lane '1i_0' because of a red traffic light (decel=-12.06, offset=5.51), time=110.00.
0
0
0
0
0
0
0
0
0
0
0
0
Simulation ended at time: 218.00
Reason: TraCI issued load command.
Performance:
Duration: 157ms
Real time factor: 1388.54
UPS: 28598.726115
Vehicles:
Inserted: 43
Running: 0
Waiting: 0
Emergency Stops: 2

@namdre
Copy link
Contributor Author

namdre commented Jul 23, 2018

The command wasn't yet implement in the TraCI protocoll (server side), That is why none of the clients can provide the function yet.

@namdre namdre self-assigned this Jul 23, 2018
@HZQ950419
Copy link

So,how can I get the number of emergency stops?

@namdre namdre closed this as completed in d0037b0 Jul 23, 2018
@namdre
Copy link
Contributor Author

namdre commented Jul 23, 2018

@HZQ950419 You have to download the latest development version. (traci.simulation.getEmergencyStoppingVehiclesIDList()) It appears that our nightly build process is currently out of order. You can try to download http://sumo.dlr.de/daily/sumo-msvc12x64-git.zip tomorrow or build sumo yourself on the operating system of your choice: http://sumo.dlr.de/wiki/Developer/Main#Build_instructions

@HZQ950419
Copy link

Hi Jakob,
I have used traci.simulation.getEmergencyStoppingVehiclesIDList() to get the emergency stops,but I got this below,it returned nothing,I think there may be some bugs,could you please check it ?

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

@namdre
Copy link
Contributor Author

namdre commented Jul 26, 2018

Please attach a failing example scenario.

@namdre
Copy link
Contributor Author

namdre commented Jul 26, 2018

user reported as "invalid" via mailign list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants