Hi,

I'm trying to write a TraCI C++ client to create a vehicle and control it via 
the client in SUMO.

I went through the example http://sumo.dlr.de/wiki/TraCI/C%2B%2BTraCIAPI and it 
works fine. 

I don't know how to replace the below line.
client.simulationStep(5 * 1000); 

I want to do some think like

while(run simulation is stopped)
{
getvehicle id
set speed 
set direction
}

The problem is the 'client.simulationStep(5 * 1000);' runs till 5s and then the 
next line is executed.

Can you please suggest which function i should be using?

Thanks & regards
Sriram
                                          
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to