State-vector for distance measurement between two autonomous cars - Robotics Stack Exchange most recent 30 from robotics.stackexchange.com 2019-08-21T01:01:07Z https://robotics.stackexchange.com/feeds/question/17997 http://www.creativecommons.org/licenses/by-sa/3.0/rdf https://robotics.stackexchange.com/q/17997 0 State-vector for distance measurement between two autonomous cars user503842 https://robotics.stackexchange.com/users/21966 2019-01-13T14:42:32Z 2019-06-15T11:02:05Z <p>I hope someone can help me: Given two autonomously driving cars, I want to make sure they keep a constant distance to each other. For this purpose, I want to design a Kalmanfilter. Typically, the first step for designing such a filter is to set up a state vector. I am given two robots already. They have an ultrasonic-sensor to measure distance and an encoder to measure velocity. However, what is not clear to me is: What would be the proper state-vector for my Kalmanfilter equations? </p> <p>I have troubles understanding this, because, from the tutorials I have read, I got the impression a Kalmanfilter always combines at least two Gaussian distributed measurements. In order to compute a new distance for example, I would have to compute ... I don't know, maybe this: <a href="https://i.stack.imgur.com/z1BFk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z1BFk.jpg" alt="enter image description here"></a></p> <p>Does somebody know?</p> https://robotics.stackexchange.com/questions/17997/-/18002#18002 0 Answer by Tharindu Suraj for State-vector for distance measurement between two autonomous cars Tharindu Suraj https://robotics.stackexchange.com/users/21353 2019-01-14T08:49:12Z 2019-01-14T08:49:12Z <p>Kalman filter can be used to estimate the position of each car independently since there is no communication between two cars. In that case the most suitable parameters for the state vector is [Px Py <span class="math-container">$\theta$</span>]. <span class="math-container">$\theta$</span> represents the heading direction. You can also include the X and Y velocities according to your requirement. In order to maintain a constant distance you can get the euclidean distance between the X and Y states of the two kalman filters.</p> <p>I'm not sure what distance you are trying measure using the ultrasonic sensor.</p> https://robotics.stackexchange.com/questions/17997/-/18017#18017 0 Answer by fibonatic for State-vector for distance measurement between two autonomous cars fibonatic https://robotics.stackexchange.com/users/1487 2019-01-16T10:58:55Z 2019-01-16T10:58:55Z <p>A Kalman filter can combine multiple sensors, but can also recover information of other states you do not measure directly. For example if you only measure the position the Kalman filter can also obtain a good estimate of the velocity. A naive way for this would be to differentiate the position. However, when the position is subjected to noise, differentiating it will amplify this noise a lot. In such a case a Kalman filter would be able to get a much better estimate of the full state. It does this by trusting more on the model you have of your system.</p> <p>I do have to note that in order for the Kalman filter to be able to estimate the full state does require that the sensors you have make your system <a href="https://en.wikipedia.org/wiki/Observability" rel="nofollow noreferrer">observable</a>.</p>