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

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

.. _sphx_glr_examples_data_collection_xsens_record.py:


Xsens Record
================

This example shows how to record Xsens MTw Awinda via network streaming.

.. GENERATED FROM PYTHON SOURCE LINES 7-17

.. code-block:: default


    import rofunc as rf
    from datetime import datetime

    root_dir = '/home/skylark/Data/xsens_record'
    exp_name = datetime.now().strftime('%Y%m%d_%H%M%S')
    ip = '192.168.13.20'
    port = 9763

    rf.xsens.record(root_dir, exp_name, ip, port)


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

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


.. _sphx_glr_download_examples_data_collection_xsens_record.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_record.py <xsens_record.py>`

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

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


.. only:: html

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

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