carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.33k stars 3.67k forks source link

Unclear interaction between carla executable -fps, -benchmark arguments and fixed-timestep synchronous mode #5498

Open Pyrestone opened 2 years ago

Pyrestone commented 2 years ago

Hi CARLA-Team,

I have a question regarding the interactions between a synchronous mode fixed-timestep simulation and the arguments provided to the carla executable.

My goal is to run a completely repeatable (deterministic) simulation, therefore I'm trying to figure out which arguments and options affect this determinism.

As you probably know, the ./CarlaUE4.sh script takes various arguments. Intuitively, I would expect the -fps and -benchmarkto no longer have an effect on determinism if i set synchronous mode to true. However, at least with my (deterministic, synchronous) traffic manager instance, I can only get the same traffic when I set these args the same.

Could you explain how the different args (-benchmark, -fps) interact with a fixed-delta synchronous simulation? Does -benchmark override -fps? does the fixed_delta_seconds override fps? The documentation does not explain these args well enough.

Also, (unrelated but important for determinism) does resetting traffic lights achieve the same as reloading the world after setting synchronous mode? I found this to (mostly) be the case, but couldn't find anything in the docs.

tk166 commented 2 years ago

Same concern. I personally don't use -fps and -benchmark arguments any more.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Pyrestone commented 9 months ago

still no response. Don't close this just because you take more than a year to respond.