Back to search

State University of New York at Buffalo

Development of Hardware in the Loop Simulation Environment for Testing and AI-based Construction of UAV Control Architectures

Abstract

dc:description.abstract

This thesis introduces a simulation-based hardware-in-the-loop framework (HITL) for Reinforcement Learning (RL) of controllers (from scratch) in a quadcopter unmanned aerial vehicle (UAV). Two different controllers design cases are explored, velocity control and multi-level control (that replaces a cascaded native stack involving attitude, attitude rate, and motor control), both of which are targeted at the autonomous takeoff operation of the UAV. An open-source custom-made quadcopter and a digital twin created in Microsoft AirSim environment for hardware-in-the-loop simulations are established as the learning platform. Two controller learning tasks are considered: 1) takeoff and climb, 2) parabolic takeoff-and-land trajectory. Both of these are modeled as a Markov Decision Process, with the state variables including angular velocities and current position (estimated from IMU and GPS data), elapsed time, and deviation from the goal position. The Advantage actor-critic or A2C algorithm is used for learning by interfacing the simulation environment (via OpenAI Gym) with the stable-baseline implementation. The learned velocity controller and a multi-level controller (embodied by MLP neural networks) achieved both tasks with performances close to that of the conventional PID control stack. The trained neuro velocity-control was successfully transitioned into an onboard executable control stack, with physical experimentation of the learned velocity controller demonstrating stable takeoff and climb (with minor delay and drift) despite changed target altitude and unforeseen actuator limiters. The thesis also explores Functional Mockup Unit (FMU) based on various controller implementations on a quadcopter UAV. The controllers were designed to work on a simulated and real hardware platform. This approach was primarily tested using HITL simulation techniques using PX4. We designed and conducted a series of control experiments to explore the effectiveness of the integrated FMU controller and examine the efficiency of our integrated solution. To demonstrate our approach, an FMU-architecture PI, PID, and LimPID controllers have been tested to achieve off-board position and yaw angle control of the PX4 quadcopter in a simulated ROS based gazebo environment. A design of an experiment is performed to evaluate the effects of the FMU-based controller on the behaviors of the robot platform.

Degree

thesis:*
Grantor dc:publisher
State University of New York at Buffalo
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kalloor Antony, Gerald
Contributors dc:contributor
  • Chowdhury, Souma
  • Mechanical and Aerospace Engineering

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
http://hdl.handle.net/10477/88142

Chain of custody

source
Harvested from
Buffalo
Base URL
ubir.buffalo.edu/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Kalloor Antony, Gerald. Development of Hardware in the Loop Simulation Environment for Testing and AI-based Construction of UAV Control Architectures. State University of New York at Buffalo, 2022. http://hdl.handle.net/10477/88142