# ExMujoco v0.2.3 - Table of Contents

> MuJoCo physics from Elixir: models, data, the state and every field of them, through a compile-time generated Fine NIF. PyTorch-free, Python-free.

## Pages

- [ExMujoco](readme.md)
- [The plan](plan.md)
- [Building](building.md)
- [What is bound](coverage.md)
- [Working on the package](development.md)

## Modules

- Physics
  - [ExMujoco](ExMujoco.md): MuJoCo, from Elixir.
  - [ExMujoco.Data](ExMujoco.Data.md): The fields of `mjData`, read one at a time.
  - [ExMujoco.Model](ExMujoco.Model.md): The fields of `mjModel`, read one at a time.
  - [ExMujoco.Tensor](ExMujoco.Tensor.md): A field of an `mjModel` or `mjData`, as a value: the elements, their type, and
the shape MuJoCo declared them with.

- Pictures
  - [ExMujoco.Renderer](ExMujoco.Renderer.md): Offscreen rendering: the images a scene has, through a camera in it.

- The C API
  - [ExMujoco.Api](ExMujoco.Api.md): MuJoCo's own functions, bound one for one, under the names MuJoCo gives
them.

- Types
  - [ExMujoco.Types.Actuator](ExMujoco.Types.Actuator.md): `mjtActuator` — actuator element, which owns its shortcut parameters. From MuJoCo's headers, as numbers. All 12 values carry a number in the header.
  - [ExMujoco.Types.AlignFree](ExMujoco.Types.AlignFree.md): `mjtAlignFree` — whether to align free joints with the inertial frame. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Bias](ExMujoco.Types.Bias.md): `mjtBias` — type of actuator bias. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.
  - [ExMujoco.Types.Builtin](ExMujoco.Types.Builtin.md): `mjtBuiltin` — type of built-in procedural texture. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.Button](ExMujoco.Types.Button.md): `mjtButton` — mouse button. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.CTimer](ExMujoco.Types.CTimer.md): `mjtCTimer` — compiler timing categories. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.
  - [ExMujoco.Types.CamLight](ExMujoco.Types.CamLight.md): `mjtCamLight` — tracking mode for camera and light. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.CamOutBit](ExMujoco.Types.CamOutBit.md): `mjtCamOutBit` — camera output type bitflags. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.
  - [ExMujoco.Types.Camera](ExMujoco.Types.Camera.md): `mjtCamera_` — abstract camera type. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.CatBit](ExMujoco.Types.CatBit.md): `mjtCatBit_` — bitflags for mjvGeom category. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.ColorSpace](ExMujoco.Types.ColorSpace.md): `mjtColorSpace` — type of color space encoding. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.ConDataField](ExMujoco.Types.ConDataField.md): `mjtConDataField` — data fields returned by contact sensors. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.
  - [ExMujoco.Types.Cone](ExMujoco.Types.Cone.md): `mjtCone` — type of friction cone. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.Conflict](ExMujoco.Types.Conflict.md): `mjtConflict` — conflict resolution for attach. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Constraint](ExMujoco.Types.Constraint.md): `mjtConstraint` — type of constraint. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.ConstraintState](ExMujoco.Types.ConstraintState.md): `mjtConstraintState` — constraint state. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.CtrlChart](ExMujoco.Types.CtrlChart.md): `mjtCtrlChart` — so3 input signature (actuator_ctrlspec): orientation chart. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.CtrlInput](ExMujoco.Types.CtrlInput.md): `mjtCtrlInput` — input signature (actuator_ctrlspec): present/declared inputs. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.
  - [ExMujoco.Types.DataType](ExMujoco.Types.DataType.md): `mjtDataType` — data type for sensors. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.DepthMap](ExMujoco.Types.DepthMap.md): `mjtDepthMap_` — depth mapping for `mjr_readPixels`. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.DisableBit](ExMujoco.Types.DisableBit.md): `mjtDisableBit` — disable default feature bitflags. From MuJoCo's headers, as numbers. All 21 values carry a number in the header.
  - [ExMujoco.Types.Dyn](ExMujoco.Types.Dyn.md): `mjtDyn` — type of actuator dynamics. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.Embed](ExMujoco.Types.Embed.md): `mjtEmbed` — whether an asset's payload is in the model. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.EnableBit](ExMujoco.Types.EnableBit.md): `mjtEnableBit` — enable optional feature bitflags. From MuJoCo's headers, as numbers. All 9 values carry a number in the header.
  - [ExMujoco.Types.Eq](ExMujoco.Types.Eq.md): `mjtEq` — type of equality constraint. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.Event](ExMujoco.Types.Event.md): `mjtEvent` — mouse and keyboard event type. From MuJoCo's headers, as numbers. All 9 values carry a number in the header.
  - [ExMujoco.Types.FlexSection](ExMujoco.Types.FlexSection.md): `mjtFlexSection` — cross-section of 1D flex elasticity. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.FlexSelf](ExMujoco.Types.FlexSelf.md): `mjtFlexSelf` — mode for flex selfcollide. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Font](ExMujoco.Types.Font.md): `mjtFont_` — font type, used at each text operation. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.FontScale](ExMujoco.Types.FontScale.md): `mjtFontScale_` — font scale, used at context creation. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.
  - [ExMujoco.Types.Frame](ExMujoco.Types.Frame.md): `mjtFrame_` — frame visualization. From MuJoCo's headers, as numbers. All 9 values carry a number in the header.
  - [ExMujoco.Types.Framebuffer](ExMujoco.Types.Framebuffer.md): `mjtFramebuffer_` — OpenGL framebuffer option. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.Gain](ExMujoco.Types.Gain.md): `mjtGain` — type of actuator gain. From MuJoCo's headers, as numbers. All 7 values carry a number in the header.
  - [ExMujoco.Types.Geom](ExMujoco.Types.Geom.md): `mjtGeom` — type of geometric shape. From MuJoCo's headers, as numbers. All 20 values carry a number in the header.
  - [ExMujoco.Types.GeomInertia](ExMujoco.Types.GeomInertia.md): `mjtGeomInertia` — type of inertia inference. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.GridPos](ExMujoco.Types.GridPos.md): `mjtGridPos_` — grid position for overlay. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.InertiaFromGeom](ExMujoco.Types.InertiaFromGeom.md): `mjtInertiaFromGeom` — whether to infer body inertias from child geoms. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Integrator](ExMujoco.Types.Integrator.md): `mjtIntegrator` — integrator mode. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Item](ExMujoco.Types.Item.md): `mjtItem` — UI item type. From MuJoCo's headers, as numbers. All 17 values carry a number in the header.
  - [ExMujoco.Types.Jacobian](ExMujoco.Types.Jacobian.md): `mjtJacobian` — type of constraint Jacobian. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Joint](ExMujoco.Types.Joint.md): `mjtJoint` — type of degree of freedom. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.LRMode](ExMujoco.Types.LRMode.md): `mjtLRMode` — mode for actuator length range computation. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.Label](ExMujoco.Types.Label.md): `mjtLabel_` — object labeling. From MuJoCo's headers, as numbers. All 18 values carry a number in the header.
  - [ExMujoco.Types.LightType](ExMujoco.Types.LightType.md): `mjtLightType` — type of light. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.Limited](ExMujoco.Types.Limited.md): `mjtLimited` — type of limit specification. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.LogLevel](ExMujoco.Types.LogLevel.md): `mjtLogLevel` — log message severity. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.LogTopic](ExMujoco.Types.LogTopic.md): `mjtLogTopic` — log topic identifiers. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Mark](ExMujoco.Types.Mark.md): `mjtMark` — mark type for procedural textures. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.MeshBuiltin](ExMujoco.Types.MeshBuiltin.md): `mjtMeshBuiltin` — type of built-in procedural mesh. From MuJoCo's headers, as numbers. All 14 values carry a number in the header.
  - [ExMujoco.Types.MeshInertia](ExMujoco.Types.MeshInertia.md): `mjtMeshInertia` — type of mesh inertia. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.MjrIndexType](ExMujoco.Types.MjrIndexType.md): `mjrIndexType_` — data type of index buffer data. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.MjrMeshPrimitiveType](ExMujoco.Types.MjrMeshPrimitiveType.md): `mjrMeshPrimitiveType_` — type of mesh primitive. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.MjrPixelFormat](ExMujoco.Types.MjrPixelFormat.md): `mjrPixelFormat_` — pixel format for textures. From MuJoCo's headers, as numbers. All 7 values carry a number in the header.
  - [ExMujoco.Types.MjrVertexAttributeType](ExMujoco.Types.MjrVertexAttributeType.md): `mjrVertexAttributeType_` — data format of a vertex attribute. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.MjrVertexAttributeUsage](ExMujoco.Types.MjrVertexAttributeUsage.md): `mjrVertexAttributeUsage_` — usage/purpose of a vertex attribute. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Mouse](ExMujoco.Types.Mouse.md): `mjtMouse_` — mouse interaction mode. From MuJoCo's headers, as numbers. All 10 values carry a number in the header.
  - [ExMujoco.Types.Obj](ExMujoco.Types.Obj.md): `mjtObj` — type of MujoCo object. From MuJoCo's headers, as numbers. All 30 values carry a number in the header.
  - [ExMujoco.Types.Orientation](ExMujoco.Types.Orientation.md): `mjtOrientation` — type of orientation specifier. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Passthrough](ExMujoco.Types.Passthrough.md): `mjtPassthrough` — which assets the compiler leaves by reference (bitmask). From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.PertBit](ExMujoco.Types.PertBit.md): `mjtPertBit_` — mouse perturbations. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.PluginCapabilityBit](ExMujoco.Types.PluginCapabilityBit.md): `mjtPluginCapabilityBit_`. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.Projection](ExMujoco.Types.Projection.md): `mjtProjection` — type of camera projection. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.RayDataField](ExMujoco.Types.RayDataField.md): `mjtRayDataField` — data fields returned by rangefinder sensors. From MuJoCo's headers, as numbers. All 7 values carry a number in the header.
  - [ExMujoco.Types.RndFlag](ExMujoco.Types.RndFlag.md): `mjtRndFlag_` — flags enabling rendering effects. From MuJoCo's headers, as numbers. All 13 values carry a number in the header.
  - [ExMujoco.Types.SDFType](ExMujoco.Types.SDFType.md): `mjtSDFType` — signed distance function (SDF) type. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.SameFrame](ExMujoco.Types.SameFrame.md): `mjtSameFrame` — frame alignment of bodies with their children. From MuJoCo's headers, as numbers. All 5 values carry a number in the header.
  - [ExMujoco.Types.Scaling](ExMujoco.Types.Scaling.md): `mjtScaling` — physical policy of a frame's scale. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.Section](ExMujoco.Types.Section.md): `mjtSection` — UI section state. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Sensor](ExMujoco.Types.Sensor.md): `mjtSensor` — type of sensor. From MuJoCo's headers, as numbers. All 49 values carry a number in the header.
  - [ExMujoco.Types.SleepPolicy](ExMujoco.Types.SleepPolicy.md): `mjtSleepPolicy` — per-tree sleep policy. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.
  - [ExMujoco.Types.SleepState](ExMujoco.Types.SleepState.md): `mjtSleepState` — sleep state of an object. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Solver](ExMujoco.Types.Solver.md): `mjtSolver` — constraint solver algorithm. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Stage](ExMujoco.Types.Stage.md): `mjtStage` — computation stage. From MuJoCo's headers, as numbers. All 4 values carry a number in the header.
  - [ExMujoco.Types.State](ExMujoco.Types.State.md): `mjtState` — state elements. From MuJoCo's headers, as numbers. All 20 values carry a number in the header.
  - [ExMujoco.Types.Stereo](ExMujoco.Types.Stereo.md): `mjtStereo_` — type of stereo rendering. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.Tendon](ExMujoco.Types.Tendon.md): `mjtTendon` — type of tendon. From MuJoCo's headers, as numbers. All 2 values carry a number in the header.
  - [ExMujoco.Types.Texture](ExMujoco.Types.Texture.md): `mjtTexture` — type of texture. From MuJoCo's headers, as numbers. All 3 values carry a number in the header.
  - [ExMujoco.Types.TextureRole](ExMujoco.Types.TextureRole.md): `mjtTextureRole` — role of texture map in rendering. From MuJoCo's headers, as numbers. All 11 values carry a number in the header.
  - [ExMujoco.Types.Timer](ExMujoco.Types.Timer.md): `mjtTimer` — internal timers. From MuJoCo's headers, as numbers. All 16 values carry a number in the header.
  - [ExMujoco.Types.Trn](ExMujoco.Types.Trn.md): `mjtTrn` — type of actuator transmission. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.VisFlag](ExMujoco.Types.VisFlag.md): `mjtVisFlag_` — flags enabling model element visualization. From MuJoCo's headers, as numbers. All 32 values carry a number in the header.
  - [ExMujoco.Types.Warning](ExMujoco.Types.Warning.md): `mjtWarning` — warning types. From MuJoCo's headers, as numbers. All 8 values carry a number in the header.
  - [ExMujoco.Types.Wrap](ExMujoco.Types.Wrap.md): `mjtWrap` — type of tendon wrap object. From MuJoCo's headers, as numbers. All 6 values carry a number in the header.

- Errors
  - [ExMujoco.Error](ExMujoco.Error.md): What MuJoCo says when it refuses.
  - [ExMujoco.Loader](ExMujoco.Loader.md): Loading the NIF, and refusing to go on if it does not match the headers it was
generated from.

- Generating the bindings
  - [ExMujoco.Gen](ExMujoco.Gen.md): Turns MuJoCo's headers into the bindings this package ships.
  - [ExMujoco.Gen.Header](ExMujoco.Gen.Header.md): Reads MuJoCo's C headers into data.
  - [ExMujoco.Gen.Template](ExMujoco.Gen.Template.md): The text this package generates, from the shapes `ExMujoco.Gen` hands it.

## Mix Tasks

- [mix ex_mujoco.gen](Mix.Tasks.ExMujoco.Gen.md): Rewrites the NIF bindings, the Elixir that calls them, and `docs/coverage.md`
from the MuJoCo headers this build is against.

