.. raw:: html
.. _API:
=========
Functions
=========
The main header `mujoco.h `_ exposes a
large number of functions. However the functions that most users are likely to need are a small fraction.
API function can be classified as:
- **Main entry points**
- :ref:`Parse and compile` an :ref:`mjModel` from XML files and assets.
- :ref:`Main simulation` entry points, including :ref:`mj_step`.
- **Support functions**
- :ref:`Support` functions requiring :ref:`mjModel` and :ref:`mjData`.
- Pipeline :ref:`components`, called from :ref:`mj_step`, :ref:`mj_forward` and :ref:`mj_inverse`.
- :ref:`Sub components` of the simulation pipeline.
- :ref:`Ray casting`.
- :ref:`Printing` of various quantities.
- :ref:`Virtual file system`, used to load assets from memory.
- :ref:`Initialization` of data structures.
- :ref:`Error and memory`.
- :ref:`Miscellaneous` functions.
- **Visualization, Rendering, UI**
- :ref:`Abstract interaction`: mouse control of cameras and perturbations.
- :ref:`Abstract Visualization`.
- :ref:`OpenGL rendering`.
- :ref:`UI framework`.
- **Threads, Plugins, Derivatives**
- :ref:`Derivatives`.
- :ref:`Thread` |-| -related functions.
- :ref:`Plugin` |-| -related functions.
- **Math**
- Aliases for C :ref:`standard math` functions.
- :ref:`Vector math`.
- :ref:`Sparse math`.
- :ref:`Quaternions`.
- :ref:`Pose transformations`.
- :ref:`Matrix decompositions and solvers`.
- **Model editing**
- :ref:`Attachment`.
- :ref:`Tree elements`.
- :ref:`Non-tree elements`.
- :ref:`Assets`.
- :ref:`Find and get utilities`.
- :ref:`Attribute setters`.
- :ref:`Attribute getters`.
- :ref:`Spec utilities`.
- :ref:`Element initialization`.
- :ref:`Element casting`.
.. include:: functions.rst