Kalman filters are used to optimally estimate the variables required when they can't be measured directly.
Approach:
There are 2 steps:
- The prediction step and
- The Correction step
In the prediction step, we implement the main filter loop, defining the prediction step of the EKF using the motion model provided.
In the correction step, For each landmark measurement received at a given timestep k. Here we firstly compute the measurement model Jacobians at
xk, then compute the Kalman Gain, then correct the predicted state and correct the covariance.
Results: