Running Carla on Nuvo-9160GC with Ubuntu 22.04

Overview

  • CARLA doesn't have native Ubuntu 22 support, so we will benefit from CARLA docker

  • CARLA is based on a server-client architecture. We will run CARLA server in docker, and run CARLA client outside the docker.

  • CARLA v0.9.12 client requires Python 3.7, so we will use conda to create a clean Python 3.7 environment for it.

Install NVIDIA GPU Driver

Install Docker

Run CARLA server in Docker

Then you will see a CARLA world! (By default, no traffic and no weather control)

Run CARLA Client

Copy CARLA sample code from CARLA Docker Image

Once you have CARLA server running, you will find a docker record, e.g.,

We will use the container ID: b8c5a057f8bf to copy sample file from Docker image.

Then you will find some CARLA python example on ~/Desktop/PythonAPI

Prepare a Pure Python 3.7 Environment

CARLA v0.9.12 needs pure python 3.7 environment. We will use conda to create a virtual environment

conda Installation

Create a Pure Python 3.7 Environment

Run CARLA examples

There are a few CARLA examples we copied from Docker image previously.

Script to Keep Automatic Control Running

Reference

Last updated