This project implements a modular object-oriented radar system in C++ for estimating and tracking UAV coordinates.
The project models UAV tracking as a data assimilation problem using a generated radar environment consisting of landmark locations and fixed physical radar anchor points treated as ground stations with attached antennas emitting electromagnetic waves in order to collect distance data and estimate the UAV coordinates.
The UAVs are assumed to be isolated and radar measurements are available, plus the radar system has collected data about initial UAV estimates. Thus, the implemented methods address a numerical state-estimation and tracking problem rather than a detection problem.
The radar system was developed as an independent R&D project with focus on:
- Object-oriented software design
- Software robustness and memory management
- Sensor data processing
- Numerical estimation
- Testing and verification
The idea of the project was to investigate how radar measurements can be used to estimate UAV positions under the influence of potential noisy sensor data sources.
Furthermore, the project explores the effectiveness of different numerical estimation strategies for solving the UAV Tracking problem.
The project combines mathematical modelling, numerical estimation methods, noisy sensor data treatment and software engineering to explore the challenges of UAV tracking in sensor-based systems.
The project includes:
- Pseudo-randomized radar environment including landmark locations and sensor data generation
- Tracking of Multiple UAVs
- Sensor data estimation using implemented numerical estimation methods
- Kalman filtering techniques for modelling uncertainty in radar measurements and kinematic UAV movement prediction
- White Gaussian Noise sensor simulation
- Custom generic data structures
- Memory management using smart pointers
- Rule of Five implementation
- GoogleTest unit testing
- AddressSanitizer verification
- Data processing and visualization pipeline in Python
- Continuous Integration framework via GitHub Actions
The software is divided into several components:
Designed to store data for any data type.
Provides matrix storage and numerical operations used throughout the estimation framework.
Responsible for generating the radar environment by using pseudo-randomized seeds and construct coordinates for landmark locations, physical radar anchor points and initial UAV estimates.
Responsible for the generation of potential noisy sensor data sources to true distances of the physical radar anchor points relative to landmark locations, using White Gaussian Noise. It is designed for choosing the option to either generate the noisy data or to keep the UAV Tracking problem ideal.
Stores and manages tracking-related data between states.
Responsible for the mathematical operations underlying the data assimilation framework.
Responsible for state estimation using the Gauss-Newton strategy.
Responsible for state estimation using the Levenberg-Marquardt strategy.
Responsible for state estimation using Kalman filtering techniques.
Performs state estimation by applying the selected numerical estimation strategy to the UAV Tracking problem.
Responsible for performing the state estimation via StateEstimator in order to collect results that later are written to csv-files.
The main class that initializes a radar environment generated from generateRadarStructure and starts solving the UAV Tracking problem via UAVTracking.
Represents the needed parameters for the UAV Tracking problem.
The main source file for running the UAV Tracking solver via MissionUAV_Solver.
A script in Python that uses a data processing pipeline to automatically build and execute the project, and subsequently generate plots from the UAV Tracking solver results.
Verification framework based on GoogleTest.
- git clone https://github.com/Octamomentum/Programming_projects
- cd UAVTracking_project
- mkdir build
- cd build
- cmake ..
Since the Python script automatically builds and executes the project, it is sufficient to run
- python plots_UAVTracking.py
The script generates the simulation results and visualizes the estimation performance and the estimated UAV trajectories.
The UAV Tracking (UT) problem is formulated as a data assimilation problem. The UAVs are assumed to be mutually independent, meaning that there are no interactions, communications or coupling between the tracked targets that are taken into consideration.
The radar environment follows a spherical coordinate system centered at the origin. The landmark locations and the physical radar anchor points remain within the monitored radar domain while initial UAV estimates may be generated either inside or outside the radar environment.
Radar observations are either ideal or affected by potential noisy data sources using White Gaussian Noise to generate real-world sensor uncertainty relating to true distances of the fixed radar anchor points relative to landmark locations.
Estimated positions are calculated through nonlinear least-squares optimization using an implemented numerical estimation method strategy: Gauss-Newton, Levenberg-Marquardt or an approach using Kalman filtering techniques.
The goal of this mathematical framework is to study estimation performance behavior under real-world physical constraints.
This project was verified using:
- Unit tests implemented with GoogleTest
- Dynamic memory analysis using AddressSanitizer
- Continuous Integration (CI) framework via GitHub Actions
- Validation of estimation results through numerical experiments
The project has been continuously tested during development to ensure robust and efficient software architecture.
Experiments were designed to evaluate estimation performance behavior under situational UAV tracking problems: ideal vs uncertain sensor data.
The results show that:
- The estimator performs reliably under the ideal case. In the uncertainty case, however, the reliability tends to decrease as the noise level increases with respect to the variance relating to the true distances of the radar anchor points relative to landmark locations.
- The Gauss-Newton method remains effective when provided with initial UAV estimates that are reasonably far from the radar domain.
- The Levenberg-Marquardt method provided a robust performance based on the Trust-Region approach, tending to converge earlier than the Gauss-Newton method when the least square problems are sufficiently regularized.
- The Kalman filtering method demonstrated reliable and robust performance, although at a higher computational cost when provided with properly calibrated covariance matrices P, Q and R, and when the noise level increases. Depending on the covariance calibration and the filter tuning, the Kalman filtering method tends to outperform the Gauss-Newton method yet has potential to be as effective as Levenberg-Marquardt in convergence, especially if fewer landmark locations and initial UAV estimates generated sufficiently far from the radar domain is taken into consideration. For extremely large distances from the radar origin, Kalman filtering may provide the most robust estimation strategy.
Possible improvements for future updates include:
- Real radar data integration
The project was developed using:
- Modern C++
- Python
- Object-Oriented Programming
- Rule Of Five
- Smart Pointers
- Custom Generic Data Structures
- Gauss-Newton
- Levenberg-Marquardt
- Kalman filtering techniques
- Nonlinear Least-Squares Optimization
- Block/Augmented/Projection matrices
- QR-decomposition
- Givens matrices
- Covariance-based Uncertainty modelling for the Kalman-filtering method
- Data Assimilation
- State Estimation
- White Gaussian Noise
- Mathematical Modelling
- GoogleTest
- AddressSanitizer
- CMake
- Git
- GitHub
- GitHub Actions
- Continuous Integration