Open johnMinelli opened 2 years ago
Can you render CARLA using all of your GPU capabilities? I followed the links and I can get a render of CARLA from wsl, but it doesn't seem to be able to access the GPU in my system and is running very slow. I have the proper Nvidia drivers installed as well.
No, actually the last time I tried I had the same problem and I ended up using the Windows version 😓
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.
For anyone trying to use carla in wsl2, I suggest running the carla server in windows and running client in WSL. This works perfect for me.
For anyone trying to use carla in wsl2, I suggest running the carla server in windows and running client in WSL. This works perfect for me.
Could you please describe the steps how to do it? Even I am trying the same, but not able to make it work yet.
- Download the Carla server of Win version and start the Win server instead of Linux server.
- In your client script, change the "localhost" to the ip of your Win.
- Run your script in wsl and the client will connect to the Win server.
connecting to Carla server... WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API WARNING: Client API version = 0.9.6 WARNING: Simulator API version = baf43b07
I've run into this problem. I was wondering if you have done anything else to fix this? Because Win doesn't have carla 9.6
- Download the Carla server of Win version and start the Win server instead of Linux server.
- In your client script, change the "localhost" to the ip of your Win.
- Run your script in wsl and the client will connect to the Win server.
connecting to Carla server... WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API WARNING: Client API version = 0.9.6 WARNING: Simulator API version = baf43b0
I've run into this problem. I was wondering if you have done anything else to fix this? Because Win doesn't have carla 9.6
Hey last time I had a similar error it was because i needed to use Python 3.8, try running the client in a virtual env with conda
Do we still need a VcXsrv on Windows to use Carla on WSL2 when WSL2 now actually support GUI application?
Hi I'm just filling this for the records if someone want to use Carla on WSL2 with GUI rendering.
This guide was very helpful to me for the audio setting: https://carette.xyz/posts/setup_sound_video_wsl2/ For the video you need a custom
lavapipe
: https://github.com/gnsmrky/wsl-vulkan-mesa The readme guide says to set the DISPLAY setting at 1. That doesn't worked for me. I suggest instead:export DISPLAY=$(ip route | awk '/^default/{print $3}'):0
(as explained here https://github.com/gnsmrky/wsl-vulkan-mesa/issues/3)(The prerequisite is a correct driver setup for your GPU in windows to comunicate with WSL.)
I tested the behaviour just launching
./CarlaUE4.sh
(if you don't want the renderings just add-RenderOffscreen
and you are done)Troubleshooting
check the DISPLAY env variable being setted in accordance with VcXsrv
CARLA version: 0.9.13 Platform/OS: Windows 11, 22H2, Build: 22623.730 WSL2: Debian GNU/Linux 11 (bullseye)
I hope this saves someone else some time.