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

.. only:: html

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

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

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

.. _sphx_glr_examples_simulator_example_xsens_to_human_model.py:


Construct custom human model from Xsens data
=============================================

This example shows how to construct a custom human model (URDF) from Xsens data.

.. GENERATED FROM PYTHON SOURCE LINES 7-24

.. code-block:: default


    from isaacgym import gymutil

    import rofunc as rf

    args = gymutil.parse_arguments()
    args.use_gpu_pipeline = False

    mvnx_path = '/home/ubuntu/Data/xsens_mvnx/2023_05_16_joint_angle_test/010-004.mvnx'
    save_dir = '/home/ubuntu/Data/xsens_mvnx/2023_05_16_joint_angle_test'
    mvnx_file = rf.sim.xsens2urdf(mvnx_path, save_dir, human_mass=7, human_height=1.8)

    # CURI
    human_sim = rf.sim.HumanSim(args, asset_root=save_dir, asset_file='Zhihao.urdf')
    human_sim.init()
    # human_sim.show()
    human_sim.run_demo(mvnx_file)


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

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


.. _sphx_glr_download_examples_simulator_example_xsens_to_human_model.py:

.. only:: html

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




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

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

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

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


.. only:: html

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

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