.. _pyexample_global_localization:

====================================================
Python example: global_localization.py
====================================================

This example runs a MonteCarlo global localization
algorithm for a robot from a dataset in .rawlog format.
The adaptive particle filter algorithm has two implementations, 
for 2D and 3D poses, or SE(2) or SE(3), respectively.

.. raw:: html

    <iframe width="560" height="315" src="https://www.youtube.com/embed/ZfVUydQIM5E" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
    </iframe>


.. literalinclude:: ../../python-examples/global_localization.py
   :language: python
   :linenos:
