https://github.com/bilgeswe/swe599
SWE599_ProjectPage
https://github.com/bilgeswe/swe599
Last synced: 5 months ago
JSON representation
SWE599_ProjectPage
- Host: GitHub
- URL: https://github.com/bilgeswe/swe599
- Owner: bilgeswe
- Created: 2025-04-02T14:24:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-25T12:03:43.000Z (about 1 year ago)
- Last Synced: 2026-01-27T15:21:43.335Z (5 months ago)
- Language: HTML
- Size: 190 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# ๐๏ธ AV Simulation Project
> **Professional OpenDRIVE/OpenSCENARIO export system for Istanbul's รskรผdar district, evolved from basic OSM data to advanced AV simulation pipeline.**
## ๐ฏ Project Overview
This project demonstrates the evolution from **basic OSM data processing** to **professional autonomous vehicle simulation** using real-world data from รskรผdar, Istanbul.
### ๐ **Final Achievement:**
- **๐บ๏ธ 9,421 nodes** and **24,157 road edges** covering รskรผdar district
- **๐ฆ 42 traffic lights** with realistic behavior
- **๐ Geographic coverage:** 29.006ยฐ-29.092ยฐE, 40.992ยฐ-41.078ยฐN
- **๐ง Professional formats:** OpenDRIVE (16.3 MB) + OpenSCENARIO (6.8 KB)
- **๐ฎ Interactive simulation:** Ready for SUMO-GUI with moving traffic
## ๐๏ธ Two-Version Architecture
### **Version 1: Basic Method** (`v1_basic_method/`)
The foundation - basic OSM data fetching and simple SUMO conversion.
```bash
๐๏ธ PRIMITIVE METHOD
โโโ Fetch OSM data for รskรผdar โ 7.4 MB .osm file
โโโ Convert to basic SUMO โ 12.3 MB .net.xml
โโโ Foundation for advanced processing
```
**Run:** `cd v1_basic_method && python fetch_and_convert.py`
### **Version 2: Advanced Method** (`v2_advanced_method/`)
Professional AV simulation with advanced algorithms and export systems.
```bash
๐ ADVANCED METHOD
โโโ OpenDRIVE Export Algorithm โ 16.3 MB .xodr
โโโ OpenSCENARIO Export โ 6.8 KB .xosc
โโโ Intelligent Traffic Generation โ Real edge IDs
โโโ Professional SUMO Integration โ Interactive simulation
โโโ Ready for AV development tools
```
**Run:** `cd v2_advanced_method && python advanced_uskudar_pipeline.py`
## ๐ Quick Start
### **Option 1: Full Pipeline (Recommended)**
```bash
# Step 1: Create foundation data
cd v1_basic_method
python fetch_and_convert.py
# Step 2: Build advanced simulation
cd ../v2_advanced_method
python advanced_uskudar_pipeline.py
# Step 3: Launch interactive simulation
cd output/uskudar/advanced_simulation
sumo-gui uskudar_simulation.sumocfg
```
### **Option 2: Use Existing Results**
```bash
# Launch our pre-built รskรผdar simulation
cd v2_advanced_method/output/uskudar/opendrive_scenario
sumo-gui uskudar_simulation.sumocfg
```
## ๐ Repository Structure
```
SWE599/
โโโ README.md # This file
โโโ requirements.txt # Python dependencies
โโโ v1_basic_method/ # ๐๏ธ VERSION 1: Foundation
โ โโโ README.md
โ โโโ fetch_and_convert.py # Main script
โ โโโ data/ # OSM data (7.4 MB)
โ โโโ osm_fetcher/ # Basic OSM tools
โ โโโ converter/ # Basic conversion
โ โโโ utils/ # Utility functions
โโโ v2_advanced_method/ # ๐ VERSION 2: Advanced
โโโ README.md
โโโ advanced_uskudar_pipeline.py # Main advanced script
โโโ add_traffic_uskudar.py # Traffic generation algorithm
โโโ export_uskudar_simple.py # รskรผdar-specific export
โโโ test_export_simple.py # Testing framework
โโโ exporters/ # Advanced export algorithms
โ โโโ opendrive_exporter/ # OpenDRIVE export system
โ โโโ openscenario_exporter/ # OpenSCENARIO export system
โโโ av_algorithms/ # AV-specific algorithms
โโโ examples/ # Advanced examples
โโโ validation/ # Validation tools
โโโ visualization/ # Advanced visualization
โโโ cli/ # Command-line interface
โโโ output/ # ๐ฏ GENERATED FILES
โโโ uskudar/
โโโ opendrive_scenario/ # Working simulation
โโโ uskudar_network.xodr # 16.3 MB OpenDRIVE
โโโ uskudar_av_scenario.xosc # 6.8 KB OpenSCENARIO
โโโ uskudar_network.net.xml # 15.9 MB SUMO network
โโโ uskudar_routes.rou.xml # Traffic routes
โโโ uskudar_simulation.sumocfg # Complete simulation
โโโ export_summary.json # Statistics
```
## ๐ง Key Technologies & Algorithms
### **Version 1 Technologies:**
- **OSMnx** - OpenStreetMap data fetching
- **SUMO netconvert** - Basic network conversion
- **XML processing** - Data parsing
### **Version 2 Advanced Algorithms:**
- **๐ฃ๏ธ OpenDRIVE Exporter** - Professional road network format
- **๐ฌ OpenSCENARIO Exporter** - AV scenario testing format
- **๐ฆ Intelligent Traffic Generator** - Real edge ID extraction
- **๐ฎ SUMO Integration** - Complete simulation pipeline
## ๐ก Real-World Applications
### **๐ Autonomous Vehicle Development**
- Test AV algorithms in realistic Istanbul traffic
- Use OpenSCENARIO for scenario-based validation
- Professional-grade simulation environment
### **๐๏ธ Urban Planning & Traffic Research**
- Analyze traffic patterns in รskรผdar district
- Test traffic light optimization algorithms
- Study real-world urban mobility
### **๐ฌ Academic Research**
- Ready-to-use Istanbul traffic simulation
- Professional export formats for research tools
- Complete pipeline for similar cities
## ๐ Geographic Coverage
- **๐๏ธ District:** รskรผdar, Istanbul, Turkey
- **๐ Coordinates:** 29.006ยฐ-29.092ยฐE, 40.992ยฐ-41.078ยฐN
- **๐บ๏ธ Area:** Real urban district with complex road network
- **๐ฆ Infrastructure:** 42 traffic lights, major intersections
## ๐ Integration with Professional Tools
The generated files are compatible with:
- **๐ฎ esmini** - Load `.xodr` and `.xosc` for 3D simulation
- **๐ฏ Unreal Engine** - Import OpenDRIVE for photorealistic AV simulation
- **๐ CARLA** - Use as custom map for AV research
- **๐ญ IPG CarMaker** - Professional AV simulation platform
- **๐ SUMO** - Traffic flow analysis and optimization
## ๐ฆ Installation & Dependencies
```bash
# Clone repository
git clone [repository-url]
cd SWE599
# Install Python dependencies
pip install -r requirements.txt
# Install SUMO (macOS)
brew install sumo
# Verify installation
sumo-gui --version
```
## ๐ Project Success Metrics
โ
**Data Processing:** 7.4 MB OSM โ 16.3 MB OpenDRIVE
โ
**Network Scale:** 9,421 nodes, 24,157 edges
โ
**Professional Formats:** OpenDRIVE + OpenSCENARIO export
โ
**Interactive Simulation:** Working SUMO-GUI with traffic
โ
**Real-World Data:** Actual Istanbul geography
โ
**Algorithm Development:** Custom export and traffic generation
โ
**Professional Integration:** Ready for AV development tools
---
**๐ง Contact:** Built for SWE599 - Advanced software development project
**๐๏ธ Location:** รskรผdar, Istanbul, Turkey
**๐ Status:** Production-ready AV simulation environment