CARLA ? C-Shenron based Simualtor for Sensor data generation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
RUSHIL AMBARISH KADU 3084933f82 docs: initialize replication guide and environment configuration 4 weeks ago
.agent feat: add project documentation and agent instructions to standardize development workflow 2 months ago
carla_examples Added Carla_Examples for in depth exploration and experimentation. 2 months ago
dashboard release: Fox v1.1 "Ares" — Stage-Based Pipeline & Radar Parity 4 weeks ago
graphify-out graphify trial 1. 4 weeks ago
intel docs: upgrade Memory Update Protocol to v1.1 and expand v1.1 "Ares" Chronicles 4 weeks ago
scenarios logging: fix redundant tqdm updates and double-printing in console logs 2 months ago
scratch docs: initialize replication guide and environment configuration 4 weeks ago
scripts release: Fox v1.1 "Ares" — Stage-Based Pipeline & Radar Parity 4 weeks ago
src release: Fox v1.1 "Ares" — Stage-Based Pipeline & Radar Parity 4 weeks ago
tmp release: Fox v1.1 "Ares" — Stage-Based Pipeline & Radar Parity 4 weeks ago
.cursorrules feat: add project documentation and agent instructions to standardize development workflow 2 months ago
.gitignore feat(shenron): Physics calibration - Iteration 07 High-Def Sync 2 months ago
123.md release: Fox v1.1 "Ares" — Stage-Based Pipeline & Radar Parity 4 weeks ago
README.md docs: initialize replication guide and environment configuration 4 weeks ago
config.py feat(dashboard): add simulator lifecycle management, graceful shutdown, and gpu control 1 month ago
dashboard.bat feat(dashboard): stabilize idle mode and add system controls 1 month ago
environment.yml docs: initialize replication guide and environment configuration 4 weeks ago
gemini.md docs: upgrade Memory Update Protocol to v1.1 and expand v1.1 "Ares" Chronicles 4 weeks ago
requirements.txt docs: initialize replication guide and environment configuration 4 weeks ago
run.bat feat: Aligned simulation pipeline with high-fidelity testbench diagnostics 1 month ago

README.md

🦊 Fox CARLA ADAS Simulation Project

A modular, scenario-driven simulation framework built on CARLA 0.9.16 for demonstrating structured ADAS driving scenarios with multi-modal sensor data and physics-based radar synthesis.


🚀 1. Prerequisites

Before setting up the project, ensure you have the following installed:

  • Operating System: Windows 10/11 (Required for CARLA 0.9.16 and Shenron synthesis).
  • CARLA Simulator: Version 0.9.16 (Must be installed and reachable).
  • Miniconda/Anaconda: For environment management.
  • NVIDIA GPU: Required for high-fidelity radar synthesis and CARLA rendering.

🛠️ 2. Environment Setup

1. Clone the Repository

Clone this repository into your CARLA PythonAPI folder:

cd C:\Path\To\CARLA_0.9.16\PythonAPI
git clone <repository_url> Fox
cd Fox

2. Create Conda Environment

We use Python 3.12 for compatibility with modern libraries and CARLA 0.9.16.

Option A: Using environment.yml (Recommended)

conda env create -f environment.yml
conda activate carla312

Option B: Manual Setup

conda create -n carla312 python=3.12 -y
conda activate carla312
pip install -r requirements.txt

3. Install CARLA Python API

Regardless of the option above, you must install the CARLA 0.9.16 wheel:

pip install ..\carla\dist\carla-0.9.16-cp312-cp312-win_amd64.whl

🖥️ 3. Usage & Execution

🖱️ One-Click Dashboard (GUI)

The easiest way to run the orchestrator is via the Flask dashboard:

  1. Launch CARLA (e.g., CarlaUE4.exe).
  2. Double-click dashboard.bat in the project root.
  3. Navigate to http://127.0.0.1:5000 to manage scenarios and view telemetry.

⌨️ Command Line Interface (CLI)

You can run scenarios directly via the run.bat wrapper:

  • List Scenarios: .\run.bat --list-scenarios
  • Run Scenario: .\run.bat braking --frames 300
  • With Parameters: .\run.bat cutin --params "TARGET_SPEED=40,CUTIN_DIST=15"
  • Skip Processing: .\run.bat showcase --skip-shenron --skip-mcap

🏗️ 4. Project Architecture

  • src/: Core logic including PipelineManager, SensorManager, and Recorder.
  • scenarios/: Modular scenario implementations (e.g., braking.py, cutin.py).
  • scripts/: Data conversion tools (MCAP) and the Shenron radar synthesis engine.
  • dashboard/: Flask-based web interface for the orchestrator.
  • intel/: Deep-dive documentation, project history (CHRONICLES.md), and versioned changelogs.

🛰️ 5. The Data Pipeline

The simulation follows a structured multi-stage pipeline:

  1. Simulation Stage: Captures RGB, LiDAR, and raw Radar data from CARLA.
  2. Shenron Stage: Synthesizes high-fidelity physics-based radar heatmaps.
  3. MCAP Stage: Converts all data into a single .mcap file for Foxglove visualization.
  4. Video Stage: Generates .mp4 previews of the session.

📂 6. Replication Checklist for New PC

If you are moving this project to another machine:

  1. Install CARLA 0.9.16.
  2. Verify CUDA drivers are up to date for Shenron synthesis.
  3. Create carla312 environment and install requirements.txt.
  4. Ensure run.bat and dashboard.bat point to the correct activate.bat path (default: C:\ProgramData\miniconda3\Scripts\activate.bat).
  5. Run cmd /c "run.bat showcase --frames 50" to verify the full pipeline end-to-end.

🛠️ 7. Troubleshooting & Tips

  • GPU Idle Mode: If the simulator feels "frozen," check if Idle Mode is enabled in the Dashboard. This throttles CARLA to ~0 FPS to save GPU for Shenron processing.
  • Stop Flag: If the simulation won't start, check for a tmp/stop.flag file and delete it.
  • Environment Activation: If run.bat fails to find conda, edit the script to point to your activate.bat location (usually in C:\miniconda3\Scripts or C:\Users\<User>\miniconda3\Scripts).
  • Coordinate Systems: Remember that CARLA uses a left-handed coordinate system (LHS), while Foxglove/ROS2 use right-handed (RHS). The MCAP converter handles this conversion automatically.

Generated by Antigravity AI | Version 1.1 "Ares"