flatland icon indicating copy to clipboard operation
flatland copied to clipboard

added the capability to work with non sim time in timekeeper

Open sees1 opened this issue 1 year ago • 3 comments

sees1 avatar Mar 14 '24 14:03 sees1

Two concerns:

  • Turning off sim time might muck up the simulation loop due to the real clock running faster than the simulation can keep up. That might be ok, but maybe we should have a GetTimeDelta() method in TimeKeeper to get the duration between the last simulation loop and the current one, so that physics updates at a somewhat steady rate, even if some simulation loops take too long. As an example, I typically run the simulation loop at 200Hz, but the lidar plugin takes more than 1/200th of a second to execute on some PCs, resulting in a somewhat bumpy time progression. With sim time controlled by flatland this will result in Flatland progressing sim time unevenly, but within that sim time things will be normal. I believe all the plugins and update methods take a time delta float for their updates, but Flatland Server should populate this with the real time delta. This would also result in plugins not updating at their full data rate if the CPU was too busy.
  • Should flatland stop publishing /clock when sim time is disabled? I'm not sure, but I suspect so.

josephduchesne avatar Mar 15 '24 14:03 josephduchesne

Sorry for late. I'm little busy now, but i wan't to fix this problem, if it relevant, maybe in June?

sees1 avatar May 17 '24 13:05 sees1

Make some notes about topic, can you check? @josephduchesne

sees1 avatar Jun 24 '24 19:06 sees1