Installation
June 2, 2021 ยท View on GitHub
This doc provides instructions to get started.
Install CARLA
- Download this repo
git clone --recurse-submodules -j8 git@github.com:dotchen/WorldOnRails.git - Download and unzip CARLA 0.9.10.1
Install dependencies
- First, inside the repo, create a dedicated conda environment. Refer here if you do not have conda.
conda env create -f environment.yaml
- Inside the conda environment, install the CARLA PythonAPI
easy_install [PATH TO CARLA EGG]. Refer to this link if you are confused at this step. - Setup wandb
Configure environment variables
Note: the following instructions mostly only apply to Linux.
Set the following environmental variables to your conda environment. Refer here for instructions to do so.
export CARLA_ROOT=[LINK TO YOUR CARLA FOLDER]
export LEADERBOARD_ROOT=[LINK TO WORLD ON RAILS REPO]/leaderboard
export SCENARIO_RUNNER_ROOT=[LINK TO WORLD ON RAILS REPO]/scenario_runner
export PYTHONPATH="${CARLA_ROOT}/PythonAPI/carla/":"${SCENARIO_RUNNER_ROOT}":"${LEADERBOARD_ROOT}"
Now, you can treat this conda environment the dedicated one (by defauld named world_on_rails).