.. _python_examples:

=================
Python examples
=================

The source code for all these Python examples can be found
under `MRPT/python-examples <https://github.com/MRPT/mrpt/tree/develop/python-examples>`_.

See also the `Python API documentation <https://mrpt.github.io/pymrpt-docs/mrpt.pymrpt.mrpt.html>`_.

C++ examples are `here <examples.html>`_.


.. toctree::
  :maxdepth: 1
  :hidden:

  pymrpt_example_global_localization.rst
  pymrpt_example_hwdriver_tao_imu_usb.rst
  pymrpt_example_lines-3d-geometry-example.rst
  pymrpt_example_matrices.rst
  pymrpt_example_opengl-demo-gui.rst
  pymrpt_example_rbpf_slam.rst
  pymrpt_example_ros-poses-convert.rst
  pymrpt_example_se2-poses-example.rst
  pymrpt_example_se3-poses-example.rst


.. grid:: 2
    :gutter: 1

    .. grid-item-card:: Particle filter localization

        .. image:: https://i3.ytimg.com/vi/ZfVUydQIM5E/hqdefault.jpg
           :target: pymrpt_example_global_localization.html
           :width: 200px

    .. grid-item-card:: SLAM: classic grid mapping

        .. image:: https://i3.ytimg.com/vi/XiKTWNOQlcU/hqdefault.jpg
           :target: pymrpt_example_rbpf_slam.html
           :width: 200px

.. grid:: 2
    :gutter: 1

    .. grid-item-card:: Reading USB TaoIMU sensor

        .. image:: https://i3.ytimg.com/vi/qaaP9BmZYmo/hqdefault.jpg
           :target: pymrpt_example_hwdriver_tao_imu_usb.html
           :width: 200px

    .. grid-item-card:: OpenGL

        .. image:: https://mrpt.github.io/imgs/screenshot_pymrpt_example_opengl1.png
           :target: pymrpt_example_opengl-demo-gui.html
           :width: 200px

.. grid:: 2
    :gutter: 1

    .. grid-item-card:: Geometry

        :ref:`pyexample_lines-3d-geometry-example`

    .. grid-item-card:: Geometry

        :ref:`pyexample_se2-poses-example`

.. grid:: 2
    :gutter: 1

    .. grid-item-card:: Geometry

        :ref:`pyexample_se3-poses-example`

    .. grid-item-card:: Matrices and Algebra

        :ref:`pyexample_matrices`

