
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "examples/data_collection/xsens_export.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_export.py>`
        to download the full example code

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

.. _sphx_glr_examples_data_collection_xsens_export.py:


Xsens Export
================

This example shows how to export Xsens MVNX file to multiple skeleton .npy files.

.. GENERATED FROM PYTHON SOURCE LINES 7-16

.. code-block:: default

    import rofunc as rf

    # Export a single mvnx file to skeleton .npy files
    mvnx_file = '../data/RAW_DEMO/xsens/010-003.mvnx'
    rf.xsens.export(mvnx_file, output_type='segment')

    # Export a batch of mvnx files in a directory
    mvnx_dir = '../data/RAW_DEMO/xsens'
    rf.xsens.export_batch(mvnx_dir)


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

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


.. _sphx_glr_download_examples_data_collection_xsens_export.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_export.py <xsens_export.py>`

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

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


.. only:: html

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

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