Skip to content

Hlpred/Kalman

Repository files navigation

Extended Kalman Filter for VTOL Rocket Hopper

Project Description

The goal of this project was to design a state estimation algorihtim for a rocket with inertial and angles-only optical sensors. In other words, how can unit vectors corresponding to the locations of fixed points on the ground be effectivly incorporated into state estimates. One of the challenges with this problem is that the attitude dynamics and camera measurements are nonlinear. The attitude dynamics could be linearized around the rocket up position, however, there is no such simplification for the camera measurments since it is assumed that the rocket has the potential to move significantly along all three axes. Therefore, the extended Kalman Filter (or EKF) was chosen due to its ability to handle nonlinear system dynamics and measurment models. The EKF works by using taking the Jacobian of the system dynamics and measurment models at every time step in order to find matricies that can be used in the original Kalman Filter equations. Essentially, this linearizes the system about its current state. Since the state vector chosen for this project is 21 dimensional, the nonlinear equations were written as symbolic functions so that MATLAB could compute their Jacobians.

Another challenge associated with this project was that the sensor measurments available might not be the same at every time step (either because images can not be taken that quickly or becaues it would be impractical to process that many). Additinoally, the set of points that are recognized by the computer vision (CV) system may change from one time step to the next even if the same points are still visible to the cameras. All of this means that the EKF needs to dynamically adjust the size of its matracies to fit the dimensions of the measurment data. In practice, this means computing the full matracies and ignoring specific rows and columns corresponding to the measuremnts that are not currently available.

The EKF algoirhitm designed for this project was compared to dead reckoning of the inertial measurments for several different rocket trajectories and sensor noise / bias values. It was found that an EKF is most beneficial when the inertial measurments have large uncertianties. However, an EKF may be difficult to implement in practice due to its high computational requirments and the fact that the noise values (especially the process noise) values are often not well understood for real world systems.

Instructions

Run the setup.m file. This will configure the reference points on the ground and open the simulation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages