# Motion Model

Recall that one of steps in Bayes Filter algorithm is to perform a prediction. The prediction is an estimate of the state transition:

$$
p(x\_t|u\_{t-1},x\_{t-1})
$$

How we use the model depends on the filter algorithm. For example, with particle filter, we essentially simulate a physical event and it's a direct application of the motion model. The input is $$u\_{t-1}$$and $$x\_{t-1}$$, and the output is $$x\_t$$. With particle filter and other sampling methods, we don't need to calcualte  $$p(x\_t|u\_{t-1},x\_{t-1})$$. For algorithms that require an explicit calculation, the inputs are $$x\_t$$, $$u\_{t-1}$$, and $$x\_1$$. However, $$u\_{t-1}$$ and $$x\_{t-1}$$are real values while $$x\_t$$is hypothetical.

In the book [Probabilistic Robotics](http://www.probabilistic-robotics.org/), the auther presents two models:

* velocity model
* odometry model

The mathematical derivation starts from assuming the instantenous movement of the robot follows a perfect circular path.

<figure><img src="https://442453138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWs42vVsGF012EH3SD2WG%2Fuploads%2FM69JyBr6fvhyLPrADk3a%2Frobot_motion_velocity_model.png?alt=media&#x26;token=55fe2c33-c429-4d3b-87bd-6801dd30ddea" alt=""><figcaption></figcaption></figure>

TODO

<figure><img src="https://442453138-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWs42vVsGF012EH3SD2WG%2Fuploads%2F5nD0sahO4DgZgoAlogzv%2Frobot_motion_odometry_model.png?alt=media&#x26;token=5ead99d9-be21-4dc2-b9fa-ef8edbe34512" alt="" width="158"><figcaption></figcaption></figure>
