WaterlooRobotics / mobilerobotics

Matlab and Robot code for MTE 544: Autonomous Mobile Robotics at the University of Waterloo
68 stars 38 forks source link

EKF #7

Closed stevenwaslander closed 6 years ago

stevenwaslander commented 8 years ago

The EKF should be a function that uses motion and measurement models and their derivatives. Needs to work with RANSAC, SLAM, Localization.

ghost commented 8 years ago

Hi Brent,

I am working on the EKF localization and just wanted to confirm how I should incorporate your work. For EKF localization I see the following: -IN: Function handle for motion model, prior state prediction, prior co variance matrix, function handle for measurement model, Q, and R disturbance models -OUT: updated state, updated co variance matrix

Maybe something like this http://www.mathworks.com/matlabcentral/fileexchange/18189-learning-the-extended-kalman-filter

Let me know what you think.

bjkomer commented 8 years ago

I haven't finished it yet, but that sounds a lot like the kind of inputs and outputs I'm expecting to make.

bjkomer commented 8 years ago

@rhyse-me780 I've finished the function now, you can see how it works on my branch and/or pull request. The main difference in inputs from what you mentioned above is that is also takes in a measurement as well as function handles for both the linearized and nonlinearized models (because the mean can go through the nonlinear one).

Let me know if there is anything that needs to get changed to work with your code.

stevenwaslander commented 8 years ago

Nice work guys!

ghost commented 8 years ago

@bjkomer I've begun integrating your code and have noticed one change I would recommend. Both the non-linear and linear motion model have inputs u(t) as well as previous states.

stevenwaslander commented 8 years ago

Agreed!

bjkomer commented 8 years ago

Good call. The example I was working with didn't use u so I forgot about it. I've added it now, and also allowed the sensor models to use it, since technically they are allowed to as well, even though it is rare.