Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Running simulation and getting vehicle information independently

All clients must call simulationStep to allow the simulation to advance. When using libsumo, the libsumo thread itself must also call Simulation::step()

Am Mi., 12. Dez. 2018 um 21:05 Uhr schrieb Muktadir R Chowdhury (mrchwdhr) <mrchwdhr@xxxxxxxxxxx>:

Hi,

I have this Traci Client program.

Here in the while() loop I am advancing the simulation and getting vehicle information.


My question is, if it is possible to advance the simulation in one place (in a separate thread) and get vehicle position in the main thread?


I tried to do it here but the TraciClient is just hanging in there, seems like it is waiting for the simulation to be advanced. Am I doing anything wrong here?


-Muktadir

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

Back to the top