Step 1: create a conda environment named "carla37" with python version 3.7.9 and activate it
conda create -n carla37 python=3.7.9
conda activate carla37
Step 2: clone this repo to your machine and navigate to the root folder in terminal
Step 3: Update the environment with all the necessary packages needed for this repository
conda env update -n carla37 --file environment.yml
Now you can run the experiments
Step 3: Update the environment with all the necessary packages needed for this repository
conda env update -n carla37 --file environment-ubuntu-mac.yml
Now you can run the experiments. If you run into issues while installing packages from the previous command. Try installing with the following commands.
pip install carla
conda install numpy
conda install matplotlib
conda install -c anaconda click
conda install -c anaconda eventlet
conda install -c intel networkx
conda install -c conda-forge pandas
conda install -c cctbx202008 pyyaml
conda install -c cctbx202112 scipy
conda install -c conda-forge shapely
conda install -c anaconda seaborn
pip install pygame==1.9.6
conda install -c conda-forge gym
You can use the streamer.py file to stream from the spectator in a remote server. Issue this command in the terminal:
python streamer.py
It will prompt for ip and port.
Navigate to the carla examples folder from your carla installation folder. Run any experiment. The streamer should be able to show the simulation.