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) < mrchw...@memphis.edu>: > Hi, > > I have this > <https://gist.github.com/alvyC/fa6093b702f8b40b9e049e086e9ed2b8>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 > <https://gist.github.com/alvyC/27600438a8f77d32353dcc8c0a7bc11d> 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@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user