# 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="/files/fLnUycUNnGyLzk967C9f" alt=""><figcaption></figcaption></figure>

TODO

<figure><img src="/files/EyQvEiIcTKJWuhKuRoin" alt="" width="158"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.learnros2.com/probabilistic-robotics/motion-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
