carla README

The project's README from github.com/carla-simulator/carla. As one markdown file: README.md.

CARLA Simulator

Documentation

carla.org download documentation forum discord

CARLA is an open-source simulator for autonomous driving research. CARLA has been developed from the ground up to support development, training, and validation of autonomous driving systems. In addition to open-source code and protocols, CARLA provides open digital assets (urban layouts, buildings, vehicles) that were created for this purpose and can be used freely. The simulation platform supports flexible specification of sensor suites and environmental conditions.

CARLA Video

[!NOTE] This is the development branch ue5-dev for the Unreal Engine 5.5 version of CARLA. This branch exists in parallel with the Unreal Engine 4.26 version of CARLA, in the ue4-dev branch. Please be sure that this version of CARLA is suitable for your needs as there are significant differences between the UE 5.5 and UE 4.26 versions of CARLA.

[!NOTE] You must use either Ubuntu 22.04 or 24.04, or Windows 11. The Unreal Engine 5.5 version of CARLA will not work on Ubuntu 20.04 or Windows 10 or lower.

Documentation

The CARLA documentation is hosted on ReadTheDocs. Please see the following key links:

CARLA Ecosystem

Repositories associated with the CARLA simulation platform:

Like what you see? Star us on GitHub to support the project!

Paper

If you use CARLA, please cite our CoRL’17 paper.

CARLA: An Open Urban Driving Simulator
Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, Vladlen Koltun; PMLR 78:1-16 [PDF] [talk]

@inproceedings{Dosovitskiy17,
  title = {{CARLA}: {An} Open Urban Driving Simulator},
  author = {Alexey Dosovitskiy and German Ros and Felipe Codevilla and Antonio Lopez and Vladlen Koltun},
  booktitle = {Proceedings of the 1st Annual Conference on Robot Learning},
  pages = {1--16},
  year = {2017}
}

Building CARLA with Unreal Engine 5.5


Clone this repository locally from GitHub, specifying the ue5-dev branch:

git clone -b ue5-dev https://github.com/carla-simulator/carla.git CarlaUE5

In order to build CARLA, you need access to the CARLA fork of Unreal Engine 5.5. In order to access this repository, you must first link your GitHub account to Epic Games by following this guide. You then also need to use your git credentials to authorise the download of the Unreal Engine 5.5 repository.

Building in Linux:

Run the setup script from a terminal open in the CARLA root directory:

cd CarlaUE5
./CarlaSetup.sh --interactive

The setup script will prompt you for your sudo password, in order to install the prerequisites. It will then prompt you for your GitHub credentials in order to authorise the download of the Unreal Engine repository.

The setup script will install by default Python 3 using apt. If you want to target an existing Python installation, you should use the --python-root=PATH_TO_PYTHON argument with the relevant Python installation path. You can use whereis python3 in your chosen environment and strip the /python3 suffix from the path.

Building in Linux unattended:

If you want to run the setup script unattended, your git credentials need to be stored in an environment variable. Add your github credentials to your .bashrc file:

export GIT_LOCAL_CREDENTIALS=username@github_token

Then run the setup script using the following command:

cd CarlaUE5
sudo -E ./CarlaSetup.sh

This will download and install Unreal Engine 5.5, install the prerequisites and build CARLA. It may take some time to complete and use a significant amount of disk space.

If you prefer to add the git credentials in the terminal, use the following command:

cd CarlaUE5
sudo -E env GIT_LOCAL_CREDENTIALS=github_username@github_token ./CarlaSetup.sh 

Building in Windows:

To build in Windows, run the batch script:

cd CarlaUE5
CarlaSetup.bat

Unattended mode is currently unavailable in Windows, you will need to enter GitHub credentials or administrator privileges when prompted.

Rebuilding CARLA

Once the setup is complete, you can execute subsequent builds with the following commands in a terminal open in the CARLA root directory. In Linux, run these commands in a standard terminal. In Windows, open the x64 Native Tools Command Prompt for Visual Studio 2022.

Configure:

Linux:

cmake -G Ninja -S . -B Build --toolchain=$PWD/CMake/Toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_ROS2=ON

Windows:

cmake -G Ninja -S . -B Build --toolchain=$PWD/CMake/Toolchain.cmake -DCMAKE_BUILD_TYPE=Release

[!NOTE] If you intend to target a specific Python installation, you should add both these arguments to the above cmake command: -DPython_ROOT_DIR=PATH and -DPython3_ROOT_DIR=PATH.

Build:

Linux and Windows:

cmake --build Build

Build and install the Python API:

Linux and Windows:

cmake --build Build --target carla-python-api-install

Launch the editor:

cmake --build Build --target launch

For more instructions on building CARLA UE5, please consult the build documentation for Linux or Windows.

Contributing

Please take a look at our Contribution guidelines.

Licenses

CARLA licenses

CARLA specific code is distributed under the MIT License.

CARLA specific assets are distributed under the CC-BY License.

CARLA Dependency and Integration licenses

Unreal Engine 5 follows its own license terms.

CARLA uses some dependencies related to 3rd party integrations:

CARLA uses the Autodesk FBX SDK for converting FBX to OBJ in the import process of maps. This step is optional, and the SDK is located here

This software contains Autodesk® FBX® code developed by Autodesk, Inc. Copyright 2020 Autodesk, Inc. All rights, reserved. Such code is provided "as is" and Autodesk, Inc. disclaims any and all warranties, whether express or implied, including without limitation the implied warranties of merchantability, fitness for a particular purpose or non-infringement of third party rights. In no event shall Autodesk, Inc. be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of such code."

carla (carla-simulator/carla)

Searching Database…

14.5K ·GitHub
这是什么?CARLA 是一款开源的自动驾驶研究仿真器,从零开始构建,用于支持自动驾驶系统的开发、训练和验证,提供开放的城市道路布局、建筑和车辆资源。
这是独立的仿真器,还是需要导入的库?它是基于 Unreal Engine 构建的独立 3D 仿真器,可通过 Python API 进行控制,以编程方式生成车辆、传感器和交通流。
我该如何构建和运行 CARLA?在 'ue5-dev' 分支上克隆仓库,然后运行提供的安装脚本(Linux 上为 setup.sh,Windows 上为批处理脚本)。脚本会安装前置依赖,并下载 CARLA 定制版 Unreal Engine 5.5;之后使用 cmake 进行配置和编译,构建 Python API,最后再启动编辑器。
我构建 CARLA 需要 Epic Games 账号吗?需要。你必须将 GitHub 账号与 Epic Games 关联,才能获取 CARLA 定制版 Unreal Engine 5.5 的访问权限;此外还需要 Python 3,在 Windows 上还需要 Visual Studio 2022 构建工具。
CARLA 实际需要什么硬件和操作系统?推荐配置为 Intel i7/i9(第 9–11 代)或 AMD Ryzen 7/9,32GB 以上内存,以及 RTX 3070 或更高型号、16GB 以上显存的显卡。它只支持 Ubuntu 22.04/24.04 或 Windows 11,明确不支持 Ubuntu 20.04 和 Windows 10。
我需要一块性能很强的显卡来运行 CARLA 吗?需要。推荐配置为 NVIDIA RTX 3070/3080/3090、RTX 4090 或 RTX 5090,且显存不少于 16GB。
CARLA 生态系统里还有什么?相关仓库包括用于验证自动驾驶系统的 Autonomous Driving Leaderboard、用于编写交通场景脚本的 ScenarioRunner、Driving-benchmarks、条件模仿学习训练器、AutoWare 桥接工具,以及用于制作地图的 RoadRunner/Map Editor 工具链。
CARLA 能和 ROS 对接吗?可以。单独的 ROS-bridge 仓库可以将 CARLA 0.9.X 与 ROS 连接起来,便于集成现有的机器人软件栈。
如果在研究中使用 CARLA,需要引用什么吗?需要。项目要求你引用其 CoRL'17 论文《CARLA: An Open Urban Driving Simulator》,作者为 Dosovitskiy 等人。
有没有更老、更容易构建的 CARLA 版本?有。这个 ue5-dev 分支是基于 Unreal Engine 5.5 的重写版本;另有一个 ue4-dev 分支对应较旧的 Unreal Engine 4.26 版本,其构建要求有所不同。
Size
2.5 GB
Stars
14.5K
Age
8y
Commits · 90 Days