๐ 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