doc/APIreference/APIfunctions.rst
.. raw:: html
<div id="fetchlines"/>
.. _API:
.. tip:: Clicking on a function name below will take you to the source implementation in the GitHub repository.
The main header mujoco.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/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
Parse and compile<Parseandcompile> an :ref:mjModel from XML files and assets.Main simulation<Mainsimulation> entry points, including :ref:mj_step.Support functions
Support<Support> functions requiring :ref:mjModel and :ref:mjData.components<Components>, called from :ref:mj_step, :ref:mj_forward and :ref:mj_inverse.Sub components<Subcomponents> of the simulation pipeline.Ray casting<Raycollisions>.Printing<Printing> of various quantities.Virtual file system<Virtualfilesystem>, used to load assets from memory.Asset cache<Assetcache>, used to speed up model compilation.Resources<Resources>, interfacing with resource providers to load assets.Initialization<Initialization> of data structures.Error and memory<Errorandmemory>.Miscellaneous<Miscellaneous> functions.Visualization, Rendering, UI
Abstract interaction<Interaction>: mouse control of cameras and perturbations.Abstract Visualization<Visualization-api>.OpenGL rendering<OpenGLrendering>.UI framework<UIframework>.Threads, Plugins, Derivatives
Derivatives<Derivatives-api>.Signed Distance Functions<Signeddistancefunction>.Thread<Thread> |-| -related functions.Plugin<Plugins-api> |-| -related functions.Math
standard math<Standardmath> functions.Vector math<Vectormath>.Sparse math<Sparsemath>.Quaternions<Quaternions>.Pose transformations<Poses>.Matrix decompositions and solvers<Decompositions>.Model editing
Attachment<Attachment>.Tree elements<AddTreeElements>.Non-tree elements<AddNonTreeElements>.Set actuator parameters<Setactuatorparameters>.Assets<AddAssets>.Find and get utilities<FindAndGetUtilities>.Attribute setters<AttributeSetters>.Attribute getters<AttributeGetters>.Spec utilities<SpecUtilities>.Element initialization<ElementInitialization>.Element casting<ElementCasting>... include:: functions.rst