
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "examples/data_collection/xsens_visualize.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_examples_data_collection_xsens_visualize.py>`
        to download the full example code

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_examples_data_collection_xsens_visualize.py:


Xsens Visualize
================

This example shows how to use the skeleton files to visualize the human motion as a gif.

.. GENERATED FROM PYTHON SOURCE LINES 7-16

.. code-block:: default

    import rofunc as rf

    # Visualize a single skeleton directory
    skeleton_path = '../data/RAW_DEMO/xsens/010-004/segment'
    rf.xsens.plot_skeleton(skeleton_path, save_gif=True)

    # Visualize a batch of skeleton directories
    skeleton_dir = '../data/RAW_DEMO/xsens'
    rf.xsens.plot_skeleton_batch(skeleton_dir, save_gif=False)


.. rst-class:: sphx-glr-timing

   **Total running time of the script:** (0 minutes 0.000 seconds)


.. _sphx_glr_download_examples_data_collection_xsens_visualize.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example




    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download Python source code: xsens_visualize.py <xsens_visualize.py>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download Jupyter notebook: xsens_visualize.ipynb <xsens_visualize.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
