Skip to content

This repository has the code for the nonlinear model predictive controller for target tracking problems with the use of Casadi framework and Matlab simulation environment. 🏎️ ✈️

Notifications You must be signed in to change notification settings

devsonni/MPC-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMPC Implementation πŸ•ΉοΈ

Model Predictive Control (MPC) uses a system model to predict future states based on optimal predicted inputs within a prediction horizon. The control applies only one input, then repeats the process to compensate for unmeasured noise or disturbances.

In this implementation, the system is an unmanned aerial vehicle (UAV) tracking a mobile vehicle. The cost function, minimized for predicted inputs, is derived from the distance between the UAV and the moving target. This code leverages the CasADi framework for NMPC.

Repository Structure

This repository contains three language implementations: Python, C++, and MATLAB. The MATLAB implementation includes additional models such as state prediction of the target and dynamic obstacle avoidance modules.

  • "State predictive model of target": Contains the target's model, serving as a moving reference for the UAV and providing the initial cost value.
  • "NMPC_TT": Contains the NMPC code.

UAV Tracking Target Illustration ✈️

UAV without Gimbal


UAV with 3-DoF Gimbal


Without Obstacle Avoidance πŸ’πŸ—οΈ

With Obstacle Avoidance πŸ’πŸ—οΈ

Source Code Reference πŸ”—

This code is the source code of the paper: NMPC-based UAV 3D Target Tracking In The Presence Of Obstacles and Visibility Constraints.

About

This repository has the code for the nonlinear model predictive controller for target tracking problems with the use of Casadi framework and Matlab simulation environment. 🏎️ ✈️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published