Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Access vehicles that arrive in the next step

Consider adding a final stop (with parking=true) to each vehicle that keeps it in the simulation after reaching the destination.

Am Mi., 22. Juli 2020 um 13:36 Uhr schrieb Laura Bieker <bieker.laura@xxxxxxxxx>:
Hello Marcel,

you could use also use he function getDepartedIDList (https://sumo.dlr.de/pydoc/traci._simulation.html#SimulationDomain-getDepartedIDList) to receive the Vehicle IDs which were inserted into the simulation and change then the parameter for these vehicles and maybe back if you only want this for a specific period of time.

Best regards,
Laura

Am Di., 21. Juli 2020 um 09:58 Uhr schrieb marcelreppi <marcelreppi@xxxxxxxxx>:
Hello,

I wanted to add a parameter to vehicles that have arrived based on a certain
condition using TraCI so that it shows up in the routes-info output.
However, when I iterate through traci.simulation.getArrivedIDList() and try
to add a parameter I get an error because the vehicle was already removed
from the simulation.

Is there a way to access these vehicles one step before they arrive?
Or would it be possible to move the actual removal of the vehicles to the
following simulation step?

Thank you very much!

Best regards
Marcel



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
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