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

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

.. _sphx_glr_examples_simulator_example_LLM_robotics.py:


LLM control a robot with pre-defined low-level motion API
============================================================

This example allows you to control a robot with LLM and pre-defined low-level motion API.

.. GENERATED FROM PYTHON SOURCE LINES 7-25

.. code-block:: default


    import isaacgym
    import numpy as np

    import rofunc as rf

    # traj_l = np.load('../data/LQT_LQR/taichi_1l.npy')
    # traj_l[:, 0] += 0.2
    # traj_l[:, 1] = -traj_l[:, 1]
    # traj_l[:, 3:] = [1, 0, 0, 0]
    # # target_pose = traj_l[10]
    # traj_l = traj_l[::20]

    args = rf.config.get_sim_config("CURI")
    CURIsim = rf.sim.CURISim(args)
    # CURIsim.run_hand_reach_target_pose(target_pose=[traj_l],
    #                                    attracted_hand=["panda_left_hand"])
    CURIsim.run_with_text_commands()


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

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


.. _sphx_glr_download_examples_simulator_example_LLM_robotics.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_LLM_robotics.py <example_LLM_robotics.py>`

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

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


.. only:: html

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

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