π For simple intiution Model predictive control uses the system model to do prediction of future states of system for some predicted optimal inputs in prediction horizon, and applys only one input and does the same process again to compansate the unmeasured noise or disturbance in system.
π In this instance our system is unmaned arieal vehicle and it's following the target which is mobile vehicle.
π The cost function that sould be minimize for predicted inputs is made by the distance between UAV and target which is moving.
π This code uses the casadi framework to code NMPC.
β¨ "State predictive model of target" folder of repository has the targets model which feds for the UAV as reference(a moveing reference) and it gives the cost value from the initial point of UAV.
β¨ "NMPC_TT" has the code of NMPC.
NMPC-based UAV 3D Target Tracking In The Presence Of Obstacles and Visibility Constraints