1 py-carla repository contains auxilliary scripts for CARLA simulator that
2 are expected to be run in Python3.7. (Python3.7 is due to compatibility
3 with `carla` package available on PyPI.)
5 On ubuntu 22.04, install the Python3.7:
7 sudo add-apt-repository ppa:deadsnakes/ppa
9 sudo apt-get install python3.7 python3.7-venv
11 and create virtual environment `tve`:
15 pip install -r requirements.txt
17 Use `tve` virtual environment whenever running any scripts. It is
18 expected the following scripts are run inside the `tve` virtual
23 - https://carla.readthedocs.io
26 Install scenario runner dependencies (cd to scenario runner directory):
28 pip install -r requirements.txt
30 and set the PYTHONPATH:
32 export PYTHONPATH="/path/to/carla/PythonAPI/carla:$PYTHONPATH"
34 Timeout of 10 seconds is sometimes too low, so do not be afraid to
39 Check out the scenarios from the scenario runner and run some:
41 python scenario_runner.py --list
42 python scenario_runner.py --scenario ChangeLane_1 --reloadWorld
44 Init coordinates of ego are in XML file, e.g. for `ChangeLane_1`
45 scenario in `srunner/examples/ChangeLane.xml` file. Find the coordinates
48 ./focus.py 284.4,16.4,-173
52 - https://carla-scenariorunner.readthedocs.io