Skip to content

Extended Kalman Filter predicting the position of a Bug.

Notifications You must be signed in to change notification settings

srnand/Extended-Kalman-Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extended-Kalman-Filter

Extended Kalman Filter predicting the position of a Bug.

Applied EKF on a simple example of a bug moving at an angle from the sink at a constant velocity.

The state of the System is a vector consisting of 3 elements.

  1. Lateral distance of the bug from the sink.
  2. The angle at which it is moving
  3. The velocity of the bug.

The velocity and the angle is constant, the only parameter changing is the lateral distance of the bug from the sink and the task is to estimate that.

The lateral distance is a function of previous lateral distance, the velocity and the cosine of the angle which in all makes the system non-linear. So we have to use EKF and not KF.

state

next_state

Since the equations are non-linear, we need to calculate Jacobian based on the three equations of the state.

Jacobian

And since the only parameter to be predicted is the lateral distance, the H matrix will be a 1x3 matrix with first value 1 and rest 0s.

As in figure, the blue dot is the bug moving at a constant angle and velocity.
References:

Simple Example of Applying Extended Kalman Filter
Kalman Filter: Predict, Measure, Update, Repeat

About

Extended Kalman Filter predicting the position of a Bug.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages