Giter Site home page Giter Site logo

devsonni / mpc-implementation Goto Github PK

View Code? Open in Web Editor NEW
48.0 1.0 11.0 1.87 MB

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. ๐ŸŽ๏ธ โœˆ๏ธ

MATLAB 38.74% Python 50.90% C++ 10.36%
model-predictive-control model model-predictive-controller matlab matlab-simulation casadi control-system control-systems control-system-engineering dynamics

mpc-implementation's Introduction

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.

mpc-implementation's People

Contributors

devsonni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.