Setting Up Development Environment#

The section describes how to set up environment for both frontend and backend development.

Carla Installation#

System Requirements#

  • Currently only support Windows or Linux.

  • Graphics card with at least 6GB memory.

Referenced from quickstart - carla.

Packaged Version#

Download the pre-built packaged version from this link, download Import additional assets Each release has its own additional package of extra assets and maps. This additional package includes the maps Town06, Town07, and Town10. These are stored separately to reduce the size of the build, so they can only be imported after the main package has been installed.

  1. Download the appropriate package for your desired version of CARLA.

  2. Extract the package: * On Linux: move the package to the Import folder and run the following script to extract the contents:

    cd path/to/carla/root
    ./ImportAssets.sh
    
    • On Windows: Extract the contents directly in the root folder.

Build from Source#

Frontend#

TODO

Backend#

Windows-Specific Instructions#

  • Download python here. Note that currently only python3.8 is supported by the project.

  • Install poetry here.

  • Clone this repository.

  • Instead of normal poetry install, need to ignore Linux-only packages:

    poetry install --only "main, dev"
    
  • As an Administrator, set the execution policy by typing this into your PowerShell window:

    Set-ExecutionPolicy RemoteSigned
    

Linux/MacOS Specific Instruction#

  • Clone and enter this repo.

  • Install pyenv and:

    pyenv install 3.8.13
    pyenv shell 3.8.13
    poetry env use $(which python)
    poetry install
    

General Instruction#

  • Enter poetry environment:

    poetry shell
    
  • Try any python file inside scripts folder:

    python scripts/pure_wizard.py