carla-simulator / carla

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

Make launch needed or not? #6258

Open arjunsk07 opened 1 year ago

arjunsk07 commented 1 year ago

CARLA version: 0.9.13 Platform/OS: windows 10

I have build the carla simulator on windows from source, I need to know whether I have to give make launch eveytime to open the simulator?

myleskeller commented 1 year ago

I've found 3 ways to launch the simulator once I've successfully built carla (I'm running 0.9.14 on Win10):

  1. make launch This basically rebuilds LibCarla before opening the UE4 editor.
  2. make launch-only Launches the UE4 editor immediately without rebuilding LibCarla.
  3. running CarlaUE4.exe found in <pathToCarla>\Unreal\CarlaUE4\Saved\StagedBuilds\WindowsNoEditor\CarlaUE4\Binaries\Win64\ Launches standalone mode and immediately starts the simulation (no UE4 editor window). Note: this method may only work once you've clicked "Launch" from the UE4 editor at least once.

If you're just trying to immediately start a standalone simulation, 3 is the fastest. If you need the UE4 editor, 2 is the second fastest. if you have modified anything other than the client-side python files, you should probably use 1.

Rumzie01 commented 1 year ago

Adding to this with some general information that I can confirm after my 4 hours compilation decides to stop.

Unless you are making changes to the carla source code there should be no reason to rebuild using make launch. Once carla is built you should just be able to compile unreal engine itself in Visual Studio for Development Editor x64. And at that you only need to do it if you are modifying your own C++ source code. If you are doing blueprint development there should be no reason to recompile the editor from source again to generate a new binary. You should simply need to start the editor unless you want to start up the client/server in a single command, then make launch-only is the way to go I think.

It's unclear to me yet if the client/server have to be started with 'make' or if the play in editor trigger this on it's own. If it's the latter then you should only need to ever start the editor without having to run make unless you need new binaries.

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.