Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Vehicle departure

Ok already resolved, I was checking the departedList the wrong way


El jue., 13 feb. 2020 a las 19:07, Alberto Coello (<coloalcoloal@xxxxxxxxx>) escribió:
Hello all,
I am working with sumo 1.3.1 and MoSTScenario, in python, interacting with the simulation via Traci. I want to add a vehicle to this simulation that departs as early as possible in the simulation in order to first analyse it behaviour and later controll it with an AI. What I have already done is to add the desired vehicle to the simulation via:
traci.vehicle.add(myBusId, myBusRouteId, typeID="bus", depart=0)
The route is one of the already defined in MoSTScenario. The thing is that I run the simulation checking the tuple(list of id departed in this step) returned by:
traci.simulation.getDepartedIDList()
But the vehicle seems to be never inserted in the simulation, it never departs. Is there any way to make it depart in a desired moment, so I can just analyse the time of the simulation the vehicle is in it? So I would not have to wait for the simulation to depart the vehicle in an unknown moment. I have some references to this problem but nothing concrete yet.
Thanks a lot,
Alberto

Back to the top