Skip to content

Yaquod/carla-dev

Repository files navigation

carla-dev

Overview

A hybrid simulation environment for autonomous vehicle development in New Cairo.

Simulator: CARLA 0.9.x (Host-side, via Wine/Sikarugir).

Logic/Brain: Python 3.10 (Docker-side, linux/amd64 emulation).

Map: Custom OpenDRIVE geometry for New Cairo.

Getting Started

  1. Host Preparation (Mac)

Ensure CARLA is running on your Mac before starting the container.

Clear corrupt map caches if needed

rm -rf ~/Library/Application\ Support/Epic/CarlaUE4/Saved/OpenDrive/*.bin
  1. Container Launch

Execute the following from your project root (test/ folder):

docker run -it --rm \
  --platform linux/amd64 \
  -v "$(pwd):/app" \
  -p 9090:9090 \
  python:3.10-slim /bin/bash
  1. Internal Dependency Setup

Inside the Docker terminal, install the required libraries for the CARLA API:

apt-get update && apt-get install -y libpng16-16 libjpeg8 libtiff5 libgl1
pip install carla

Development Workflow

The "Edit-Run" Loop

Edit: Modify Python scripts on the Mac host using your preferred IDE.

Mount: The -v flag ensures changes are instantly available in /app.

Execute: Run scripts targeting the host bridge:

python /app/robotaxi_trip.py --host host.docker.internal

About

Bringing New Cairo roads into our project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages