Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Carla from source on a headless linux server #4395

Closed
lalani1996 opened this issue Jul 13, 2021 · 4 comments
Closed

Build Carla from source on a headless linux server #4395

lalani1996 opened this issue Jul 13, 2021 · 4 comments
Assignees
Labels

Comments

@lalani1996
Copy link

Hello all,

I am using a remote headless Linux server and want to implement the RSS sensor on the server. For the implementation of the RSS sensor, I have to build Carla from the source in the server. Has anyone built Carla on a headless server? I tried X11 forwarding to launch Unreal Engine but it didn't work. Any suggestions would be appreciated.

Thanks and Regards

@qhaas
Copy link
Contributor

qhaas commented Jul 13, 2021

Cliff Notes: If you need a GUI rendering on a remote server in GNU/Linux and use of it remotely via X11 forwarding, one way is to use OpenGL and VirtualGL.

Details:
You likely were unable to x-forward the UnrealEditor GUI (i.e. make launch) because it uses vulkan by default now which does not support x-forwarding. Many SSH implementations only support older versions of OpenGL out-of-the-box and those versions have been removed from newer versions of UnrealEngine. The way rendering works with X11 forwarding and GPU acceleration is not intuitive, this write-up by VirtualGL explains it.

We build/run CARLA on headless GNU/Linux systems, including HPCs. You can use make package to build CARLA releases similar to those provided by the vendor on systems without a GUI.

You can save sensor data to files during CARLA simulation runs, so no need for X11 or a GUI. You invoke CARLA server using SDL_VIDEODRIVER=offscreen ./CarlaUE4.sh -opengl to get OpenGL rendering without a GUI (or even X11, so completely headless). Vulkan rendering to flat files can be achieved with an upgrade to UE 4.25+

@lalani1996
Copy link
Author

Thanks a lot for the explanation.

@corkyw10
Copy link
Contributor

There is some draft documentation here explaining the different rendering options. Have a look if you have any input or would like to test it.

@corkyw10 corkyw10 self-assigned this Jul 22, 2021
@corkyw10
Copy link
Contributor

corkyw10 commented Aug 5, 2021

Closing this issue, if you find anything to mention regarding the new documentation, please open a new issue. Thanks!

@corkyw10 corkyw10 closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants