A Python-based simulation of flying objects in a 2D plane with a REST API for querying object trajectories and sector snapshots.
Flying Objects Simulator is a Python-based simulation application that models the movement of flying objects in a 2D plane. The world is divided into sectors, and objects move along quadratic Bézier curves. The simulation logs object positions and other relevant data, and provides a REST API to query this data.
- Simulates 500 flying objects with random trajectories and speeds.
- Objects move on a quadratic Bézier curve from an origin point through a waypoint to a destination point.
- REST API for querying object trajectories and sector snapshots.
- Data logging with detailed object information at regular intervals.
- Python 3.6 or higher
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/amrahhh/flying-objects-simulator.git cd flying-objects-simulator -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
chmod +x run.sh Run the bash script to generate data: ./run.sh