Skip to content

Mdxr/ResqRoute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ResQRoute: Intelligent Disaster Response Simulation System

ResQRoute Banner

Overview

ResQRoute is a sophisticated 3D simulation environment built in Unity, designed for visualizing and optimizing disaster response logistics. By leveraging real-world geospatial data from OpenStreetMap (OSM), the system generates a 1:1 scale virtual city. It integrates dynamic pathfinding, volumetric population estimation, and interactive disaster zoning to test rescue station placements and route efficiency in real-time.

Key Features

  • 1:1 Real-World Mapping: Procedural city generation using OpenStreetMap XML data.
  • Dynamic Pathfinding: Optimized A* (A-Star) algorithm that adapts to road closures and disaster zones.
  • Disaster Zoning: Interactive tools for defining flood, fire, or earthquake zones (Circular and Polygonal).
  • Resource Planning: Automated calculations for affected populations and required rescue capacity based on 3D building volume.
  • Real-time Visualization: High-performance rendering of evacuation and supply routes.

Getting Started

Prerequisites

  • Unity Hub
  • Unity 2022.3 LTS (Recommended) or higher.
  • Universal Render Pipeline (URP) support.

Installation

  1. Clone the Repository:
    git clone https://github.com/MudasserKhan/ResQRoute.git
  2. Open in Unity:
    • Launch Unity Hub.
    • Click Add -> Add project from disk.
    • Select the ResQRoute folder.
  3. Setup Scene:
    • Open Assets/Scenes/Main.unity (or whichever scene you intend to run).
    • Ensure the OSMImporter component has a valid .xml map file path (e.g., Assets/map.xml).

How it Works

Simulation Workflow

  1. Define Infrastructure: Right-click any building in the scene to tag it as a Rescue Station or Hospital.
  2. Simulate Disaster: Use the on-screen UI buttons or hotkeys:
    • X: Circle Tool (Click and drag to define a radius).
    • Y: Polygon Tool (Click to place points, close the loop).
  3. Analyze: Watch as the system calculates the most efficient paths from stations to the disaster edge, and from the edge to hospitals. Results are displayed on the Simulation Dashboard.

Technical Stack

  • Engine: Unity 3D (C#)
  • Algorithms: A* Search, Ear Clipping (Triangulation), Mercator Projection, Raycasting (Point-in-Polygon).
  • Data Source: OpenStreetMap (OSM) XML.

Contributing

We are looking for contributors to help finish this project and take it to the next level! This project is currently in an "unfinished but functional" state and has transition to an Open Source model.

See CONTRIBUTING.md for detailed instructions on how to get started.

Areas for Contribution

  • Traffic Simulation: Adding moving agents to simulate congestion during evacuation.
  • C++ Backend: Moving heavy pathfinding calculations to a C++ library for maximum performance.
  • Visual Enhancements: Better shaders for disaster zones and detailed building models.
  • Bug Fixes: Refinement of the Ear Clipping algorithm for very complex building footprints.

Suggested Issues & roadmap

Check out ISSUES.md for a list of prioritized tasks and suggestions for new contributors.


License

This project is open-sourced under the MIT License. Use it, improve it, and help save lives!


Developed by Mudasser Khan
Project Title: ResQRoute
Domain: Disaster Management / Smart City Simulation

About

Rescue Simulation in Disaster Situations

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors