MuJoCo's own functions, bound one for one, under the names MuJoCo gives them.
These are the calls that speak for themselves — mj_name2id,
mj_kinematics, mj_step1 — so the binding is the C signature and
nothing more, and the argument order and meaning are MuJoCo's. The curated
surface is ExMujoco, which is what most callers want: it names the data
block once and answers :ok, an ExMujoco.Tensor, or an
ExMujoco.Error.
The sentence under each name is MuJoCo's own comment on the declaration,
and the functions are filed under the heading MuJoCo's header puts above
them — Main simulation, Sub components, Support — so the page
reads as MuJoCo's header does.
What is not here is in docs/coverage.md, with the reason.
Summary
Initialization
mj_resetDataKeyframe — Reset data. If 0 <= key < nkey, set fields from specified keyframe.
Main simulation
mj_step1 — Advance simulation in two steps: before external force and control is set by user.
mj_step2 — Advance simulation in two steps: after external force and control is set by user.
Sub components
mj_camlight — Compute camera and light positions and orientations.
mj_collision — Run collision detection.
mj_comPos — Map inertias and motion dofs to global frame centered at CoM.
mj_crb — Run composite rigid body inertia algorithm (CRB).
mj_energyPos — Evaluate position-dependent energy (potential).
mj_energyVel — Evaluate velocity-dependent energy (kinetic).
mj_flex — Compute flex-related quantities.
mj_kinematics — Run forward kinematics.
mj_makeConstraint — Construct constraints.
mj_projectConstraint — Compute inverse constraint inertia efc_AR.
mj_referenceConstraint — Compute efc_vel, efc_aref.
mj_sensorAcc — Evaluate acceleration and force-dependent sensors.
mj_sensorPos — Evaluate position-dependent sensors.
mj_sensorVel — Evaluate velocity-dependent sensors.
mj_tendon — Compute tendon lengths, velocities and moment arms.
mj_transmission — Compute actuator transmission lengths and moments.
Support
mj_getTotalmass — Sum all body masses.
mj_id2name — Get name of object with the specified mjtObj type and id; return NULL if name not found.
mj_isDual — Determine type of solver (PGS is dual, CG and Newton are primal).
mj_isSparse — Determine type of constraint Jacobian.
mj_name2id — Get id of object with the specified mjtObj type and name; return -1 if id not found.
mj_versionString — Return the current version of MuJoCo as a null-terminated string.
Initialization
Main simulation
mj_step1 — Advance simulation in two steps: before external force and control is set by user.
void mj_step1(mjModel* m, mjData* d) in C.
mj_step2 — Advance simulation in two steps: after external force and control is set by user.
void mj_step2(mjModel* m, mjData* d) in C.
Sub components
mj_camlight — Compute camera and light positions and orientations.
void mj_camlight(mjModel* m, mjData* d) in C.
mj_collision — Run collision detection.
void mj_collision(mjModel* m, mjData* d) in C.
mj_comPos — Map inertias and motion dofs to global frame centered at CoM.
void mj_comPos(mjModel* m, mjData* d) in C.
mj_crb — Run composite rigid body inertia algorithm (CRB).
void mj_crb(mjModel* m, mjData* d) in C.
mj_energyPos — Evaluate position-dependent energy (potential).
void mj_energyPos(mjModel* m, mjData* d) in C.
mj_energyVel — Evaluate velocity-dependent energy (kinetic).
void mj_energyVel(mjModel* m, mjData* d) in C.
mj_flex — Compute flex-related quantities.
void mj_flex(mjModel* m, mjData* d) in C.
mj_kinematics — Run forward kinematics.
void mj_kinematics(mjModel* m, mjData* d) in C.
mj_makeConstraint — Construct constraints.
void mj_makeConstraint(mjModel* m, mjData* d) in C.
mj_projectConstraint — Compute inverse constraint inertia efc_AR.
void mj_projectConstraint(mjModel* m, mjData* d) in C.
mj_referenceConstraint — Compute efc_vel, efc_aref.
void mj_referenceConstraint(mjModel* m, mjData* d) in C.
mj_sensorAcc — Evaluate acceleration and force-dependent sensors.
void mj_sensorAcc(mjModel* m, mjData* d) in C.
mj_sensorPos — Evaluate position-dependent sensors.
void mj_sensorPos(mjModel* m, mjData* d) in C.
mj_sensorVel — Evaluate velocity-dependent sensors.
void mj_sensorVel(mjModel* m, mjData* d) in C.
mj_tendon — Compute tendon lengths, velocities and moment arms.
void mj_tendon(mjModel* m, mjData* d) in C.
mj_transmission — Compute actuator transmission lengths and moments.
void mj_transmission(mjModel* m, mjData* d) in C.
Support
mj_getTotalmass — Sum all body masses.
mjtNum mj_getTotalmass(mjModel* m) in C.
mj_id2name — Get name of object with the specified mjtObj type and id; return NULL if name not found.
char* mj_id2name(mjModel* m, int type, int id) in C.
mj_isDual — Determine type of solver (PGS is dual, CG and Newton are primal).
int mj_isDual(mjModel* m) in C.
mj_isSparse — Determine type of constraint Jacobian.
int mj_isSparse(mjModel* m) in C.
mj_name2id — Get id of object with the specified mjtObj type and name; return -1 if id not found.
int mj_name2id(mjModel* m, int type, char* name) in C.
mj_versionString — Return the current version of MuJoCo as a null-terminated string.
char* mj_versionString() in C.