scenario_runner icon indicating copy to clipboard operation
scenario_runner copied to clipboard

About CarlaDataProvider .

Open afterimagex opened this issue 3 years ago • 1 comments

Describe our question or idea A clear and concise description.

I want to know, why not replace the function of CarlaDataProvider with carla.WorldSnapshot, I think this is a more appropriate approach

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntu 20.04]
  • CARLA Version [e.g. CARLA 0.9.13]
  • Python version [e.g. 3.9]
  • Version [e.g. 0.9.13]

afterimagex avatar Nov 25 '21 15:11 afterimagex

Well yes, you could use the WorldSnapshot for many things. The story is as always: When we started with SR, there was no WorldSnapshot, and then SR grew, CARLA added the WorldSnapshot calls, but SR meanwhile had a working solution.

If you would like to introduce the Snapshot to replace for example the actor handling (dicts) in the CarlaDataProvide we may support you in this process and of course would be very happy to bring this into this repo.

fabianoboril avatar Nov 29 '21 07:11 fabianoboril