Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Simulation Step TraCI call at time 0

 

 

> simulationStep(0) is indeed a special case:

> when you first start your simulation, getCurrentTime() returns 0, yet when you call

> simulationStep(0) it advances and thus getCurrentTime() returns 500.

 

 

> When you next call simulationStep(500) the simulation does not advance any further and

> getCurrentTime() remains at 500 (as per the wiki documentation)

 

Well, this is not what is happening at least in my own code!

When I call simulationStep(500) (after simulationStep(0)), getCurrentTime shows me 1000!

Can you please reproduce it yourself ?

 

 

- Mani

 

 


Back to the top