Unable to compute kalman filter innovation (measurement residuals) in the new sensor fusion and tracking toolbox

2 views (last 30 days)
I have recently installed the sensor fusion and tracking toolbox. Some of the IMU and GPS fusion examples are useful for my application. However there does not seem to be a straightforward method of computing EKF measurement residuals, or in general, accessing the process model and measurement models. are the underlying models not publicly accesible?

Accepted Answer

Brian Fanous
Brian Fanous on 3 Oct 2018
The code which computes the innovations and Kalman gain should be visible to you, but are not available through a public API right now. You can inspect the source code to see these variables.
Most of the code you are looking for is in the fusion.internal.IMUBasicEKF and fusion.internal.MARGGPSFuserBase class. These are internal classes so they may change in a future release. For R2018b the computations of the Kalman gain and innovations occurs in the correctEqn() method on line 72 of the fusion.internal.IMUBasicEKF class.
Can you give us an idea of what your application is and why you’d like to see this? That might give us an idea of how we can better support this in future releases.
  1 Comment
Suraj Bijjahalli
Suraj Bijjahalli on 6 Oct 2018
Thank you very much. I found what i needed in the MARGGPSFuser class. I needed to compute the innovations to set up a sensor fault monitoring routine. Would be useful if the API was made public.

Sign in to comment.

More Answers (1)

Honglei Chen
Honglei Chen on 2 Oct 2018
Are you using trakingEKF?
There is a residual method you can use
HTH
  1 Comment
Suraj Bijjahalli
Suraj Bijjahalli on 3 Oct 2018
Thank you for your answer Honglei. Unfortunately, I am using the insfilter (https://au.mathworks.com/help/fusion/ref/marggpsfuser.html)
Is there a way of extracting measurement residuals and the Kalman gain computed at each update cycle for this filter?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!