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