Skip to content

Implementation of MPC on a Quadrotor to track a moving subject while avoiding a moving obstacle

Notifications You must be signed in to change notification settings

shivamtrip/mpc-drone-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MPC with a Quadrotor to track a moving subject while avoiding a moving obstacle

In this project, I implemented Model Predictive Control to enable a drone (BLUE) to track a moving subject (YELLOW) while avoiding a moving obstacle (RED) using Potential Field Theory. Additional criteria involved tracking the subject from a specified relative angle while also maintaining a desired range from subject.

Link to implementation: https://colab.research.google.com/drive/11OneVFQIDeRMdVRs3Kff1fRPsFj_Q7Tq#scrollTo=-dnaeE8jFxXo

My approach to solving this task:

  1. First, I predict the subject and obstacle trajectories for a fixed horizon by assuming that they will both travel at a constant velocity throughout the horizon.
  2. Using the predicted trajectories of the subject and the obstacle, I then generate a trajectory for the drone. This trajectory takes into account the drone's angle from the subject, the drone's range from the subject and the drone's distance from obstacles.
  3. Finally, I use an MPC controller to find the optimal acceleration inputs in order for the drone to track the generated trajectory. I use the drone's acceleration limits and double integrator dynamics as constraints.

About

Implementation of MPC on a Quadrotor to track a moving subject while avoiding a moving obstacle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published