Question concerning the extended kalman filter

AI Thread Summary
The discussion centers on confusion regarding the Jacobian matrix H in the context of the Extended Kalman Filter (EKF) for a vehicle's state vector, which includes position, rotation, and speed. The original poster mistakenly defines the measurement function h as a matrix, leading to a zero Jacobian matrix H, which would render the EKF correction step ineffective. Clarification is provided that h should be treated as a vector-valued function rather than a matrix, specifically h(x, y, φ, v) = (x, y, φ, v). Consequently, the Jacobian should be derived from differentiating this function, not from constants. Understanding this distinction is crucial for the proper implementation of the EKF.
Anonymous123
Messages
1
Reaction score
0
Good day,

i read a lot about the kalman filter and the extended kalman filter, but some things are still not clear to me. E.g. I have one question concerning the jacobian matrix of the measurement matrix h. I want to point out my problem with a concrete example:

A vehicle is represented by the following state vector: x=\begin{pmatrix} x \\ y \\ \varphi \\ v \end{pmatrix} (position, rotation and speed).

The equations of the motion model are the following ones:
<br /> x_x = x_x + x_v \cdot sin(x_\varphi);<br />
<br /> x_y = x_y + x_v \cdot cos(x_\varphi);<br />

x y phi and v can every second be measured with a failure.

To remind Extended Kalman Filter: http://www.embedded-world.eu/fileadmin/user_upload/pdf/batterie2011/Armbruster.pdf (Slide 9)


Question: As visible on the slide 9, I have to calculate the jacobian matrix H for my measurement-function h. The slide points that very well out, in the correction step is H the jacobian matrix and h is my measurement function.

So if I want to consider all elements of the measurement vektor, h would be in my opinion the following matrix:

h = \begin{pmatrix} 1 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 1 \end{pmatrix}

because

z_k = h*x_t = \begin{pmatrix} 1 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 1 \end{pmatrix} * \begin{pmatrix} x_{t,x} \\ x_{t,y} \\ x_{t,\varphi} \\ x_{t,v} \end{pmatrix}

(x_t is the current measurement vector)
Therefore z_k = x_t

But in that case the jacobian matrix J(h)=H becomes

H = \begin{pmatrix} 0 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 0 \end{pmatrix}

And this means, that the whole correction step of the EKF does not work, because the Kalman gain-matrix also becomes a zero matrix (See again slide 9, there are some matrix multiplications where H is used. When H contains just zeros the gain K_K also becomes zero).

So to conclude: I think I haven't understood the meaning of h and how to calculate H. I appreciate any help and apologize for my english, because I am not a native speaker :)
 
Mathematics news on Phys.org
http://www.google.com/url?sa=t&rct=...sg=AFQjCNFjl1YZdkoZZiaJ7-NMEi3vDKnU5Q&cad=rja

Anonymous123 said:
So if I want to consider all elements of the measurement vektor, h would be in my opinion the following matrix:

h = \begin{pmatrix} 1 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; 0 &amp; 1 \end{pmatrix}

In the treatments of the extended Kalman filter that I can read (such as http://www.google.com/url?sa=t&rct=...sg=AFQjCNFjl1YZdkoZZiaJ7-NMEi3vDKnU5Q&cad=rja
), h is a vector valued function, not a matrix. In you example it would be the function h(x,y,\varphi,v) = (x,y,\varphi,v). So the Jacobian of this function is not found by differentiating constants.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...

Similar threads

Replies
4
Views
1K
Replies
1
Views
1K
Replies
7
Views
2K
Replies
14
Views
2K
Back
Top