Skip to content

About

Projects written in C++ and Python. The recently made project is called UAV Tracking which focuses on an object-oriented sensor-based radar system that track moving UAVs by solving numerical estimation problems in least-square sense.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

UAV Tracking

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

Motivation

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.

Technical Features

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

Software Architecture

The software is divided into several components:

LinkedListObject

Designed to store data for any data type.

MatrixObject

Provides matrix storage and numerical operations used throughout the estimation framework.

generateRadarStructure

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.

GenerateWGNSource

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.

TrackingParameters

Stores and manages tracking-related data between states.

MatrixCalculations

Responsible for the mathematical operations underlying the data assimilation framework.

GaussNewton

Responsible for state estimation using the Gauss-Newton strategy.

LevenbergMarquardt

Responsible for state estimation using the Levenberg-Marquardt strategy.

KalmanFilter

Responsible for state estimation using Kalman filtering techniques.

StateEstimator

Performs state estimation by applying the selected numerical estimation strategy to the UAV Tracking problem.

UAVTracking

Responsible for performing the state estimation via StateEstimator in order to collect results that later are written to csv-files.

MissionUAV_Solver

The main class that initializes a radar environment generated from generateRadarStructure and starts solving the UAV Tracking problem via UAVTracking.

UAVTracking_parameters

Represents the needed parameters for the UAV Tracking problem.

main_UAVTracking

The main source file for running the UAV Tracking solver via MissionUAV_Solver.

plots_UAVTracking

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.

Test Suites

Verification framework based on GoogleTest.

Usage

Clone the repository

Create a build folder and configure the project:

  • mkdir build
  • cd build
  • cmake ..

Run the Python visualization pipeline

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.

Mathematical Background

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.

Verification & Testing

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.

Experimental Results

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.

Future Improvements

Possible improvements for future updates include:

  • Real radar data integration

Technologies Used

The project was developed using:

Programming Languages

  • Modern C++
  • Python

Software Development

  • Object-Oriented Programming
  • Rule Of Five
  • Smart Pointers
  • Custom Generic Data Structures

Numerical Methods & Optimization

  • 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

Mathematical Concepts

  • Data Assimilation
  • State Estimation
  • White Gaussian Noise
  • Mathematical Modelling

Verification & Testing

  • GoogleTest
  • AddressSanitizer

Tools

  • CMake
  • Git
  • GitHub
  • GitHub Actions
  • Continuous Integration

About

Projects written in C++ and Python. The recently made project is called UAV Tracking which focuses on an object-oriented sensor-based radar system that track moving UAVs by solving numerical estimation problems in least-square sense.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages