carla-simulator / carla

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

Add weather options #4883

Closed whuxhzhang closed 2 years ago

whuxhzhang commented 2 years ago

How do I add custom weather in Carla, such as snow, fog, etc. And how to react to these different weathers in the control module ?

Thanks.

Madecu commented 2 years ago

Hi @whuxhzhang, currently we don't have snow in CARLA but there are a few weather parameters you can tweak.

You can play with the weather when the simulation is running using environment.py for example. Here is a video showing how to use it at 12:30 https://www.youtube.com/watch?v=ZZaHevsz8W8&t=874s&ab_channel=CARLASimulator

You can also edit the weather default parameters in unreal's project:

1- you need to open CARLA's unreal engine project and find BP_Weather

image

2- then select "Default weathers" and edit Town01_Opt (or the one you are working on) and edit the parameters you want

image

3- once you have your weather configuration, click compile to save your changes image

Also, I want to clarify that all these weather parameters are an aesthetic feature, it only affects the RGB sensor, it doesn't affect vehicle physics yet.

stale[bot] commented 2 years 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.