Carla Simulator

Quick start

sudo apt-key adv — keyserver keyserver.ubuntu.com — recv-keys DB53A429E64554FC &&
sudo add-apt-repository “deb [trusted=yes] http://dist.carla.org/carla-0.9.7/ all main”

Install CARLA and check for the installation in the /opt/ folder.

sudo apt-get update
sudo apt-get install carla-simulator
cd /opt/carla-simulator

Import additional assets

./ImportAssets.sh

Running CARLA

If on closing carla, system freezes, then use:

./CarlaUE4.sh -opengl

A window containing a view over the city will pop up. This is the spectator view. To fly around the city use the mouse and WASD keys (while clicking). The server simulator is now running and waiting for a client to connect and interact with the world.
Now it is time to start running scripts. The following example will spawn some life into the city:

cd PythonAPI/examples
python3 spawn_npc.py

References