Skip to content

Python API support

zminton edited this page Sep 13, 2018 · 2 revisions

The Trolley Mod does not make any changes to CARLA's native Python API. Therefore, a good resource to use is CARLA's tutorial on connecting a Python client and its documentation on its CarlaServer architecture.

An example Python client is provided in the repository called "sim.py," and must be stored/run from the PythonClient directory of CARLA. The file is extremely similar to CARLA's client_example.py, but instead implements a keyboard listener that lets the user input steering.