carla/Docs/faq.md

102 lines
3.8 KiB
Markdown
Raw Normal View History

2018-03-22 01:16:56 +08:00
<h1>CARLA F.A.Q.</h1>
2019-07-03 21:31:47 +08:00
For more issues related to F.A.Q. see [question list](https://github.com/carla-simulator/carla/issues?utf8=%E2%9C%93&q=label%3Aquestion+).
2018-01-18 00:20:13 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
What is the recommended hardware to run CARLA?
2019-06-25 18:53:46 +08:00
</h5></summary>
2018-01-18 00:20:13 +08:00
2019-06-25 18:52:14 +08:00
CARLA is a very performance demanding software, at the very minimum you would
need a computer with a dedicated GPU capable of running Unreal Engine. See
[Unreal Engine's recommended hardware](https://wiki.unrealengine.com/Recommended_Hardware).
2018-01-18 00:20:13 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-18 00:20:13 +08:00
2018-01-17 23:16:44 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
What is the expected disk space needed for building CARLA?
2019-06-25 18:53:46 +08:00
</h5></summary>
2018-01-17 22:42:25 +08:00
2019-06-25 18:52:14 +08:00
Building CARLA from source requires about 15GB of disk space, not counting
Unreal Engine installation.
2018-01-17 22:42:25 +08:00
2019-06-25 18:52:14 +08:00
However, you will also need to build and install Unreal Engine, which on Linux
requires much more disk space as it keeps all the intermediate files,
[see this thread](https://answers.unrealengine.com/questions/430541/linux-engine-size.html).
2018-01-17 22:42:25 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-17 22:39:45 +08:00
2018-01-17 23:16:44 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
I downloaded CARLA source from GitHub, where is the "CarlaUE4.sh" script?
2019-06-25 18:53:46 +08:00
</h5></summary>
2017-11-25 01:29:37 +08:00
2019-06-25 18:52:14 +08:00
There is no "CarlaUE4.sh" script in the source version of CARLA, you need to
follow the instructions in the [documentation](http://carla.readthedocs.io) for
building CARLA from source.
2017-11-25 01:29:37 +08:00
2019-06-25 18:52:14 +08:00
Once you open the project in the Unreal Editor, you can hit Play to test CARLA.
2017-11-29 18:35:33 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-17 22:56:12 +08:00
2018-01-19 00:44:15 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
Can I connect to the simulator while running within Unreal Editor?
2019-06-25 18:53:46 +08:00
</h5></summary>
2019-06-25 18:52:14 +08:00
Yes, you can connect a Python client to a simulator running within Unreal
Editor. Press the "Play" button and wait until the scene is loaded, at that
point you can connect as you would with the standalone simulator.
2017-11-29 18:35:33 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-17 22:58:29 +08:00
2018-01-17 23:16:44 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
How can I create a binary version of CARLA?
2019-06-25 18:53:46 +08:00
</h5></summary>
2017-11-29 18:35:33 +08:00
2019-06-25 18:52:14 +08:00
In Linux, the recommended way is to run `make package` in the project folder.
This method makes a packaged version of the project, including the Python API
modules. This is the method we use to make a release of CARLA for Linux.
2018-05-24 18:47:31 +08:00
2019-06-25 18:52:14 +08:00
Alternatively, it is possible to compile a binary version of CARLA within Unreal
Editor, open the CarlaUE4 project, go to the menu "File -> Package Project", and
select your platform. This takes a while, but in the end it should generate a
packaged version of CARLA to execute without Unreal Editor.
2018-01-17 22:58:29 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-17 23:16:44 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
Why do I have very low FPS when running the server in Unreal Editor?
2019-06-25 18:53:46 +08:00
</h5></summary>
2018-01-17 23:16:44 +08:00
2019-06-25 18:52:14 +08:00
UE4 Editor goes to a low performance mode when out of focus. It can be disabled
in the editor preferences. Go to "Edit->Editor Preferences->Performance" and
disable the "Use Less CPU When in Background" option.
2018-01-17 23:16:44 +08:00
2019-06-25 18:52:14 +08:00
</details>
2018-01-17 23:16:44 +08:00
<!-- ======================================================================= -->
2019-06-25 18:52:14 +08:00
<details>
<summary><h5 style="display:inline">
Fatal error: 'version.h' has been modified since the precompiled header.
2019-06-25 18:53:46 +08:00
</h5></summary>
2018-01-17 23:16:44 +08:00
2019-06-25 18:52:14 +08:00
This happens from time to time due to Linux updates, and for that we have a
special target in our Makefile
2018-01-17 23:16:44 +08:00
2019-06-25 18:52:14 +08:00
$ make hard-clean
$ make CarlaUE4Editor
2018-01-17 23:16:44 +08:00
2019-06-25 18:52:14 +08:00
It takes a long time but fixes the issue.
2018-02-02 00:02:05 +08:00
2019-06-25 18:52:14 +08:00
</details>