#32 Update documentation

This commit is contained in:
nsubiron 2017-11-18 18:55:59 +01:00
parent ea6a711559
commit a9e374aa0a
2 changed files with 16 additions and 27 deletions

View File

@ -18,29 +18,30 @@ For building CARLA from source, please check out the
Running the Python client Running the Python client
------------------------- -------------------------
Requires Python 3 with some extra modules installed The "carla" Python module provides a basic API for communicating with the CARLA
server. In the "PythonClient" folder we provide a couple of examples on how to
use this API. We recommend Python 3, but they are also compatible with Python 2.
The basic functionality requires only the protobuf module to be installed
$ sudo apt-get install python3 python3-pip $ sudo apt-get install python3 python3-pip
$ sudo pip3 install protobuf numpy Pillow $ sudo pip3 install protobuf
A sample Python script is provided at `PythonClient/client_example.py`. The However, other operations as handling images require some extra modules, and the
script is well commented explaining how to use the client API. "manual_control.py" example requires pygame
The script can be run and provides basic functionality for controlling the $ sudo pip3 install numpy Pillow pygame
vehicle and saving images to disk. Run the help command to see options available
$ ./carla_example.py --help The script "PythonClient/client_example.py" provides basic functionality for
controlling the vehicle and saving images to disk. Run the help command to see
options available
A second Python script is provided at `PythonClient/carla_manual_control.py`. $ ./client_example.py --help
The script is pygame dependent and serves as an interactive example where the
user controls the car with a keyboard.
$ sudo apt-get install python3-tk The script "PythonClient/manual_control.py" launches a PyGame window with
$ sudo pip3 install pygame matplolib several views and allows to control the vehicle using the WASD keys.
Run the help command to see options available $ ./manual_control.py --help
$ ./carla_manual_control.py --help
Running the server Running the server
------------------ ------------------

View File

@ -1,12 +0,0 @@
CARLA Client for Testing
========================
Requires Python 3 and the protobuf module installed, saving images to disk
requires the PIL module too.
$ sudo apt-get install python3 python3-pip
$ sudo pip3 install protobuf
A sample Python script explaining how to use the client API is provided
$ ./client_example.py --help