How to Convert State Equations to a State Transition Matrix for a Kalman Filter?

AI Thread Summary
The discussion focuses on converting state equations to a state transition matrix for a Kalman filter, specifically for a robotic platform with a state vector that includes position, velocity, and acceleration. The original poster expresses confusion about deriving the state transition matrix from their differential equations, particularly regarding the use of trigonometric functions and the treatment of acceleration terms. Participants suggest that linearization around a specific angle may be necessary and recommend posting the entire problem for better assistance. The poster also considers creating a Jacobian matrix for the state transition matrix to address their concerns about the acceleration term. Overall, the conversation emphasizes the need for clarity in modeling and understanding the dynamics involved in the system.
docsxp
Messages
10
Reaction score
0
I have my state vector containing
$$[X, Y, v_x, v_y, \theta, r, a_x, a_y, b_{\theta}]^T$$

and I have them related by
$$dX = v_x cos \theta - v_y sin \theta\\
dY = v_x sin \theta + v_y cos \theta\\
dv_x = a_x\\
dv_y = a_y\\
d\theta = r\\
dr = 0\\
da_x = 0\\
da_y = 0\\
db_\theta = 0\\
$$

Now I'm actually lost in how to go about in converting them to my state transition matrix representation. Can anyone chime in and help me along please? Thank you.
 
Engineering news on Phys.org
in the Kalman filter, your state progress to the next iteration. how do you define that in terms of your differential quantities ? For instance, your state progressing according to:

\dot{X} = v_x cos(\theta) - v_y sin(theta) ?

I don't quite understand how you have come to the differential quantities.
 
I don't see how you can to do it with the cosine and sine functions there. You'll have to linearize about some theta. Plus, I'm backing @rrdrr8556 in that I also don't understand how you're coming up with those as the differential equations, assuming dX and dY is just bad shorthand for the differential equations of xdot and ydot.

Maybe if you post your entire problem we can help you figure out a proper model for it.
 
timthereaper said:
I don't see how you can to do it with the cosine and sine functions there. You'll have to linearize about some theta. Plus, I'm backing @rrdrr8556 in that I also don't understand how you're coming up with those as the differential equations, assuming dX and dY is just bad shorthand for the differential equations of xdot and ydot.

Maybe if you post your entire problem we can help you figure out a proper model for it.

I am sorry, I should have asked the question in a proper manner. I will outline my system and derivation here.

The system is a robotic platform with a high grade 9-axis (non FOG) IMU and a velocity sensor. The system has 6-dof, but I want to assume 4-dof for simplicity as well as mechanical correction on certain axes.

Hence, my state vector, $$[X, Y, v_x, v_y, a_x, a_y, \omega, \psi, b_\psi]$$ where omega is the turn rate in z-axis (rad/s) and psi is true heading wrt true north. b is the bias (true-gyro). My equations of motion are $$X = X_{0X} + v_x t + \frac{1}{2}a_x t^2$$ $$v_x = v_{0x} + a_x t$$ $$\psi = \psi_0 + \omega_z t$$ and so on for other axes.

Hence my state transition matrix that i came up with for this is $$\left[ \begin{array}{cccc} 1 & 0 & cos\psi & -sin\psi & 0.5(dt)^2 & 0 & 0 & 0 & 0\\
0 & 1 & sin\psi & cos\psi & 0 & 0.5(dt)^2 & 0 & 0 & 0\\
0 & 0 & 1 & 0 & 1 & 0 & 0 & 0 & 0\\
0 & 0 & 0 & 1 & 0 & 1 & 0 & 0 & 0\\
0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0\\
0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0\\
0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 0\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0\\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1
\end{array} \right]$$

I don't know how to deal with the acceleration term. Any ideas?
 
I think this is not how it should be done, but I should create a Jacobian matrix for F.
 
Can anyone point me in the right direction?
 
Thread 'I need a concave mirror with a focal length length of 150 feet'
I need to cut down a 3 year old dead tree from top down so tree causes no damage with small pieces falling. I need a mirror with a focal length of 150 ft. 12" diameter to 36" diameter will work good but I can't think of any easy way to build it. Nothing like this for sale on Ebay. I have a 30" Fresnel lens that I use to burn stumps it works great. Tree service wants $2000.
Hi all, i have some questions about the tesla turbine: is a tesla turbine more efficient than a steam engine or a stirling engine ? about the discs of the tesla turbine warping because of the high speed rotations; does running the engine on a lower speed solve that or will the discs warp anyway after time ? what is the difference in efficiency between the tesla turbine running at high speed and running it at a lower speed ( as fast as possible but low enough to not warp de discs) and: i...
Back
Top