Closed brunoeducsantos closed 3 years ago
I don't understand your code. The kalman filter class maintains its own x, P, Q, etc. You are storing them in your own class. And then when you call predict and update you are passing in entirely wrong values. For example, you pass z into predict Predict does not take a measurement. Read the docstrings for predict and update, you'll see not only that you are passing in the wrong things, but that what you are trying to do isn't possible. You can pass the state and covariance into these functions, because they are internally held.
Please read the header of kalman_filter.py. There are two examples of nearly what you are trying to do. The first one uses the KalmanFilter class, and the second one uses the stand alone functions that require you to maintain the states. I kind of think you were attempting the latter, but for some reason trying to use the KalmanFilter class.
Thanks @rlabbe . Indeed, I need an Extended version of Kalman Filter and save the previous state. I need to correct my motion equations to include relation between [x,y,theta].
Hi, I integrate this package as follows:
And after use it in a loop with data as follows:
And I am getting the following error:
What is my issue?
Regards, Bruno