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.
- Host Preparation (Mac)
Ensure CARLA is running on your Mac before starting the container.
rm -rf ~/Library/Application\ Support/Epic/CarlaUE4/Saved/OpenDrive/*.bin- 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- 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 carlaThe "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