NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #1785 most downloaded on PyPI
MuJoCo Physics Simulator
Latest stable
4.0.0
Last release 16 days ago
06 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 55 of 57 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
58 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Open rods carry per-edge twist joints (see the breaking change above) with per-edge polar inertia, frame-indifferent relative Rayleigh torsional dampi…
[!IMPORTANT] Read the MuJoCo 4.0 announcement for an overview of everything new since 3.0, the interactive showcase at mujoco.org, MuJoCo Live browser demos, visual showcases, and maintainer Q&A.
<a href="https://mujoco.readthedocs.io/en/stable/computation/speculative.html#spadvancement"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/speculative_advancement_dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/speculative_advancement_light.svg"><img src="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/speculative_advancement_light.svg" width="50%" align="right"></picture></a>
89daf8d19 Added the speculative enable flag for speculative contacts to prevent fast-moving convex geoms from tunneling through thin obstacles within a single
timestep. On the right, one step of conservative advancement between two rotating boxes. See
model/speculative/ for examples.<br clear="both">
Added elasto-plasticity, with stateful plastic deformation stored in mjData.plastic (mjSTATE_PLASTIC):
e140c026f Ideal elasto-plasticity for joint (springyield) and tendon
(spatial, fixed) springs (left).
0c0f63b3f, c39fe6f02, e3bd72742, 7cb32488b Continuum elasto-plasticity
(yield) for 2D and 3D flexes, with separate stretching and
bending yield strains for 2D shells, volumetric-deviatoric (von Mises $J_2$) stretching and 2D shell bending
return mapping (right).
See model/plastic/ for examples.
<a href="https://github.com/google-deepmind/mujoco/blob/main/model/plastic/wire.xml"><img src="https://www.gstatic.com/mujoco/model/plastic/wire_v2.webp" width="45%" align="left"></a>
<a href="https://github.com/google-deepmind/mujoco/blob/main/model/plastic/clay.xml"><img src="https://www.gstatic.com/mujoco/model/plastic/clay.webp" width="45%" align="right"></a>
<br clear="both">
abaf8d518 Split the Python distribution into mujoco-core (minimal bindings and C library depending only
on numpy), mujoco-studio (Studio and Filament renderer bindings), and mujoco (default package installing
both). When upgrading from a pre-split mujoco installation with pip, uninstall first
(pip uninstall -y mujoco && pip install mujoco) or run
pip install --force-reinstall --no-deps mujoco mujoco-core mujoco-studio after upgrading so pip does not
remove files moved to mujoco-core. To switch an existing mujoco installation to core-only, run
pip uninstall -y mujoco mujoco-studio && pip install --force-reinstall --no-deps mujoco-core.[!NOTE] Updated documentation for the split Python packages (
mujoco,mujoco-core,mujoco-studio) and prebuilt OpenUSD wheels (mujoco-usd/mujoco[usd]) landed shortly after the4.0.0release (39ddbb61a). Please refer to thelatestdocs for Python bindings and OpenUSD rather thanstableor4.0.0.
[!WARNING] Breaking changes
a65050166Changed the semantics of sidesite: the tendon now goes around the geom the same way as the path from the first endpoint, through the side site, to the second endpoint (thin grey line below). Formally, the tendon is the shortest path homotopic to this polyline in the wrapping plane with the geom removed.<p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/XMLreference/sidesite_homotopy_dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/XMLreference/sidesite_homotopy_light.svg"><img src="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/XMLreference/sidesite_homotopy_light.svg" width="90%"></picture></p>
Previously, a half-plane test was used, which could make the tendon jump onto the geom, a discontinuity in tendon length, when the segment between the endpoints moved away from the side site while clear of the geom. It could also select the wrong side for wraps longer than 180 degrees. Top row: old rule; bottom row: new rule.
<p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/sidesite_old_vs_new_dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/sidesite_old_vs_new_light.svg"><img src="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/sidesite_old_vs_new_light.svg" width="90%"></picture></p>
The new rule has a single discontinuity: when an endpoint crosses the ray opposite the side site, the path through the side site changes its winding around the geom and the tendon snaps off. This can change the behavior of existing models.
Migration: Place side sites so that the endpoints do not cross this ray over the range of motion, typically near the middle of the wrapped arc. For example, the side sites of the two-link arm were moved from directly below the joints to 45 degrees below the arm, which reproduces the previous tendon lengths exactly.
9a7f240f0 The RK4 integrator is now fourth-order accurate for the
orientations of ball and free joints. Previously, the angular velocities of the Runge-Kutta stages were combined
without the Runge-Kutta-Munthe-Kaas correction, so orientations converged only at second order. This changes the
simulation of models with ball or free joints that use RK4.
9916cc5f7 Added surfacevel[3] to mjContact, storing the relative
surface velocity (geom[1] minus geom[0]) in the contact frame
(tangent1, tangent2, spin). Collision detection populates it from geom_surfacevel when
mjModel.flg_surfacevel is set, and external contact generators can write it directly (setting
flg_surfacevel = 1 if no geom specifies surfacevel). Contact-point visualization now draws a single relative
tangential velocity arrow per active frictional contact.
629feb74b Added xiquat, geom_xquat, and site_xquat to mjData, storing the Cartesian
quaternion orientations of body inertias, geoms, and sites alongside ximat, geom_xmat, and site_xmat.
64af6504f Added mjModel.tendon_type with values from the new mjtTendon enum, distinguishing
fixed and spatial tendons. Previously, the type was implied by whether the first path element was a joint.
[!WARNING] Breaking changes
1d6cc8ff5Removed thecableplugin (plugin/elasticity) and thecompositeelement, which are superseded by 1D flexcomp with elasticity.Migration:
countandcurve/size/vertex: use flexcompdim="1"withtype="grid",count, andspacing(ortype="circle"for closed loops), ortype="direct"withpoint. Add<edge equality="true"/>to keep edges inextensible.Geom
size(capsule radius): set flexcompradius. For geomtype="box", set<elasticity section="box" sectionsize="..."/>.Plugin
bendandtwist: set<elasticity young="..." shear="..."/>.Root attachment
initial:initial="none"maps to<pin id="0 1"/>(clamps the first edge's material frame to the parent body and omits<name>_twist_0);initial="ball"maps to<pin id="0"/>(spherical anchor at the first vertex, keeping<name>_twist_0free);initial="free"maps to no<pin/>.Plugin
flat="true": define the rod straight inqpos0(e.g.,type="grid") and set the curved initial pose viaqposor a keyframe (curves defined directly inpointare at rest inqpos0, corresponding toflat="false").Plugin
vmaxstress coloring: not supported.Integrator: use
integrator="discrete"for implicit integration (orEuler/RK4;implicitandimplicitfastare not supported for 1D rod elasticity).Body names
B_first/B_<i>/B_last: unpinned vertices create bodies<name>_<i>(pinned vertices attach directly to the parent body), plus per-edge twist bodies and joints (see the next entry).
95cf15e58Open elastic 1D flexcomps with at least two elements now create per-edge twist bodies with hinge joints<name>_twist_0, ...,<name>_twistunder the world body (omitting the joint of an edge clamped by pinning both of its points:<name>_twist_0for<pin id="0 1"/>, and<name>_twistfor the last two points of a rod with at least three elements), and store their time-parallel reference frames and reference twists inmjData.plastic. This changesnq,nv,nbody,nplasticand theqposlayout of such models, shifts the indices of bodies and joints declared after the flexcomp, and changes the simulation: rods now roll on surfaces and twist in grippers. Box sections (sectionbox) require these joints, so raw flexes with box sections now need them too, and their collisionradiusis set to the minor half-size of the section (an explicitradiusthat differs from it is now a compile error).Migration: Update keyframes and any code that indexes
qpos,qvelor bodies by number, preferably addressing vertex bodies (<name>_<i>) and twist joints by name. Save and restore rod state withmjSTATE_PLASTIC. Raw box-section flexes need hinge joints named as above (see elasticity).
7ba52b533Fixed the elastic constants of non-interpolated flexes (full and radial dofs), which now match young, poisson and thickness as documented, and the interpolated flexes:
3D Saint Venant-Kirchhoff stretching used twice the first Lamé parameter $\lambda$.
2D stretching used a quarter of the shear modulus $\mu$ and half of the 3D $\lambda$, instead of $\mu$ and the plane-stress $\lambda^* = E \nu / (1 - \nu^2)$.
2D bending used $\tfrac{3}{4}(1-\nu) D$ instead of the plate bending rigidity $D = E t^3 / (12 (1 - \nu^2))$.
Models with these flexes become stiffer, except 3D models with zero Poisson's ratio, which are unchanged.
Migration: To keep the previous behavior, use these parameters:
3D: $\nu' = 2\nu / (1 + 2\nu)$ and $E' = E (1 + \nu') / (1 + \nu)$.
2D bending only (
elastic2d="bend"): $E' = \tfrac{3}{4}(1 - \nu) E$.2D stretching (
elastic2d="stretch"or"both"): $\nu' = 2\nu$, which is exact for $\nu < 1/4$ (so that $\nu' < 1/2$). Then:
"stretch": $E' = E (1 + 2\nu) / (4 (1 + \nu))$.
"both": $t' = t \sqrt{3 (1 - 2\nu)}$ and $E' = E t (1 + 2\nu) / (4 (1 + \nu) t')$.The flex models in
model/flexwere remapped in this way, so their behavior is unchanged.
c0e6b15fd1D rod bending elasticity (dim="1"with positiveyoung) is no longer supported underimplicitandimplicitfast, matching 2D and 3D flex elasticity.Migration: Use
integrator="discrete"for implicit integration, orintegrator="Euler"with a small timestep for explicit integration.
c0e6b15fdFlex edge stiffness and damping are no longer supported underintegrator="discrete"(where they were integrated explicitly rather than in the effective metric).Migration: Use elasticity (or edge equality), or use
Euler/RK4/implicitfast.
b2577a630Unpinned flexcomp models (with full, trilinear, or quadratic dofs) now fail to compile if their parent or ancestor body has joints when no active vertices or nodes are pinned to it.Migration: Remove joints from the parent/ancestor body of an unpinned flex, or pin at least one vertex/node to the parent body with pin.
145cdc2beRemovedflexvertequality constraints (<equality><flexvert>and<edge equality="vert"/>in flexcomp), along with the associatedmjModelfields (nJfv,flex_vertedgeadr,flex_vertedgenum,flex_vertedge,flex_vertmetric,flexvert_J_rownnz,flexvert_J_rowadr,flexvert_J_colind) andmjDatafields (flexvert_length,flexvert_J).mjEQ_FLEXVERTis retained as an unsupported placeholder inmjtEqand causes an error if used.Migration: Use continuum elasticity with
integrator="discrete"or edge equality for 2D cloth models.
6f28d4adfFlexes now support per-element visual materials:mjModel.flex_matidis now(nflexelem x 1)instead of(nflex x 1), and thematerialattribute on flex and flexcomp (mjsFlex.material) is nowmjStringVecrather thanmjString(accepting either a single material name broadcast to all elements or one material name per element).Migration: Index
mjModel.flex_matidby elementm->flex_elemadr[f] + erather than by flexf. In C, setmjsFlex.materialwithmjs_setStringVec(ormjs_appendString) instead ofmjs_setString; in Python, assign a list of material names (e.g.flex.material = ['mat']).
7ba5d6732Records of 1D flexes inmjModel.flex_bendinggrow from 4 to 10 values, to store curved reference configurations and pairs of adjacent bent vertices. Previously, each record was[v_prev, v, v_next, k].Migration: Read 1D records with stride 10. A record whose fourth value is negative is a single hinge
[v0, v1, v2, -1, k1, k2 - k1, |kb0|, jnt, kt, b]: principal bending stiffnessesk1 <= k2, the twist hinge jointjntof the edge(v1, v2)(-1 if none; the joint of the first edge, when present, is that of the first record minus one), torsional stiffnesskt, and the signed minor half-sizebof a box section (0 for circular sections). Otherwise it is a hinge pair[v0, v1, v2, v3, w0, w1, om0[4]].
8892bf44b, 0d8a109de, f9a589361 Sparse Newton (solver) is
1.4-3x faster on flex models, using fill-reducing DOF ordering, incremental active-set
Hessian updates, direct elliptic cone folding, and pre-ordered sparse Cholesky for the 2D
discrete integrator smooth solve. Most flex models in model/flex now use
solver="Newton", and the experimental ipc flag now supports solver="Newton" in
addition to solver="CG".
57d9b960f solver="Newton" with the discrete integrator now supports
flex vertices and nodes (both standard and interpolated) attached to articulated bodies.
Previously, such models required solver="CG". The model/flex/gripper_trilinear.xml gripper now uses
solver="Newton". MuJoCo Warp still requires solver="CG" for such models.
7ba5d6732 1D rod bending elasticity now supports curved reference configurations
and torsional stiffness: vertices bent by more than $10^{-4}$ rad in qpos0 keep their reference curvature
and dihedral twist angle, so that rods such as rings, arcs, and coil springs are at rest in their compiled shape.
Previously, such models failed to compile. The new shear attribute optionally
overrides the shear modulus used for torsion. Open rods carry per-edge twist joints (see the breaking change above)
with per-edge polar inertia, frame-indifferent relative Rayleigh torsional damping, time-parallel reference frames,
and frictional contact lever-arm coupling. Box sections additionally use anisotropic principal stiffnesses with
equalized damping ratio ($\sqrt{k_1 k_2}$ on the weak axis) and an oriented box in the DER material frame for
rendering and collision detection. See the documentation.
9ca6b7171 Volumetric interpolated flexes (trilinear or quadratic dofs
with elastic2d="none") now integrate cell stiffness and lump nodal masses over the mesh volume using Finite Cell
Method (FCM) subcell quadrature instead of treating every non-empty grid cell as a full cube. This changes the
stiffness and nodal mass distribution of volumetric interpolated flexes whose mesh does not fill its bounding box,
as well as the nodal mass distribution of multi-cell trilinear flexes.
f9f3ee653 Contacts with flex elements now distribute the contact to the element vertices with the
barycentric coordinates of the point on the element closest to the contact. Previously the vertex weights were
inversely proportional to the distances from the contact, which do not interpolate the contact point: the contact
Jacobian measured the velocity of a different material point, and the contact force exerted a spurious torque on the
element. This changes the simulation of models with flex contacts.
115907e6d Interpolated flexes (trilinear or quadratic dofs) now support
passive contact.
51572eab0 Flex edge damping is now integrated explicitly under implicit and
implicitfast (previously it also damped rigid translation).
9fb4eca48 Fixed contact Jacobians of quadratic flexes, which dropped nodes with negative basis weights.
b16e09838 Sphere and capsule contacts with 3D flex elements are now computed analytically instead of the
general convex pipeline.
3bbf510d4 Improved numerical stability of nativeccd convex collision
detection and multiccd contact generation. This can slightly change contacts for models
with convex or mesh collisions.
[!WARNING] Breaking changes
00057bcefModels that include the same file through different paths, which previously loaded, are now rejected withalready included.Migration: Remove redundant
<include>elements referencing the same file.The compiler now rejects the following invalid models, which previously loaded:
b6192732bHeight fields with nrow or ncol less than 2.
a4c699040Fixed tendons referencingball/freeor duplicate joints, or with negative armature.
a4c699040Spatial tendon pulleys with non-positive divisor.
a4c699040camprojection or camera-attached rangefinder sensors referencing an invalid camera or a camera with non-positive resolution.
881e53e2emjs_makeMeshmjMESH_BUILTIN_CONEcalls with fewer than 3 edges orradiusoutside[0, 1].Migration: Ensure height fields have
nrow >= 2andncol >= 2, fixed tendons wrap distinctslideorhingejoints with non-negative armature, pulley divisors are positive, cameras referenced bycamprojectionorrangefindersensors have positive resolution, skin face indices are in[0, nvert), and cone meshes have at least 3 edges and a radius in[0, 1].
432376a59 fullinertia and inertias inferred from geoms which are not
positive definite are now bounded by boundinertia when it is positive. Previously they
gave a compile error.
a4c699040 mj_encode now supports binary MJB output for mjSpec via the
model/vnd.mujoco.mjb content type.
1edd2c67d Added a castshadow attribute to geom
(mjsGeom.castshadow, mjModel.geom_castshadow, mjvGeom.castshadow; default true) to disable shadow
casting per geom in both the classic OpenGL and Filament renderers, and mjrf_setRenderableCastShadow
(mjrf.Renderable.set_cast_shadow in Python) to toggle shadow casting of Filament renderables dynamically.
c831b97d6 Added horizon haze and skybox visibility support to Filament rendering: infinite planes are
centered beneath the camera and blend smoothly into the skybox horizon according to
visual/map/haze and visual/rgba/haze, toggled per view via haze
and skybox on mjrfRenderRequest (mjRND_HAZE and mjRND_SKYBOX).
939bc882e When no light specifies an intensity, the fallback intensity given
to each light in Filament rendering is now scaled by the brightness of its diffuse color, which is factored out of
the light's color. Lights look the same, but the brightest directional light now casts the shadows, rather than an
arbitrary one that could differ between runs.
0fc0b44d6 Added filament.material.base_color_type flag for configuring how the base color
material parameter is interpreted.
e19117325 Added mjrf_flush (mjrf.Context.flush in Python) to flush pending operations to the
rendering backend and invoke any completed callbacks.
93033f5ba Added mjRND_POST_PROCESSING rendering flag.
e66b53380 Allow headlight.active to be set to "false", "true", or "auto"
while continuing to support integer values (0=false, 1=true, 2=auto). Change the default to "auto" instead of
"true".
68390c316 Removed support for Python 3.10, now that it's
deprecated upstream.
a1b9fce44 Bundled the MuJoCo Sphinx manual (doc/**/*.rst) and agent skills (doc/skills/**/*.md)
inside the mujoco package under mujoco/doc/.
[!WARNING] Breaking changes
006586d30Removedsample/record.cc; multi-frame raw RGB24 video recording is now supported by sample/render.cc across both the Filament and classic OpenGL backends via--durationand--fps.Migration: Replace
record model.xml T F out.rgb 0withrender model.xml out.rgb --duration=T --fps=F(or pass-as the output path to pipe top-down RGB24 frames directly toffmpeg;vflipis no longer needed).
9647e0290 Added six
elasto-plasticity example models, each
placing an elastic reference next to a plastic counterpart: joint and tendon springs, 2D shells and 3D continua.
89daf8d19 Added
speculative contacts example models: a
Newton's cradle of thin plates, an interlocking chain, and a ball struck by a hinged flipper.
74ad32d20 Added documentation for MuJoCo Studio, covering web
and native viewers, architecture, and
Python and C++ development.
0f1092ebb Added a Model tuning guide to the Modeling chapter---covering the
fidelity--speed trade-off, tuning defaults, priority-ordered global
and model-level parameters, deformables, and
system identification---along with module documentation for mujoco.sysid.
fdf141238 accelerometer and framelinacc sensors
and mj_objectAcceleration on static and mocap bodies now report the gravitational proper acceleration, like a
dynamic body at rest. Previously they returned zero, a regression introduced in 3.3.7.
c4137ef7c, aeb871ba1 Actuators saturated by joint or tendon actuator force limits
(joint and tendon
actuatorfrcrange) no longer contribute implicit actuator derivatives, changing integration under implicit,
implicitfast, and discrete. Because saturated actuators no longer contribute implicit damping, models with
light links and no armature may need joint armature or a smaller timestep.
aaf2abaa7, 1b46a496e Fixed sleep filtering bugs in history sensors
(nsample, delay, interval), mj_energyPos, flex passive forces, tendon limit and
frictionloss constraints, two-tree tendon armature and bias, mj_subtreeVel, and
caller-supplied mj_rne buffers.
13fb7844e mj_setConst now wakes all sleeping trees, since it recomputes their
kinematics at qpos0 and qpos_spring. Previously their cached poses could be left at qpos_spring. It also
no longer overwrites cam_xpos, cam_xmat, light_xpos and light_xdir in mjData, which left
static cameras and lights with tracking or targeting at their fixed-mode poses.
432376a59 Contact pairs created with an undefined mjsPair.solref now mix the solref of their geoms
using solmix when both are positive, like contacts not defined by pairs. Previously they always took the
element-wise minimum.
18d65f4e0, ea6aa8214 Filament depth and segmentation renders no longer apply post-processing
(tone mapping, dithering), which corrupted depth values and segment ID colors; perspective depth renders now project
with the finite zfar plane instead of Filament's infinite far plane, matching orthographic
depth and the classic renderer; and the mjr_ compatibility API now respects readDepthMap
(mjtDepthMap) on mjrContext in mjr_readPixels and colors geoms by segid + 1 like
mjRND_IDCOLOR so a geom with segid 0 no longer renders as background.
9b19fd07c, ef34acbee File paths on Windows are now interpreted as UTF-8 rather than the active
ANSI code page, fixing loading and saving files, plugin library discovery and loading (mj_loadPluginLibrary,
mj_loadAllPluginLibraries), and simulate executable directory lookup when paths contain
non-ASCII UTF-8 characters (#3139). Contribution by @mar-yan24.
a5ff8f6c7 Fixed dcmotor parameter handling: allow zero
motorconst for input="none", reject negative constants (e.g.
motorconst="-a b" is now rejected instead of silently using K = b), replace capacitance when an inconsistent
thermal triple is given, clear inherited
forcerange when saturation is authored, let
zero saturation or inductance clear class defaults, and validate actdim at
compile time.
8694cc9ce Improved numerical stability of sphere and cylinder spatial tendon
geom wrapping at wrap onset. Thanks to @M-Colley for reporting and analyzing the
issue in MJWarp issue 1772.
b6192732b mj_ray now scales SDF hit distances by 1 / ||vec|| for non-unit ray vectors, and
mju_rayTriangle rejects triangle intersections behind the ray origin.
00c19f04b mj_resetData, mj_copyData, and mj_recompile now preserve the destination
mjData thread pool instead of dropping and leaking it.
a206daa42 mju_mat2Rot now normalizes the input quaternion and escapes 180-degree stationary points
(saddles and minima) that do not maximize $\operatorname{tr}(R^\top M)$.
afa16414c Fixed the cotangent weight and length scale of the curved reference term of 2D
flex bending (elastic2d bend or both), so
out-of-plane bending forces vanish at curved rest configurations and scale consistently with model size.
a4c699040 Fixed several bugs when editing or copying an mjSpec:
mjs_delete (MjSpec.delete in Python) now removes deleted default classes from the class lookup map
instead of leaving dangling pointers.
mj_copyBack (MjSpec.copy_back in Python) preserves material metallic, roughness, and
texuniform attributes.
mjs_findChild no longer matches a non-world body against itself.
mjs_setToMuscle accepts NULL timeconst and range pointers.
00057bcef Fixed several MJCF XML loading and saving bugs:
include no longer double-prefixes the model directory on nested or relative paths.
Loading MJCF now applies enclosing frame transforms to flexcomp, and allows
explicit range or inheritrange attributes on actuator shortcuts to
override conflicting defaults.
default/tendon now accepts armature, actuatorfrclimited, and actuatorfrcrange, which were previously emitted when saving XML and then failed schema validation on reload.
Saving MJCF (mj_saveLastXML, mj_saveXML, mj_saveXMLString) now preserves
texture nchannel and clamps emitted
gridlayout to gridsize (while loading resets gridlayout when an authored
gridsize differs from the inherited default), compares material layer textures, camera
sensorsize, and light texture against default classes, and
writes all attributes on plugin-backed meshes and reftype/refname on plugin sensors.
881e53e2e Legacy .msh meshes with mirrored scale no longer double-flip face
winding (which inverted faces), and .msh files without vertex normals no longer populate empty face normals or
reject custom normals on recompilation.
Update (November 7, 2026, 01:00 PST): The four standalone release archives (mujoco-4.0.0-linux-x86_64.tar.gz, mujoco-4.0.0-linux-aarch64.tar.gz, mujoco-4.0.0-windows-x86_64.zip, and mujoco-4.0.0-macos-universal2.dmg) and their .sha256 checksum files were rebuilt and replaced to remove usd_decoder_plugin from the simulate auto-load plugin directory, fixing a startup crash when Python/OpenUSD runtime libraries are not installed. The 4.0.0 Git tag, PyPI wheels, and npm WASM package are unchanged.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Models solved with PGS, noslip or islands disabled can stop at slightly different iterations. The meaninertia attribute is deprecated and now emits a…
c00ed8153 Added a batch API in mujoco/mjbatch.h (in Python as
mujoco.batch): many simulations of one model stepped on a thread pool of its own, each held as its
integration state and loaded into an mjData for each call, so memory scales with threads and results are
bit-identical to a plain loop at any thread count. It supports per-simulation model and option fields or models of
the caller's, observations of the state after a step, recorded trajectories, persistent simulations (required for
sleep), and arbitrary per-simulation functions. Follows the design of
mjbatch by @kevinzakka.Flex improvements:
94483e166 Added bending elasticity for 1D flexes, using a twist-free isotropic
discrete elastic rod model. The cross-section is selected with the new section
attribute: a circle of the flex radius, or a box with half-sizes sectionsize
that uses the stiffness of its weak axis. It is enabled by a positive young modulus,
requires a straight reference configuration (curved initial poses can be set with qpos or keyframes), is
compatible with edge equality constraints, and is integrated implicitly by the discrete
integrator. Previously young was ignored for 1D flexes: existing models that set it now bend, and fail to
compile if the cross-section is degenerate (zero radius with the default circle section), if a vertex joins a
zero-length edge, or if the rod is not straight.
36d0df9a5, 897e3fcb1 Interpolated flexes (trilinear or quadratic
dofs) now support self-collision, excluding elements in
the same or neighboring cells.
39dd10f2d The default arena memory for flex models is now much smaller, sized from
the flex mesh topology instead of nv^2. If the Newton solver runs out of arena memory it falls back to CG with
a warning.
mj_setConst now computes only quantities derived from other fields of mjModel, while the compiler alone
resolves spec-level conventions:
55c1b585a, d6d41f324 The damping of position actuators from
dampratio, the spring length of tendons from (-1, -1), and model statistics
are now resolved only at compile time, not by mj_setConst. Set the model fields directly when editing a
compiled model (mj_copyBack now copies tendon spring lengths back to the spec).
c8362756d Constraint solvers now scale their termination criteria by the trace of the current inertia
matrix (of the model or island) instead of mjModel.stat.meaninertia. Models solved with PGS, noslip or islands
disabled can stop at slightly different iterations. The meaninertia attribute is
deprecated and now emits a compile warning; remove it to migrate.
abddec5b9 For body-based weld constraints without a specified
relpose, the relative pose in qpos0 is now recomputed by mj_setConst when
the model is modified after compilation (matching the second body's anchor in
body-based connect constraints). The compiler marks such welds with a nonzero eq_data[11], and
mjNEQDATA increased from 11 to 12.
[!WARNING] Breaking ABI changes
body-based welds that had no
relposeat compile time. Zeroeq_data[11]before callingmj_setConstto set the relative pose of such a weld directly.
865316f19 Added MJSETCONST_ARRAYS and MJSETCONST_SCALARS in mjxmacro.h, listing the
mjModel arrays and scalars read and written by each phase of mj_setConst.e15ecd842 Added single-shot multicontact for geoms with positive contact
margins.
7394a8672 mju_boxQP now updates its Cholesky factor incrementally with mju_cholUpdate, making
cold-started solves 1.4-1.6x faster and warm-started solves 1.9-2.9x faster.
aa0f88e77 Trees marked sleep="init" which cannot be put to sleep now cause a warning
rather than an error, and start awake. See Sleeping for details.
[!WARNING] Breaking API changes
aad2e2982mjs_fuseStaticandmjs_discardVisualnow return the number of bodies fused or elements discarded, and -1 on error. Previously they returned 0 on success, so a caller could not tell whether the spec changed. In Python,MjSpec.fuse_staticandMjSpec.discard_visualreturn the same number instead ofNone.Migration: Test for an error with
< 0rather than!= 0.
084828896mjs_addTexturenow takes a default class, likemjs_addMeshandmjs_addMaterial.Migration:
mjs_addTexture(spec)→mjs_addTexture(spec, NULL).MjSpec.add_textureis unchanged.
3576818f5, b0f206d04 Textures can be left by reference instead of being
decoded into mjModel. With compiler/passthrough set to "textures", or
texture/embed set to "false", a single-file texture is not read at compile time; the
model holds its path instead of its pixels, so a scene that attaches many textured sub-models loads in a fraction of
the memory and time. In addition, a compiled mjSpec no longer keeps the decoded pixels of its textures between
compilations.
3576818f5 What the model holds: tex_adr is -1, tex_width and tex_height are 0, ntexdata
excludes the texture, the resolved path is at tex_pathadr, and any authored
content_type is at the new tex_contenttypeadr. Flipped, composite, six-file,
procedural, buffer and in-memory textures stay embedded, as does any texture with embed "true".
1be762d0c Getting the pixels: mj_loadTexture decodes a texture of either kind, and
mj_embedAssets returns a copy of the model with every by-reference texture loaded (which followed by
mj_saveModel gives a hermetic MJB). Both are in Python as mujoco.mj_loadTexture and
mujoco.mj_embedAssets.
fd92ba1db Rendering: the built-in and Filament renderers load by-reference textures on demand, and
Filament uploads each file once for all textures that share it. A file that fails to resolve produces a warning and
an untextured material.
084828896 Textures can have default classes: mjsDefault has a texture
member and texture takes a class.
4e9a2de2d Added mjs_dedupAssets (MjSpec.dedup_assets), which merges the textures and meshes of
an mjSpec that would compile to the same asset, as those of a sub-model attached several times do: the first
of each group is kept and every reference to the others is rewritten to it. Like mjs_fuseStatic, it returns
the number of assets merged.
027cb3dd8 The asset paths in mjModel (paths at mesh_pathadr, hfield_pathadr,
skin_pathadr and tex_pathadr) now store the resolved path or URI from which the compiler read the asset
(combining the model file's directory and meshdir or texturedir with file, unless file is an
absolute path or URI), so mju_openResource can open them directly even after attaching
models with different asset directories. Code that prefixed these paths with its own directory should pass them to
mju_openResource as is.
9f035384d Mesh polygon normals (mjModel.mesh_polynormal) are now computed from the whole polygon
outline using Newell's method rather than the first three vertices (#3691).
08330629b Added a mujoco.batch module over the batch API: Batch(model, nsim) with live
(nsim, ...) arrays from bind() and named views such as joint(name), per-simulation model fields from
expand(), step, forward, reset, set_const and rollout with the GIL released, and jac and
ray queries.
1313ef78e Added support for building the Python bindings with Bazel (initially
covers the core bindings, without rendering or the viewer).
39b7193e8 Fixed several bugs in named access (data.actuator('a'),
model.joint('j'), data.bind(...)), and the corresponding generated accessors in the JavaScript bindings:
Multi-control or multi-output actuators (such as orientation) now follow
actuator_ctrladr and actuator_outadr with leading dimension ctrlnum or outnum, instead of reading
a single row at the actuator index.
data.actuator('a').moment is now a read-only dense copy of the actuator's moment arm of shape (nv,) or
(outnum, nv), instead of reading the sparse actuator_moment array as if it were dense.
Views of multi-column per-dof fields (cdof, cdof_dot, dof_dampingpoly) on joints after the first now
index the right rows.
7cdc8857e Unallocated arena arrays of MjData (such as efm_* when the discrete integrator is
not used, or island arrays when no islands are formed) are now filled with zeros, or -1 for index fields, instead of
returning uninitialized memory.
Fixed several bugs in interpolated flexcomp elasticity:
4bbc96957 Volume (solid) interpolated flexes whose first cell is empty (e.g. a trilinear
flexcomp from a mesh that does not fill the corner of its bounding box) now retain their
elasticity; previously elasticity was gated on the first cell's stiffness.
b0b20166d Editing a flex to remove a strain equality (e.g. from
body.make_flex) and recompiling now recomputes stiffness instead of keeping the strain constraint eigenmodes.
08bf94b18 Shell-mode interpolated flexes with elastic2d set to
"stretch" or "both" now apply membrane stretch forces and implicit stiffness, and "bend" shells
without strain constraints no longer allocate flex_stiffness.
Fixed several bugs in the Filament renderer:
5c7c1e3ae Textures now allocate mipmap levels (including sRGB textures), fixing minification aliasing.
e81c8aed4 Skins that share vertices across faces no longer fail with an index count mismatch
(#3719).
001aa3203 Material colors now apply only when an object has the default color, instead of overwriting
custom object colors.
6cfc76e32 Textures with an unsupported number of channels are now skipped with a warning, matching the
classic renderer, instead of calling mju_error.
Fixed several bugs on error paths which called mju_error while C++ objects or locks were held (an error
handler that does not return, as in the Python bindings and the model compiler, skips C++ destructors):
4cc38db84, 8c1e45559, 526583e5b Invalid configurations of the touch grid, cable and
SDF plugins leaked more than 10 MB per failed compilation (they now fail plugin initialization with a warning);
mju_getXMLDependencies and unknown material layer roles also leaked memory on
invalid XML, and unsupported equality types in the XML writer are now reported as write errors instead of calling
mju_error.
4cc38db84 An error while compiling meshes or textures on the compiler's worker threads crashed the
process, and a failed library load in mj_loadAllPluginLibraries left its mutex locked.
ae15ab978 mj_recompile freed the given mjData and called mju_error if a plugin
failed to initialize, and did not delete the model and data on some other failures, contrary to its documentation.
94483e166 The
elastic mechanism example models
now use 1D flex rods: the cantilever comparison of quadratic flexes adds a rod, and the elastic slider-crank and the
tendon-loaded dipper arm are built from rods.`5558bd783` The settotalmass compiler attribute is deprecated and will be removed in a future release. It still scales the masses, and compiling a mod…
cf89a6375, 4316935b3, 6d98d9fab, 5f17e92eb, 89d59b11f,
147dc67d0 Frames can now scale their contents at compile time—without modifying the
mjSpec—via the new scale, scaling, and
massscale attributes. The default similar policy scales all physical quantities so that
dynamics are preserved under proportionally scaled gravity, whereas geometry scales only spatial dimensions and
inertias (and supports anisotropic scaling). Masses scale with volume unless overridden by massscale. External
references to scaled elements—including actuators, tendons, constraints, sensors, keyframes, and deformable/mesh
assets—are scaled consistently, and mj_copyBack maps values back into unscaled spec coordinates. See
frame/scale for details.
592c54ad3, 92b8f4b27, d4595d020 Added compiler attributes
savecompiled and savecanonical (both defaulting to
"true") to preserve original authoring when saving models to XML. Setting savecompiled="false" saves the
uncompiled mjSpec directly—retaining default classes, frames, and authored numeric values—so the saved XML
reloads into an identical spec. Setting savecanonical="false" additionally preserves the original input
conventions, such as orientation representations, degree/radian units, and actuator shortcuts; see
Model Encoding & Saving. mj_copyBack (MjSpec.copy_back in Python) now updates only the
modified fields in the spec while leaving all other authored values untouched.
9d953b40c Added support for building MuJoCo with Bazel (initially covers core
library, simulate, plugins, and samples).
[!WARNING] Breaking API changes
ea5e711c1mjfDecode, thedecodecallback ofmjpDecoderplugins, andmju_decodeResourcenow takechar* error, int error_szarguments. A decoder which fails writes its reason intoerror, which is then reported bymj_parseand in mesh compilation errors, rather than only as a warning with a generic error.Migration: Add the two arguments to custom decoders and write failure messages into
error(if notNULL) instead of callingmju_warning. Pass an error buffer, orNULL, 0, tomju_decodeResource.
2757493d9Shortened the names ofmjpResourceProviderfunctions.mjp_getResourceProvideris renamed tomjp_findProvider, consistent with other prefix and extension lookups.Migration: Rename as follows: |br|
mjp_defaultResourceProvider→mjp_defaultProvider|br|mjp_registerResourceProvider→mjp_registerProvider|br|mjp_resourceProviderCount→mjp_providerCount|br|mjp_getResourceProvider→mjp_findProvider|br|mjp_getResourceProviderAtSlot→mjp_getProviderAtSlot|br|mjp_registerArchiveResourceProvider→mjp_registerArchiveProvider|br|mjp_findArchiveResourceProvider→mjp_findArchiveProvider|br|mjp_archiveResourceProviderCount→mjp_archiveProviderCount
0998957cf The contact sensor now supports linvel and angvel
data fields for reporting relative contact velocities, and its computation stage
(mjtStage) is now inferred from the requested data and
reduce attributes.
d823f9212 mj_setConst now computes the bounding volumes of geoms and bodies, the collision masks and
margins of bodies, and the added mass of geoms in the ellipsoid fluid model. Changes to the size,
pose, margin and gap of geoms, to the inertial frames of bodies and to the size of height fields are then safe;
previously contacts could be missed. mj_setConst also computes the constants of sleeping bodies, which it
skipped, and resolves the automatic sleep policy of trees anew.
52824daf6 Corrected the shear contribution to solid and membrane stiffness for interpolated flexes, and the
three-point Gauss quadrature used by quadratic flexes. Material parameters now produce the standard isotropic
linear-elastic stiffness; existing models using these flexes can change behavior.
3bc4b769a Improved numerical stability of sphere and cylinder spatial tendon
geom wrapping near wrap onset and for inside wrapping. Thanks to @M-Colley for
reporting and analyzing the issues in MJWarp issues
1713 and
1714.
871e3725b Flex contacts are now reduced to mjMAXCONPAIR per geom only for rigid and interpolated
flexes; other flexes keep all their contacts. Previously, cloth resting on a plane or on many static geoms could be
held by at most 50 contacts and fall through.
efffd3a5f Fixed floating-point cancellation in capsule-capsule collision detection for parallel and
near-parallel axes. Thanks to @ayonga for reporting the issue in MJWarp issue
1758.
[!WARNING] Breaking API changes
592c54ad3mj_copyBackandmj_saveLastXMLnow fail, with an error which names the element, if a value was changed in the model which the spec cannot express, for example the mass of a body when inertiafromgeom is "true". Nothing is copied or saved then; previously such a change was left out of the saved file without notice.mj_saveLastXMLalso fails if it is given a model which was not compiled from the XML that was loaded last, and a save which fails no longer empties the file.Migration: Undo the change in the model, or change what makes it inexpressible, as listed for
mj_copyBack.
2267bf299An asset added to anmjSpecthrough the API is no longer named after itsfilewhen the spec is compiled. A mesh, height field or texture which is left without a name is now a compilation error, as it already was for one without a file. MJCF is unaffected: the XML parser still names assets after their files.Migration: Name the asset when adding it, e.g.
spec.add_mesh(name='link', file='link.stl')in Python ormjs_setNamein C.
1961e8a2dKeyframes in MJCF are no longer copied by replicate: a keyframe describes the model with all replicas in place, as in a model without replicates. Previously each replica received a copy of every keyframe, setting only the joints of that replica, and a keyframe written for the complete model failed to load (#3071, reported by @eholum-nasa).Migration: Write the vectors of a keyframe for the complete model. A keyframe which was written for a single replica still loads, as one keyframe whose vectors are completed with the default configuration.
1db889162With inertiafromgeom "true", discardvisual is now a compilation error if a geom which it discards has mass. Previously the first compilation kept the inertia of the discarded geoms, while compiling the same spec again, or saving it and loading the file, dropped it.Migration: Use
inertiafromgeom="auto", the default, under which the inertia is kept as an explicit inertial, or give the visual geoms zero mass.
0696cdc85 flexcomp can now reference a mesh asset directly using
the mesh attribute, in place of file. Volumetric meshes (e.g. from GMSH) supply
nodes and tetrahedra directly; surface meshes can create 1D or 2D flexes or extrude to volumetric tetrahedra using
origin. Added the mesh parameter to Python body.make_flex; in mjs_makeFlex, the file
parameter can also be the name of a mesh asset.
ea019c212, 0696cdc85 Added procedural mesh types grid, box, cylinder, ellipsoid,
square and disc to mesh/builtin and mjs_makeMesh, generating the same
shapes as the corresponding flexcomp types, which flexcomp and geoms can use directly. Types
without volume change a legacy mesh inertia to shell. Added Python convenience methods mjsMesh.make_*.
dc8210572, 08490e897, 831994e2a Added mjs_fuseStatic, which fuses the static
bodies of an mjSpec with their parents as an operation on the spec: each fused body becomes a frame in its
parent. The fusestatic compiler option now applies it and then compiles; previously it
fused inside compilation and left the spec inconsistent with the model. Static bodies whose fusing would change the
forces on the model (a plugin, a sleep policy, another gravcomp, a fluid), or which a flex or skin refers to, are
now kept, and cameras and lights are no longer misplaced. Elements which refer by name to a geom, site, camera or
light are no longer bound to a different one, and referencing a body by name no longer leaves other static bodies
unfused. The new fuse body attribute keeps a static body when set to "false".
1db889162 Added mjs_discardVisual, which discards the visual elements of an mjSpec as an
operation on the spec. The discardvisual compiler option now applies it and then
compiles; previously it discarded inside compilation and left references to what it discarded in the spec, so that
some models failed to compile. Visual meshes are no longer loaded unless body inertia is inferred from them, and
geoms which use the ellipsoid fluid model are kept.
d48b586ae Added mjs_adoptInertial, which makes the inertial that compilation infers from the geoms
of a body part of the mjSpec, so that it no longer follows later changes to the geoms.
5558bd783 The settotalmass compiler attribute is deprecated and will be
removed in a future release. It still scales the masses, and compiling a model which sets it now gives a warning.
Migration: Scale the masses and densities in the model, or call mj_setTotalmass on the compiled model,
followed by mj_setConst.
9fd6ee025 The quat of a geom, site or camera is no longer ignored when its
default class gives an orientation as euler, axisangle, xyaxes or zaxis.
9fd6ee025, 92b8f4b27, 239647a1d Saving MJCF no longer changes or loses the following:
the order of the elements of a body which has frames, which gave the saved model other ids;
class="main" inside another childclass; the nchannel of a texture; the names
of energy sensors, which could not be loaded; inertiafromgeom="false", and the inertia of the bodies of an
attached model which has another inertiafromgeom; the frame of the surfacevel of
mesh geoms; the precision of mesh, flex, skin and height field data; and the empty cells of a
flexcomp with trilinear or quadratic dofs.
592c54ad3 mj_saveXML and mj_saveXMLString now save the compiled values of an mjSpec
as mj_saveLastXML does, including those which are computed at the end of compilation, such as the damping
which dampratio gives, and no longer lose the scaling of
settotalmass.
1961e8a2d Keyframes of an mjSpec now keep their place and their values when its
kinematic tree changes (mjs_delete, mjs_attach) and when the spec is copied; previously the next
compilation created them again, and values were lost or misplaced in several cases. A vector which is shorter than
the model is completed with the default configuration of the compiled model.
3a35e7712 mjs_attach and the attach element now apply the prefix and suffix to
the name and material of skins and to the material of tendons and meshes. Attaching a model in which one of these
has a material used to fail to compile.
cbd16feac Fixed attaching by reference, the default of mjs_attach: mj_recompile gave the
attached elements the state of other elements of the parent, and attaching another body or frame of the same model
failed or left out the elements which refer to it. Attaching what the parent already has is now an error.
Fixed several bugs when editing or copying an mjSpec:
239647a1d Saving the compiled values of a spec which was structurally edited since it was compiled
(elements added, deleted or attached) is now an error until it is compiled again; it used to crash or save wrong
values.
2267bf299, dc8210572 Compiling no longer reorders contact pairs and
excludes, writes into authored fields such as the data of a texture, or keeps references
removed since the last compilation.
2267bf299, dc8210572 mjs_findElement now finds elements added or renamed after
compilation, and returns the named element for contact pairs, excludes and after
discardvisual.
3a9b10a3c, 3a35e7712 mjs_delete now deletes a plugin instance
together with the last element referencing it, and deleting a body removes the elements referencing it after
discardvisual or later edits. Both cases used to make the next compilation fail or
crash.
592c54ad3 mj_copyBack and mj_saveLastXML no longer lose a change to the reference pose of
a free joint, or write out of bounds for a numeric which has less data than its size.
ab7f005c9 Actuator shortcuts now inherit their parameters (kp, kv, area,
...) only from a default written with the same shortcut or with general,
looking up the class hierarchy for one, and otherwise use their documented defaults; mechanical attributes like
ctrlrange and gear are inherited from any default, as before. A motor in a class with
a position default used to be a position servo (#3561). Every shortcut now sets
its full documented table, including its dynamics and activation layout, and a pid without
kp has the documented gain of 1, not 0. Added mjsActuator.type (mjtActuator), the element an actuator
is written with.
Migration: Write the gains on the actuator itself, or in a default of the same shortcut or of general.
fcb83a173 Actuators with "fixed" or "affine" gaintype can declare what
their control is with input: a position setpoint ("pos"), a velocity setpoint ("vel")
or a pressure ("pressure"); without a declaration it is a command. The declaration does not affect the simulation.
The position, velocity, intvelocity
and cylinder shortcuts declare their inputs, which are recorded in
mjModel.actuator_ctrlspec and kept when a model is saved; mj_actuatorInputName returns the declaration.
An input signature inherited from a default class is now discarded when the gaintype changes.
92b8f4b27 Added the inheritrange attribute to the
general actuator, which so far only the position,
intvelocity and pid shortcuts had.
[!WARNING] Breaking API changes
4419c1be6,6678efd66,39b17ef2f,6c2137fe0Renamedmjrffunctions and types so that the owning object appears first (mjrf_<verb><Owner><Thing>) and names match MJCF attributes and existing MuJoCo vocabulary (cf.mjr_uploadMesh,mjModel.light_active).Migration: Rename as follows: |br|
mjrf_addRenderableToScene→mjrf_addSceneRenderable|br|mjrf_removeRenderableFromScene→mjrf_removeSceneRenderable|br|mjrf_addLightToScene→mjrf_addSceneLight|br|mjrf_removeLightFromScene→mjrf_removeSceneLight|br|mjrf_setMeshData→mjrf_uploadMesh|br|mjrf_setTextureData→mjrf_uploadTexture|br|mjrf_setRenderableTransform→mjrf_setRenderablePose|br|mjrf_setLightTransform→mjrf_setLightPose|br|mjrf_setLightEnabled→mjrf_setLightActive|br|mjrf_setLightCutoffAngle→mjrf_setLightCutoff|br|mjrf_setLightShadowsEnabled→mjrf_setLightCastShadow|br|mjrfReadPixelsRequest→mjrfReadRequest|br|mjrfLightParams:spot_cone_angle→cutoff,spot_softness→softness,cast_shadows→ |br|cast_shadow|br|mjrfRenderableParams:cast_shadows→cast_shadow,receive_shadows→receive_shadow|br|mjrfRenderRequest:enable_post_processing,enable_reflections,enable_shadowsand |br|enable_headlightdrop theenable_prefix |br|mjrfContextConfig:force_software_rendering→software_rendering|br|mjrfMaterial:decor_ux→decor|br| Support classModelObjects→ModelResourcesPython names changed accordingly, e.g.
mjrf.ReadPixelsRequest→mjrf.ReadRequest,Light.set_cutoff_angle→Light.set_cutoff,Light.set_shadows_enabled→Light.set_cast_shadow,Mesh.set_data/Texture.set_data→upload,set_transform→set_pose,Light.set_enabled→set_active,Material.decor_ux→decor,mjrf.ModelObjects→mjrf.ModelResources.
e87cafb26Renamed custom flags for consistency, and changed enum flags to take strings instead of integers.Migration: Rename as follows: |br|
filament.clearColor→filament.clear_color|br|filament.fog.cutOffDistance→filament.fog.cut_off_distance|br|filament.fog.maximumOpacity→filament.fog.maximum_opacity|br|filament.fog.heightFalloff→filament.fog.height_falloff|br|filament.fog.inScatteringStart→filament.fog.in_scattering_start|br|filament.fog.inScatteringSize→filament.fog.in_scattering_size
filament.ao.quality,filament.ao.low_pass_filter,filament.ao.upsamplingandfilament.bloom.qualitytake "low", "medium", "high" or "ultra" instead of 0-3;filament.shadows.typetakes "pcf", "vsm" or "pcss" instead of 0-2.
e7b0bc104Removedmjrf_setLightBlurWidthandmjrfLightParams::vsm_blur_width, and their Python counterpartsmjrf.Light.setBlurWidthandmjrf.LightParams.vsm_blur_width. This removes soft shadows with VSM.Migration: Use PCSS shadows instead by setting the custom flag
filament.shadows.typetopcss. PCSS shadows provide similar quality and are more performant.
e71e9f6dbRemoved thefilament.msaa.enabledcustom flag; multi-sample anti-aliasing is now controlled by visual/quality/offsamples (<= 1disables MSAA) and can be changed at runtime withmjrf_setSceneMsaa.
6c2137fe0Removedmjrf_DEBUG_drawImguiEditorfrom the public API; the ImGui scene editor is an internal debugging aid for MuJoCo Studio.
43eff4c76 The opt, vis and stat attributes of MjModel, and the sub-struct attributes of
MjVisual, can now be assigned to (e.g. model.opt = new_opt); previously this raised AttributeError.
Assignment copies the fields into the underlying C struct in place, so existing references and NumPy array views
into the destination remain valid.dc0c237df Added three
elastic mechanism example models
using multicell trilinear flexes: a cantilever material comparison, an elastic slider-crank, and a tendon-loaded
dipper arm. Inspired by
Miles Macklin's Reduced Elastic Links experiments.641652525 Added documentation for Filament rendering.
1b7d9e83b The XML reference now gives the physical dimension of every real-valued
attribute, declared in the MJCF schema.
> 4. `5023a4a50` Removed the deprecated internal flex collision option and associated evpair
1aa68e1ca .mjz archives written on Windows now always use / separators.
1aa68e1ca Assets in a meshdir or texturedir now
resolve correctly in .mjz archives when rewritten or when the directory path is absolute, uses
.., or uses a URI scheme.
[!WARNING] Breaking API changes
b3dd9e617Actuator dampratio now computes the reflected inertia $m$ atmjModel.qpos0as the operational-space inertia $(J M^{-1} J^T)^{-1}$ (averaged across force outputs for multi-output actuators such as orientation), rather than summing $\text{dof\_M0}_j / J_j^2$ across degrees of freedom. This accounts for tendon and actuator armature as well as off-diagonal inertial coupling, and avoids extreme damping values when a multi-DOF transmission has small Jacobian entries. In practice, actuators usingdampratioon multi-link kinematic chains may exhibit lower damping than before, while actuators driving tendons or sites that span multiple joints will be damped much more accurately instead of being overdamped.
5023a4a50Removed the deprecatedinternalflex collision option and associatedevpairstructures.
1b973add4 Added experimental simplified Stable Neo-Hookean elasticity for non-interpolated 3D flexes,
enabled only through mjsFlex.elastic3d = 1. It projects the material Hessian to positive semidefiniteness for the
solver and Rayleigh damping, and preserves the Saint Venant-Kirchhoff (StVK) default (0).
SNH requires the discrete integrator. The setting is not available in MJCF.
2742de438 The cached flex bending factor now retains cross-coordinate couplings between differently
oriented vertex bodies.
eed008905 Flex bending and stretching now include the motion and reaction forces of articulated vertex
attachments. The discrete integrator supports these attachments with the CG solver; fixed and independent XYZ-slide
attachments retain their optimized assembly. Elastic flexes attached to mocap bodies produce a compiler error.
6224e95f6 Added single-shot multicontact for collisions with capsule geoms.
ebfb4662d Added the enclosed attribute to
insidesite sensors, measuring how much an object juts out of a site (using directed
Hausdorff distance) and reporting signed clearance/protrusion.
f80ef4244 Fixed 64-bit model size narrowing in binary MJB serialization: mj_saveModel and
mj_loadModelBuffer now accept mjtSize for buffer_sz, supporting models larger than 2 GiB.
`458189298` Added the ipc flag, an experimental contact mode of the discrete integrator for penetration-free flex contact. Each step minimizes an incr
458189298 Added the ipc flag, an experimental contact mode of the discrete
integrator for penetration-free flex contact. Each step minimizes an incremental potential subject to linearized
contact constraints, using a barrier-free augmented Lagrangian whose subproblems are the discrete solve. Every
committed position update is verified intersection-free by continuous collision detection, so flex contact cannot
tunnel. Supported for dim-2 flexes: a flex with edge equality constraints keeps its elasticity in the constraint
solver, while elastic2d elasticity is integrated implicitly through the effective metric. The contacts the mode
resolves are frictionless. The mode keeps contact multipliers across steps that no state specification covers, so
mj_getState/mj_setState do not capture its full state and exact replay is not supported.
2fec92237 Introduced archive resource providers
(mjp_registerArchiveResourceProvider). Archive providers use the
mjpResourceProvider interface to mount and read archive containers (such as
.mjz/.zip), decoupling container handling from format decoders and enabling
on-demand asset extraction without requiring a pre-allocated VFS.
e312ce82d Frames are now preserved when saving MJCF: <frame> elements are written with
their pos and quat and their contents in frame-relative coordinates, so a saved model reloads with the same
frames. Previously the frame transformation was accumulated into the children on save and only the frame's name was
kept. Changes to the pos or quat of a frame in an mjSpec now also take effect when the spec is
recompiled.
[!WARNING] Breaking API changes
dc8bb1364mj_readCtrlnow matches the signature and semantics ofmj_readSensorto support multi-input actuators (e.g., pid, dcmotor, orientation): it takes an output bufferresultof sizeactuator_ctrlnum[id]and returnsconst mjtNum*(a pointer intomjData.ctrlormjData.historyon zero-order-hold or exact timestamp matches, orNULLwhen interpolated values are written toresult). Actuator history buffers now storeactuator_ctrlnum[id]values per sample, andmj_initCtrlHistoryexpectsnsample * actuator_ctrlnum[id]values (#3597).
9e0c6b577 The mjWARN_INERTIA warning is now also raised by the modified-inertia
factorizations of the implicitfast and damped-Euler integrators (previously silent) and of the
implicit integrator (previously a fatal error).
35c0631de The sparse Newton solver no longer aborts with a "rank-deficient sparse Hessian" error when
rounding loses a pivot of its Hessian, as can happen in single precision with ill-conditioned inertia. The pivot is
now clamped and its row decoupled, as in the dense factorization.
2a3f1f5a4 Procedural model editing is no longer quadratic in the number of elements. mjSpec previously
recomputed the compilation signature on every mjs_addGeom-like call, and mjs_setName rescanned every
name of the element's type. Both are now incremental. Building a spec with 8000 geoms is roughly 10x faster.[!WARNING] Breaking API changes
mjsElement.signatureis now0whenever the spec has been structurally edited since it was last compiled, rather than being eagerly recomputed on each edit. It is still equal tomjModel.signatureafter a successfulmj_compile, which is whatmj_copyBackand the Pythonbindmethods rely on. Code that compared the signature of an uncompiled spec against anything other than0must compile first. Additionally, whenmjs_setNamefails on a duplicate name, the element's previous name is now preserved rather than being overwritten with the duplicate name.
ac329bd17 Fixed the torque applied by weld constraints in
mj_rnePostConstraint. The rotational constraint force was used directly as a world-frame torque, missing the
scaling by 0.5 * torquescale and the rotation into the world frame. Force and
torque sensors on bodies held by a weld that carries torque were wrong (#2533).
263c638c0 mj_rnePostConstraint now accounts for the forces of spatial tendons (spring, damper,
actuator, limit, friction loss, equality and armature), so force and
torque sensors register the forces that tendons apply to bodies (#832).
eb662fcaf Tendon actuatorfrclimited now defaults to "auto" as
documented. Previously the default was "false" and actuatorfrcrange was silently ignored unless
actuatorfrclimited was set explicitly.
54be9cce6 mjd_transitionFD and mjd_inverseFD now raise an error when
sleeping is enabled. Previously, their repeated evaluations changed the sleep state, leading to
internal errors or wrong derivatives.
e38573c64 Fixed a memory leak in mjs_delete where deleted elements and subtrees were retained in
mjSpec until mj_deleteSpec (#2882).
65ea54c3c Fixed an out-of-bounds read when parsing the header of a GMSH file loaded
by flexcomp. Truncated headers are now reported as an error.
`eb18d77ca` The .mjz encoder now writes the root file as model.xml in the archive as this is less susceptible to breakage due to file renaming.
eb18d77ca The .mjz encoder now writes the root file as model.xml in the archive as
this is less susceptible to breakage due to file renaming.
4affbb64a Site geometries can now also be associated with meshes (type="mesh" with
mesh="name"), supporting visualization, the insidesite
sensor, and the new mj_insideSite function.
b59b07fae Added support for Python 3.15 (GIL and Free-Threading).
5660353ec Added a new integrator discrete: the constraint solve and the implicit velocity update merge
into one operation, performed in the effective metric $\widehat{M} = M + hD + h^2K$, which incorporates both
implicit damping $hD$ and implicit position stiffness $h^2 K$. Under this integrator mjData.qacc is
the discrete step map $(v^+ - v)/h$, and joint, tendon and actuator stiffness and damping join the solver's
metric, making passive springs and actuator position gains stable at timesteps far beyond the explicit stability
limit. Constraint rows are treated implicitly as well: solref spring--dampers are evaluated at the end of the
step, so constraints are stable at any timeconst; under this integrator the refsafe
flag replaces contact and limit rows stiffer than the timestep can resolve by the stiffest zero-restitution row
instead of clamping timeconst. The actuator-gain treatment resolves the stiff-servo timestep limitation of
#3443 (analysis contributed by @qiayuanl). See the
integrator documentation for semantics and current limitations.[!WARNING] Breaking API changes
Removed the implicit flex effective-metric special case under
implicit/implicitfastwith theCGsolver, introduced in 3.11.0. This behavior now requiresintegrator="discrete"(with a primal solver:CGorNewton), which additionally treats joint damping and stiffness implicitly inside the solve. Models relying on the old behavior should set integrator todiscrete; models with flex elasticity or passive flex contact underimplicit/implicitfastnow raise a runtime error carrying this migration note.
0b4e17747 Restored clamping of non-positive pivots in the sparse inertia factorization, along with the
associated mjWARN_INERTIA warning. The guard was inadvertently dropped in the 3.3.0 conversion of qLD to CSR
format; since then, models with singular mass matrices silently produced non-finite accelerations, typically
surfacing as divergence warnings and automatic resets.
c9d997610 Added single-shot multicontact for collisions with cylinder geoms.
10eeb8289 The Newton solver with elliptic cones now rebuilds the cone-augmented Hessian
factor with a single refactorization instead of per-contact rank-1 updates when a flop-count model predicts this is
faster. Scenes with many simultaneously sliding contacts speed up by 1.4-2x on average and 3-4x on the slowest steps.
Contribution by @kevinzakka.
2a3957558 Custom text fields (custom/text) in MJCF now accept their values inside a
<![CDATA[ ... ]]> block in addition to the data attribute. When saving a model via mj_saveXML, custom
text containing newlines or XML characters is exported as CDATA.
47ebfe48a Added cutoff attribute to sensor/tactile.
834983fbb Added render.cc: a headless offscreen rendering sample that saves an image to a
PNG image. Supports both the Filament and classic OpenGL backends, with command-line options for camera, resolution,
keyframe, simulation steps, geom/site groups, visualization and rendering flags, labels, and frames.<a href="https://www.youtube.com/watch?v=MNQsV_etq24"><img src="https://img.youtube.com/vi/MNQsV_etq24/hqdefault.jpg" width="35%" align="right" alt="Video"></a>
f6c1004b7 Added house of cards
example model and three free-standing arch
models: roman, gothic, and hyperbolic. Inspired by Song et al.[!WARNING] Breaking API changes
cb57b526fFor materials with physically-based rendering parameters that do not provide a metallic texture the fallback is now white. Previously the fallback was black, which caused scalar metallic values to be discarded when multiplied in the PBR shader.
NewtonJointAPI (newton:armature, newton:damping, newton:friction) deprecates the MjcJointAPI equivalent mjc:armature, mjc:damping, and mjc:frictionlos…
src/xml/mjcf.schema. The parser's grammar table, presence constraints, keyword maps, typed attribute bindings and save policies are generated from it and gated by tests, as are the schema's enum keywords and declared defaults against the C headers and default-constructors.[!WARNING] Breaking API changes 2. 6fe04aa8 Removed the custom binary texture format (
image/vnd.mujoco.texture) and the automatic fallback to custom textures when loading files with unrecognized extensions. Textures can now only be loaded from PNG (image/png) and KTX (image/ktx) files.
pid actuator: a PID controller with real position and velocity setpoint inputs, optional integral action (ki, integrating the position error with imax anti-windup), setpoint rate limiting (slewmax), and an optional feedforward input. This subsumes the functionality of the mujoco.pid plugin with proper activation state: correct under all integrators and visible to keyframes and sensors. With a zero velocity setpoint it is identical to position. The input signature is any subset of [pos, vel, ff], selected by input; absent setpoint inputs are fixed at zero, so the control vector contains no inert entries.dcmotor on-board controller is redesigned: the input attribute selects any subset of [pos, vel, ff, voltage], where pos and vel are setpoints for the controller, ff is a torque feedforward, and voltage is the raw terminal voltage (the default, a plain voltage-commanded motor). Controller gains are in torque space, as for pid, and the drive voltage compensates back-EMF as in a current-controlled driver: commanded torque is delivered exactly until a limit is reached. The keyword input="none" selects the empty signature: the actuator has no control inputs and is purely passive, so friction, cogging and back-EMF braking can be used as passive joint forces.[!WARNING] Breaking API changes 5. 2f1843f4 The mode-flag semantics of
dcmotor/input("voltage", "position", "velocity", selecting the interpretation of a single control) are replaced by input signatures, and the controller gains changed from voltage space to torque space. The old velocity mode's integral term (integrated-velocity tracking) is retired without replacement; the integrator always accumulates position error.Migration: Voltage-commanded motors (the default) are unchanged. Replace
input="position"withinput="pos"andinput="velocity"withinput="vel", and multiply the controller gains by $K/R$ (torque per volt). The motor's back-EMF damping, previously felt in addition to the controller's damping, is now compensated: to preserve behavior when the velocity setpoint is zero, add $K^2/R$ to the convertedkd.
qacc_smooth, which now converges on tolerance rather than a fixed threshold. Flexes with elastic2d stretch stiffness step roughly twice as fast; bending-only flexes keep the exact constant factor and are unchanged.[!WARNING] Breaking API changes 9. 2a3554c8 Contacts of a flex with
passivecollisions are now integrated implicitly: their stiffness is carried by the effective metric rather than applied as an explicit spring, and can be far stiffer than the timestep would otherwise permit. Models using passive collisions should be re-checked: the feature now requiresimplicitorimplicitfastwith the CG solver, pyramidal cones and sleep disabled; passive handling covers flex-flex, self-, and static-geometry contact, while contact with a moving body stays on the constraint solver; and the stiffness is now a mass-scaled natural frequency rather than a fixed 1e4. 10. 55d13aec RemovedmjData.efm_L_rownnz,mjData.efm_L_rowadrandmjData.efm_L_colind. They described the sparsity of the effective-metric Cholesky factor, which no longer exists;mjData.efm_Lnow holds dense 3x3 blocks, 9 numbers per covered vertex.mjData.efm_activeno longer takes the value 2: nothing selects a solve path on preconditioner exactness, so it is now a plain 0/1 flag. 11. 1362a8bd Changed the default value ofbvactivefrom "true" to "false". This avoids unnecessarily clearing bounding volume hierarchy visualization flags at every simulation step, which can be a bottleneck for models with large meshes. 12. ed13bf56 Mocap bodies and their dof-less descendants are now the root of their own weld group:mjModel.body_weldidof a mocap body equals its own id rather than 0. Consequences: dragging a mocap body into sleeping objects now wakes them; children of mocap bodies receive standard parent-child collision filtering; mocap bodies no longer count as static geometry for ray casting, and contact-matching sensors aggregate their contacts under the mocap body rather than the world; and geom pairs where neither body can move no longer generate contacts.
drape example model: three cloths draped over a sphere, demonstrating passive collisions. It replaces the sphere_passive model, which has been removed.bag example model: a cloth bag, held open by pinning the ring of vertices around its mouth, catching the standard humanoid dropped in from above. Unlike the poncho models, which are bending-only, this model exercises the 2D stretch elasticity of a flex.[!WARNING] Breaking API changes
<img src="https://www.gstatic.com/mujoco/doc/images/changelog/primitives_textured.gif" width="40%" align="right" alt="primitives_textured">
cc7fb98c Added explicit texture coordinates to built-in geometries (Plane, Box, Sphere, Ellipsoid, Capsule, Cylinder) in both the Classic renderer and Filament. 2D textures applied to primitive shapes will look different as textures are mapped using canonical UV parameterizations rather than projecting onto the $x,y$ plane.
For finite planes, textures are now anchored to the bottom-left corner instead of the center. This will cause the most common visual breakage, as common procedural checker textures will be phase shifted. Infinite planes continue to be anchored at the origin with no visual changes.
<p align="center"> <img src="https://raw.githubusercontent.com/google-deepmind/mujoco/main/doc/images/changelog/plane_uv_tiling.png" width="70%" alt="plane_uv_tiling"> </p>
f9a00bd5 Added
light/softness: edge softness for spotlights under physically-based lighting models, given as the fraction of the cone over which intensity falls to zero. The default of 0.2 is a semi-soft cone which delivers the fullintensityeverywhere inside it, so that illuminance follows $E = I/d^2$ independent of thecutoffangle. Previously the filament renderer treated the entire cone as penumbra, dimming spotlights well below their rated intensity, increasingly so for narrow cutoffs.Migration: Set
softnessto 1 to reproduce the previous appearance of existing models.
[!WARNING] Breaking API changes 17. 5e3464f4
mjx.renderandmjx.render_with_segmentationnow return the updatedmjx.Dataas the last element in their return tuple (i.e.(rgb, depth, d)and(rgb, depth, seg, d)). This ensures JAX/XLA strictly enforces causal scheduling between sequentialrefit_bvhandrendercalls.**Migration:** Update unpacking calls from `pixels, depth = mjx.render(mx, d, rc)` to `pixels, depth, d = mjx.render(mx, d, rc)`.
flexcomp with dof "trilinear" and pinned vertices) could not be reloaded after saving: node coordinates within their body frames were not saved, degenerating the interpolation grid. They are now saved in the new flex nodecoord attribute.elastic2d="stretch" integrate slightly differently. Bending-only flexes are unaffected.NewtonJointAPI (newton:armature, newton:damping, newton:friction) deprecates the MjcJointAPI equivalent mjc:armature, mjc:damping, and mjc:frictionloss attributes.NewtonMassAPI (newton:massModel, newton:inertia) deprecates the MjcCollisionAPI equivalent mjc:shellinertia and MjcMeshCollisionAPI mjc:inertia attributes. This completes the deprecation of all MjcMeshCollisionAPI attributes, slating it for removal in a future release.NewtonSiteAPI to declare sites, MjcSiteAPI auto applies this schema, but remains as an extension for the mjc:group attribute.NewtonMaterialAPI (newton:contactAdhesion, newton:torsionalFriction, newton:rollingFriction). This deprecates MjcMaterialAPI which will be removed in a future release.NewtonMimicAPI (newton:mimicJoint, newton:mimicCoef0, newton:mimicCoef1) as a base for MjcEqualityJointAPI, this deprecates the mjc:coef0 and mjc:coef1 attributes and the mjc:target relationship.NewtonArticulationRootAPI (newton:jointsAddMobility).[!CAUTION] Breaking ABI changes 23. 279df98c
mjsActuatorgainedvelrangeandffrangefields, changing its size and layout. ThemjtGainandmjtDynenums gainedpidmembers, shifting the values ofmjGAIN_USERandmjDYN_USER. 24. 596b6f43mjResourcegained anargsfield (changing its size and layout), used to hold optional extra encoding and decoding arguments formatted as URI query parameters (separated by&).
…bindings at runtime. The field ngravcomp is deprecated and will be removed in a future release.
4787c809 Added geom/surfacevel: the velocity of a geom's surface as seen by contacts, given as a velocity field with a constant component and a rotational component about the geom frame origin. This allows conveyor belts, treadmills and turntables to be modeled with static geoms and no degrees of freedom: friction drives touching bodies along the motion of the surface, with the field projected onto each contact's tangent plane. Surface velocities compose correctly with each other and with body motion. Note that the contact rows of mjData.efc_vel, and the constraint-state sensors that read them, report the velocity relative to the moving surface rather than to the geom, since that is the quantity the constraint acts on; for geoms without surfacevel the two are identical. Contact-point visualization draws an arrow along the surface velocity at contacts with moving surfaces.
a264d0bc Added geom/adhesion and pair/adhesion: an adhesive force associated with a contact, useful for modeling sticky materials. Contacts can pull with up to the given force before breaking, and the friction budget becomes $\mu(f_N + \text{adhesion})$. Combined with gap, adhesive contacts apply "adhesion at a distance", useful for modeling magnets. Resting penetration is unaffected by adhesion. mj_contactForce reports the net interface force, whose normal component can now be negative.
f0fa3d82 Replaced midpoint integration of free bodies with gyroscopic derivatives in the implicitfast integrator: the bias-force derivative of every standalone free body is applied via a local unsymmetric solve of its decoupled block, making implicitfast identical to implicit for such bodies. Unlike midpoint integration, which required vacuum and no constraints, this applies in all environments (contacts, fluid, constraints), and is compatible with discrete-time inverse dynamics. Spinning free bodies no longer gain energy, but tumbling motion is now mildly damped; models requiring long-horizon energy conservation of tumbling bodies in vacuum should use RK4. The invdiscrete flag no longer has any effect on forward dynamics.
5618666a Added body/simple attribute ("false"/"auto") to disable the simple body mass matrix optimization. This is useful for domain randomization, where model parameters may change post-compilation.
14c0b0c9 mj_setConst now recomputes the mjModel.{body,geom,site}_sameframe flags, to account for changes in body/geom/site frames after compilation.
2444defc Added support for multiccd with arbitrarily large meshes.
a04b0c5b Added flg_gravcomp and flg_surfacevel boolean flags to mjModel. These flags replace the fast-path checks as originally guarded by ngravcomp. Since the engine uses these integers as flags (zero vs. non-zero), the new flags are honest boolean properties, writeable from the Python bindings at runtime. The field ngravcomp is deprecated and will be removed in a future release.
a1f38c8e Replaced quadratic scratch in DFS flood-fill island discovery with a linear-memory Union-Find (disjoint set). Contribution by @teerthsharma.
[!WARNING] Breaking API changes
- ff629889 Changed the default value of sleep_tolerance from 1e-4 to 1e-3 (1mm/sec in SI units).
- 315bcfbf Removed the legacy sparse ancestor-walk inertia matrix
mjData.qM. The joint-space inertia matrix is now stored exclusively in the compressed sparse row (CSR) formatmjData.M.- 7e9ac58f Switched mjd_inverseFD to use the CSR-format
mjData.Mrepresentation instead of the legacymjData.qMfor the mass matrix derivative. This changes the shape of theDmDqparameter from(nv x nM)to(nv x nC).- 1ea2d884 mju_round now breaks ties away from zero rather than towards $+\infty$. This only affects negative half-integers, e.g.
mju_round(-2.5)now returns -3 rather than -2.- fa36015b Removed unneeded
mjvSceneargument from mjv_moveCamera.- ba9a6503 Split up mjrfMeshData into
mjrfMeshDataandmjrfMeshConfigto allow reuploading of mesh data without having to recreate the mesh object. Introduces mjrf_defaultMeshConfig and mjrf_setMeshData functions.- ba9a6503 Removed
bytesfield from mjrVertexAttribute.
[!CAUTION] Breaking ABI changes
- 072e963f mjModel gained the
actuator_ctrlspecfield (input signature of each actuator), and mjsActuator gainedctrlspec, changing their size and layout. The mjtGain and mjtBias enums gainedso3members, shifting the values ofmjGAIN_USERandmjBIAS_USER.- d43c3ed4 Added
texid,texuniformandtexrepeatfields to mjvGeom.- a264d0bc The mjContact struct gained an
adhesionmember, changing its size and layout.
[!NOTE] Bug fixes
- dddb2767 Fixed a bug where
body_marginexcludedgap, causing the mid-phase collision filter to incorrectly prune in-gap contacts on multi-geom bodies.
d507e921 Refactored actuator infrastructure in preparation for MIMO (multi-input multi-output) actuator support. Each actuator now has ctrlnum (number of controls) and outnum (number of force outputs). The total counts nu = sum(ctrlnum) and nout = sum(outnum) dimension mjData.ctrl and mjData.actuator_force, respectively, nactuator is the number of actuators. For existing actuators ctrnum = outnum = 1, so nactuator == nu == nout and existing code is unaffected.
56a93979 Setpoints of position and intvelocity servos acting on 3D rotational transmissions (ball joints, or site transmissions with a refsite and purely rotational gear) are now interpreted on the circle: the force uses the setpoint representative nearest the current angle, so targets winding beyond half a turn are tracked continuously instead of slipping by full turns. Behavior is identical whenever the error does not exceed π. Relatedly, intvelocity actuators now expose actlimited, which was previously hardcoded to "true": as for general actuators it defaults to "auto", so activation clamping is enabled by specifying actrange. Unclamped integrated setpoints are well-behaved on rotational transmissions, where they wrap.
072e963f Added the orientation actuator: a geodesic servo on a new SO(3) transmission (ball joints, or a site with a refsite), acting jointly on the full relative orientation with an exact equilibrium at every commanded orientation. This is the first actuator with multiple force outputs (3), and, with input="quat", the first with different input and output dimensions (4 controls, 3 outputs). The input signature is recorded in the new mjModel.actuator_ctrlspec, exposed as the input attribute.
072e963f Added mj_actuatorInputName, returning the name of an actuator input (e.g. "qw" for the first control of a quaternion-commanded orientation actuator). The control sliders in simulate and MuJoCo Studio are now generated per control and labeled with the actuator name plus the input name suffix.
072e963f Viewer control sliders now use a defined ctrlrange even when ctrllimited is "false": the range sets the slider span, while clamping remains controlled by ctrllimited.
072e963f Added mj_resetCtrl, setting controls to neutral values: zero, except quaternion inputs which reset to the identity quaternion. Called by mj_resetData and the viewers' "Clear All".
ea230a95 Flex elasticity (stretch, bending, interpolation stiffness) is now integrated implicitly inside the CG constraint solver via an effective metric: the mass matrix is augmented with the stiffness Hessian, so contact and elastic forces are solved against one consistent metric. This replaces the previous post-hoc CG correction, which modified qacc after the constraint solve. The gate is solver="CG" with an implicit integrator and flex stiffness present; Newton and PGS are unaffected. Bending-only models pay zero per-step factorization cost (the factor is precomputed in mj_setConst). Inverse dynamics (mj_inverse) is now discrete-consistent with forward dynamics for gated models.
c499f7f2 Added Nesterov momentum extrapolation with adaptive gradient restart (O'Donoghue-Candès) to the PGS solver, significantly improving convergence. Overall PGS now requires ~2x fewer iterations.
1e66efd1 Added the Newton decrement -- the quadratic model's predicted cost improvement of the next iteration -- as a third early-termination criterion of the Newton solver, alongside cost improvement and gradient norm. This reduces iteration counts at no accuracy cost. Proposed by @adenzler-nvidia in MJWarp pull request 1520.
c69ef030 The CG and Newton solvers now terminate with zero iterations when a duality-gap certificate proves that the warmstarted solution already satisfies the tolerance. The certificate requires only the existing mass-matrix factorization, so quiescent scenes skip Hessian construction, factorization and the line search entirely. Newton zero-iteration exits additionally require the gradient criterion, preserving Newton's characteristic force-level accuracy. See Warmstart in the Computation chapter for details.
4e1795b9 mj_encode now supports encoding of MJB and TXT files.
c6c3ec31 The attach element now supports self-attachment (attaching elements of the current model to itself) by omitting the model attribute. It also supports attaching a frame via the new frame attribute, which is mutually exclusive with body.
040872fd Fixed loading of .mjz archives in simulate: the archive was unmounted before model compilation, so assets failed to load. Failures in the mjz decoder now emit a warning with the underlying error instead of the generic "could not decode content" message.
ebd4abae The mjz decoder now searches for model.xml and <stem>/model.xml as a fallback if <stem>.xml and <stem>/<stem>.xml are not found.
dc7581ac Added support for resource writing via mju_writeResource and the write callback in mjpResourceProvider.
[!WARNING] Breaking API changes
[!NOTE] Bug fixes
- f5f9d9ef Fixed a bug in the mesh compiler where normals were scaled as vectors rather than covectors.
.mjz / .zip).See the changelog
See the changelog
b935d415 Added mju_threadpool , a new function for creating a thread pool on an mjData instance. When a thread pool is initialized, parts of the simulation pipeline, such as collision detection and constraint solving across islands, are parallelized. The thread pool is automatically destroyed when the mjData is freed.
58f6d524 Added a unified logging API :
All errors, warnings, and informational messages are now routed through a single mjfLogHandler callback receiving a structured mjLogMessage .
Users can install a custom handler via mju_setLogHandler , configure the default handler’s behavior (console/file output, topic filtering) via mju_setLogConfig .
Messages can be emitted via mju_info and mju_message .
New types: mjtLogLevel , mjtLogTopic , mjLogMessage , mjLogConfig .
The legacy callbacks mju_user_error and mju_user_warning are deprecated but remain functional.
6f8bb5ef Added mjs_numWarnings and mjs_getWarning for retrieving all warnings accumulated during model compilation and attachment. Deprecated mjs_isWarning in favor of mjs_numWarnings(s) > 0 .
410c7316 Added the compiler/conflict attribute for controlling how conflicting global attributes are resolved during attachment . Possible values are “warning” (default: parent values take precedence, warnings emitted on conflicts), “merge” (per-field min/max/error strategy), and “error” (any conflict raises an error). See Attribute Merging for details.
Future breaking API changes
The current default conflict resolution policy “warn” (ignore the child model) is backward compatible. However, the default policy will change to “merge” in a future release.
cd6db9eb Improved primal solver convergence under float32. Improvements initially proposed by @n3b in issue #2313 and @adenzler-nvidia in MJWarp pull request 1374 .
828052e6 The CG solver now uses the Hager-Zhang conjugate direction update instead of the Polak-Ribiere-Plus formula. This improves convergence and leads to a significant speedup under float32.
4c381635 Added mjs_makeFlex , a new C API function equivalent to the flexcomp element for programmatically creating flex objects with auto-generated bodies, joints, and equality constraints. Exposed as body.make_flex() in Python.
7a7dc7cc Added support for loading 1D flex components from OBJ line segments
ea2d785e Significantly improved the quality of coarse convex hulls produced by the maxhullvert attribute by invoking Qhull’s Q9 option.
Breaking API changes
b935d415 The header file mjthread.h was removed along with the old engine threading API.
Migration: Use mju_threadpool to set number of worker threads for the engine.
96bf8aea Moved island sparse matrix construction from mj_island (single threaded) into mj_fwdConstraint (multi-threaded). The island-specific matrices iM, iLD, iefc_J were removed from the arena and are now allocated on the stack.
4548e81e Following the introduction of the diagexact flag, the mjData field efc_diagApprox was renamed to efc_diagA , as it can now be either the exact or approximate diagonal of the (A) (“Delassus”) matrix.
062b0f1e The deprecated functions mju_{error,warning}_{i,s} have been removed.
7b9b8806 Changed the signature of mj_fullM from mj_fullM(m, dst, M) to mj_fullM(m, d, dst) as part of the planned deprecation of mjData.qM in favor of the CSR-format mjData.M .
Migration: For inertia matrix conversion, replace mj_fullM(m, dst, d->qM) with mj_fullM(m, d, dst) or mju_sym2dense(dst, d->M, m->nv, m->M_rownnz, m->M_rowadr, m->M_colind) .
a8eaccd2 Fixed a vulnerability in the System Identification toolbox where loading a trajectory or time series called np.load with allow_pickle=True , allowing arbitrary code execution from a malicious .npz file. Signal metadata is now serialized as JSON and loaded with allow_pickle=False .
b9fb817a Fixed a bug in the mjz decoder where unnormalized paths would fail to be read.
986d73c0 Fixed a bug where the mesh compiler would produce non-unit convex hull polygon normals.
b935d415 Added mju_threadpool, a new function for creating a thread pool on an mjData instance. When a thread pool is initialized, parts of the simulation pipeline, such as collision detection and constraint solving across islands, are parallelized. The thread pool is automatically destroyed when the mjData is freed.
58f6d524 Added a unified logging API:
All errors, warnings, and informational messages are now routed through a single mjfLogHandler callback receiving a structured mjLogMessage.
Users can install a custom handler via mju_setLogHandler, configure the default handler's behavior (console/file output, topic filtering) via mju_setLogConfig.
Messages can be emitted via mju_info and mju_message.
New types: mjtLogLevel, mjtLogTopic, mjLogMessage, mjLogConfig.
The legacy callbacks mju_user_error and mju_user_warning are deprecated but remain functional.
6f8bb5ef Added mjs_numWarnings and mjs_getWarning for retrieving all warnings accumulated during model compilation and attachment. Deprecated mjs_isWarning in favor of mjs_numWarnings(s) > 0.
410c7316 Added the compiler/conflict attribute for controlling how conflicting global attributes are resolved during attachment. Possible values are "warning" (default: parent values take precedence, warnings emitted on conflicts), "merge" (per-field min/max/error strategy), and "error" (any conflict raises an error). See Attribute Merging for details.
Future breaking API changes
The current default conflict resolution policy "warn" (ignore the child model) is backward compatible. However, the default policy will change to "merge" in a future release.
cd6db9eb Improved primal solver convergence under float32. Improvements initially proposed by n3b in 2313 and adenzler-nvidia in MJWarp pull request 1374.
828052e6 The CG solver now uses the Hager-Zhang conjugate direction update instead of the Polak-Ribiere-Plus formula. This improves convergence and leads to a significant speedup under float32.
4c381635 Added mjs_makeFlex, a new C API function equivalent to the flexcomp element for programmatically creating flex objects with auto-generated bodies, joints, and equality constraints. Exposed as body.make_flex() in Python.
7a7dc7cc Added support for loading 1D flex components from OBJ line segments
ea2d785e Significantly improved the quality of coarse convex hulls produced by the maxhullvert attribute by invoking Qhull's Q9 option.
Breaking API changes
b935d415 The header file mjthread.h was removed along with the old engine threading API. |br| Migration: Use mju_threadpool to set number of worker threads for the engine.
96bf8aea Moved island sparse matrix construction from mj_island (single threaded) into mj_fwdConstraint (multi-threaded). The island-specific matrices iM, iLD, iefc_J were removed from the arena and are now allocated on the stack.
4548e81e Following the introduction of the diagexact flag, the mjData field efc_diagApprox was renamed to efc_diagA, as it can now be either the exact or approximate diagonal of the A ("Delassus") matrix.
062b0f1e The deprecated functions mju_{error,warning}_{i,s} have been removed.
7b9b8806 Changed the signature of mj_fullM from mj_fullM(m, dst, M) to mj_fullM(m, d, dst) as part of the planned deprecation of mjData.qM in favor of the CSR-format mjData.M.
Migration: For inertia matrix conversion, replace mj_fullM(m, dst, d->qM) with mj_fullM(m, d, dst) or mju_sym2dense(dst, d->M, m->nv, m->M_rownnz, m->M_rowadr, m->M_colind).
a8eaccd2 Fixed a vulnerability in the System Identification toolbox where loading a trajectory or time series called np.load with allow_pickle=True, allowing arbitrary code execution from a malicious .npz file. Signal metadata is now serialized as JSON and loaded with allow_pickle=False.
b9fb817a Fixed a bug in the mjz decoder where unnormalized paths would fail to be read.
986d73c0 Fixed a bug where the mesh compiler would produce non-unit convex hull polygon normals.
See the changelog
See the changelog
71d1014e Added mjData.efc_Y , the whitened constraint Jacobian (Y = J M^{-1/2}) , allocated in the arena when dual solvers (PGS or NoSlip) are used or when diagexact is enabled.
71d1014e Added the diagexact enable flag, which computes the exact diagonal of the constraint-space inertia matrix at the current configuration, replacing the default compile-time approximation. This improves solver quality for models with anisotropic inertias or complex kinematic coupling. See Exact diagonal for details.
7bfdbad8 The pseudo-random constraint visitation order in the PGS solver , introduced in the previous release, now uses a fixed seed. The previous implementation seeded with mjData.time , which introduced subtle yet undesirable time dependence.
f712eed4 Flexes are now allowed to sleep, with the exception of completely passive (constraint-free) flexes.
bdf00966 Added compiler timing diagnostics via the new mjtCTimer enum and the mjs_getTimer C API. After mj_compile , per-category timings (total, assets, mesh loading, convex hull, normals, inertia, BVH, octree, textures) are available via mjs_getTimer(spec) . The compile sample prints a detailed timing breakdown when run without an output file.
393c1e42 Added mjtBool to represent boolean variables, replacing mjtByte across all boolean fields in mjModel , mjData , and public C API function signatures.
Breaking API changes
a4e49f2d The semantics of the contact margin and gap parameters have been redesigned for conceptual clarity and consistency with Newton . See the new margin and gap documentation section for details.
Previously, margin controlled the detection threshold (contacts exist when dist < margin ) and gap was subtracted from it to produce the force threshold (forces generated when dist < margin - gap ). This was unintuitive: users expected margin to mean geometric inflation and gap to mean a spatial gap.
Under the new semantics, margin is the geometric inflation of the geom surface and gap is an additional detection buffer beyond the inflated surface:
Detection : contacts are created when dist < margin + gap .
Force generation : constraint forces are applied when dist < margin .
Inactive contacts : contacts with margin < dist ≤ margin + gap are included in mjData.contact but generate no force ( efc_address = -1 ). This is useful for adhesion actuators and custom callbacks.
With the default values margin = 0 , gap = 0 , the behavior is unchanged.
Migration: Models that use the default gap="0" (the vast majority) require no changes. For models with gap > 0 , apply the following transformation to preserve identical behavior:
margin_new = margin_old - gap_old gap_new = gap_old
For example, a geom with the old attributes margin="0.1" gap="0.1" should be changed to margin="0" gap="0.1" .
Negative margin values are now permitted (corresponding to gap > margin under the old semantics). The constraint margin + gap >= 0 should be maintained to ensure valid collision detection.
7174d33f The mjfCollision functions now populate the mjPreContact struct instead of the mjContact struct. The mjPreContact only contains the necessary fields needed for the narrowphase collision detection.
2810edd2 The header file mjtnum.h was renamed to mjtype.h https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjtype.h and now includes all enum type definitions.
f6cd0234 The tactile sensor now reports raw depth instead of an estimated pressure.
072125c4 MJX: Removed the deprecated nconmax argument from mjx.make_data and mjx.put_data in favor of naconmax .
15d27b36 Maybe-breaking: Added mjassert.h , a new header containing compile-time assertions that verify the sizes of MuJoCo’s public types for ABI stability. This is a first step towards replacing int with strongly-typed enums in the public API. If these assertions fail on your compiler or platform, please report the issue on GitHub.
71d1014e Added mjData.efc_Y, the whitened constraint Jacobian Y = J M^{-1/2}, allocated in the arena when dual solvers (PGS or NoSlip) are used or when diagexact is enabled.
71d1014e Added the diagexact enable flag, which computes the exact diagonal of the constraint-space inertia matrix at the current configuration, replacing the default compile-time approximation. This improves solver quality for models with anisotropic inertias or complex kinematic coupling. See Exact diagonal for details.
7bfdbad8 The pseudo-random constraint visitation order in the PGS solver, introduced in the previous release, now uses a fixed seed. The previous implementation seeded with mjData.time, which introduced subtle yet undesirable time dependence.
f712eed4 Flexes are now allowed to sleep, with the exception of completely passive (constraint-free) flexes.
bdf00966 Added compiler timing diagnostics via the new mjtCTimer enum and the mjs_getTimer C API. After mj_compile, per-category timings (total, assets, mesh loading, convex hull, normals, inertia, BVH, octree, textures) are available via mjs_getTimer(spec). The compile sample prints a detailed timing breakdown when run without an output file.
393c1e42 Added mjtBool to represent boolean variables, replacing mjtByte across all boolean fields in mjModel, mjData, and public C API function signatures.
Breaking API changes
a4e49f2d The semantics of the contact margin and gap parameters have been redesigned for conceptual clarity and consistency with Newton. See the new margin and gap documentation section for details.
Previously, margin controlled the detection threshold (contacts exist when dist < margin) and gap was subtracted from it to produce the force threshold (forces generated when dist < margin - gap). This was unintuitive: users expected margin to mean geometric inflation and gap to mean a spatial gap.
Under the new semantics, margin is the geometric inflation of the geom surface and gap is an additional detection buffer beyond the inflated surface:
Detection: contacts are created when dist < margin + gap.
Force generation: constraint forces are applied when dist < margin.
Inactive contacts: contacts with margin < dist ≤ margin + gap are included in mjData.contact but generate no force (efc_address = -1). This is useful for adhesion actuators and custom callbacks.
With the default values margin = 0, gap = 0, the behavior is unchanged.
Migration: Models that use the default gap="0" (the vast majority) require no changes. For models with gap > 0, apply the following transformation to preserve identical behavior:
margin_new = margin_old - gap_old
gap_new = gap_old
For example, a geom with the old attributes margin="0.1" gap="0.1" should be changed to margin="0" gap="0.1".
Negative margin values are now permitted (corresponding to gap > margin under the old semantics). The constraint margin + gap >= 0 should be maintained to ensure valid collision detection.
7174d33f The mjfCollision functions now populate the mjPreContact struct instead of the mjContact struct. The mjPreContact only contains the necessary fields needed for the narrowphase collision detection.
2810edd2 The header file mjtnum.h was renamed to mjtype.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjtype.h> and now includes all enum type definitions.
f6cd0234 The tactile sensor now reports raw depth instead of an estimated pressure.
072125c4 MJX: Removed the deprecated nconmax argument from mjx.make_data and mjx.put_data in favor of naconmax.
15d27b36 Maybe-breaking: Added mjassert.h, a new header containing compile-time assertions that verify the sizes of MuJoCo's public types for ABI stability. This is a first step towards replacing int with strongly-typed enums in the public API. If these assertions fail on your compiler or platform, please report the issue on GitHub.
See the changelog
See the changelog
647af382 Added island support for the PGS solver .
4ed69b5c The PGS solver now iterates over constraints in pseudo-random order, improving performance by ~20%.
b9c1877e Added support for elastic2d for trilinear and quadratic flex dofs .
910b3336 Midpoint integration is now restricted to the implicitfast integrator and is disabled when fluid forces are active (nonzero density or viscosity ). Midpoint integration treats external forces as zero-order-hold constants, which causes energy gain in the presence of contacts and in fluid media.
ec50260e Added mjs_getOriginSpec , returning the spec that originally defined an element, prior to attachment. This is in contrast to mjs_getSpec which returns the spec currently owning the element. If the element is not the result of an attach operation, the functions are identical.
767c607f Added mju_sym2dense , converting a lower-triangular, implicitly symmetric CSR matrix to a dense symmetric matrix. The inertia matrix mjData.M is an example of such a matrix.
Future breaking API changes
767c607f The introduction of mju_sym2dense is a step towards the removal of the legacy-format mjData.qM in favor of the CSR-format mjData.M . This removal will involve a future breaking change to mj_fullM (which currently accepts a qM -like matrix as an argument). To prevent a future breakage, replace mj_fullM(m, dst, d->qM) with
mju_sym2dense(dst, d->M, m->nv, m->M_rownnz, m->M_rowadr, m->M_colind) .
3e960ba3 Fixed default for multiccd in mjcPhysics .
d92fe081 Added MjSpec.encode method, wrapping mj_encode .
723b8b1e Added mujoco.MjVfs Python binding to interact with the Virtual File System directly from Python. See Virtual File System for usage details.
Warning
The previous way of passing assets via a dictionary mapping asset names to bytes is deprecated and will be removed in an upcoming release. You cannot specify both the assets dictionary and the vfs argument at the same time. MjVfs should be used as a drop-in replacement.
647af382 Added island support for the PGS solver.
4ed69b5c The PGS solver now iterates over constraints in pseudo-random order, improving performance by ~20%.
b9c1877e Added support for elastic2d for trilinear and quadratic flex dofs.
910b3336 Midpoint integration is now restricted to the implicitfast integrator and is disabled when fluid forces are active (nonzero density or viscosity). Midpoint integration treats external forces as zero-order-hold constants, which causes energy gain in the presence of contacts and in fluid media.
ec50260e Added mjs_getOriginSpec, returning the spec that originally defined an element, prior to attachment. This is in contrast to mjs_getSpec which returns the spec currently owning the element. If the element is not the result of an attach operation, the functions are identical.
767c607f Added mju_sym2dense, converting a lower-triangular, implicitly symmetric CSR matrix to a dense symmetric matrix. The inertia matrix mjData.M is an example of such a matrix.
Future breaking API changes
767c607f The introduction of mju_sym2dense is a step towards the removal of the legacy-format mjData.qM in favor of the CSR-format mjData.M. This removal will involve a future breaking change to mj_fullM (which currently accepts a qM-like matrix as an argument). To prevent a future breakage, replace mj_fullM(m, dst, d->qM) with |br| mju_sym2dense(dst, d->M, m->nv, m->M_rownnz, m->M_rowadr, m->M_colind).
3e960ba3 Fixed default for multiccd in mjcPhysics.
d92fe081 Added MjSpec.encode method, wrapping mj_encode.
723b8b1e Added mujoco.MjVfs Python binding to interact with the Virtual File System directly from Python. See Virtual File System for usage details.
Warning
The previous way of passing assets via a dictionary mapping asset names to bytes is deprecated and will be removed in an upcoming release. You cannot specify both the assets dictionary and the vfs argument at the same time. MjVfs should be used as a drop-in replacement.
See the changelog
See the changelog
a04cf1b2 Added support for Python 3.14.
2f2d00da Added multi-cell support for trilinear and quadratic flexes. Note that the implicit integrator uses a dense solver for the flex degrees of freedom, which can be slow for multi-cell flexes.
3d45a331 Refactored strain flex equality constraints to be instantiated per cell instead of per flex object, reducing the number of degrees of freedom per constraint row. The equality can be associated with a specific cell with the new attribute cell
33259718 Added new mj_maxContact function to get the maximum number of possible contacts returned by colliding two geoms.
4cfebcc3 Added mj_containsBufferVFS and mj_containsFileVFS to check for existence of buffers and files in VFS.
Breaking API changes
6cb6e5a9 The multiccd option (multiple contacts returned from the convex collision detection pipeline) is now enabled by default. The new implementation (as opposed to the legacy pipeline) has little performance overhead and improves stability.
Migration: Disable multiccd to recover the previous behavior.
2f5e5d3d Added documentation for mjpDecoder plugins.
da01bd37 Asset paths in attached child specs are now resolved relative to the model file directory of the child spec, rather than the parent spec. This prevents the origin of the parent spec to affect the resolution of asset paths in the child spec.
a04cf1b2 Added support for Python 3.14.
2f2d00da Added multi-cell support for trilinear and quadratic flexes. Note that the implicit integrator uses a dense solver for the flex degrees of freedom, which can be slow for multi-cell flexes.
3d45a331 Refactored strain flex equality constraints to be instantiated per cell instead of per flex object, reducing the number of degrees of freedom per constraint row. The equality can be associated with a specific cell with the new attribute cell
33259718 Added new mj_maxContact function to get the maximum number of possible contacts returned by colliding two geoms.
4cfebcc3 Added mj_containsBufferVFS and mj_containsFileVFS to check for existence of buffers and files in VFS.
Breaking API changes
6cb6e5a9 The multiccd option (multiple contacts returned from the convex collision detection pipeline) is now enabled by default. The new implementation (as opposed to the legacy pipeline) has little performance overhead and improves stability.
Migration: Disable multiccd to recover the previous behavior.
2f5e5d3d Added documentation for mjpDecoder plugins.
da01bd37 Asset paths in attached child specs are now resolved relative to the model file directory of the child spec, rather than the parent spec. This prevents the origin of the parent spec to affect the resolution of asset paths in the child spec.
See the changelog
See the changelog
70a7647a Added the dcmotor actuator for modeling DC motors. Supports optional electrical dynamics (inductance), cogging torque, thermal resistance variation, and LuGre friction. See the technical note for more details.
510d75f4 Actuators with joint or tendon transmissions can now contribute damping and armature to their transmission target. These are applied during the passive force and inertia computations, respectively, and are scaled by gear 2 (“reflected” damping/inertia).
efae9157 Stiffness in joints and tendons and damping in joints and tendons now support nonlinear polynomial force profiles . New mjModel arrays ( jnt_stiffnesspoly , tendon_stiffnesspoly , dof_dampingpoly , tendon_dampingpoly ) hold higher-order coefficients. The existing scalar arrays ( jnt_stiffness , dof_damping , etc.) continue to hold the linear coefficient and are unchanged. The polynomial order is defined by the new constant mjNPOLY . A future breaking C-API change may unify the linear and higher-order coefficients into a single array.
0c337799 Added midpoint integration for standalone free bodies in implicit and implicitfast integrators . This applies the implicit midpoint rule to the rotational dynamics of free bodies with no children, conserving kinetic energy to machine precision in the absence of external torques. The invdiscrete flag now also disables midpoint integration, providing an opt-out mechanism.
412cee20 Added the centripetal/Coriolis acceleration term (\dot{J}v) to the constraint solver bias for connect and weld equality constaints. This significantly improves the stability of constrained mechanisms like four-bar linkages. See Dual problem for details.
f5d3ce34 Introduced mjpEncoder , the counterpart to mjpDecoder for encoding of mjSpec and mjModel into mjResource .
f5d3ce34 Added mj_encode , mjp_registerEncoder , mjp_defaultEncoder , and mjp_findEncoder .
Breaking API changes
efae9157 The mjs layer fields stiffness and damping in mjsJoint and mjsTendon have been widened from mjtNum scalars to mjtNum[mjNPOLY+1] arrays. The first element is the linear coefficient (previously the scalar), and subsequent elements are the higher-order polynomial coefficients.
Migration: Replace assignments like joint.stiffness = val with joint.stiffness[0] = val .
15ca42ff .obj and .stl decoders are now included as source when building MuJoCo with CMake. This fixes the behaviour from the previous release where it required downstream code to load these plugins explicitly.
4b1667e4 The vertcollide field in mjsFlex has been removed. It is no longer required since MuJoCo Warp supports native flex collisions.
f2461f9c mjPLUGIN_LIB_INIT macro now requires a name argument to avoid initialization function name collisions. When building with MSVC, we now use the C runtime initialization section to initialize plugins instead of DllMain . See plugin registration for more details.
0e04436d The mjtWarning enum value mjWARN_VGEOMFULL is removed. Exhaustion of visual geoms is now handled internally by the mjvScene .
7ae07d81 URDF parsing no longer hardcodes strippath to “true”. The setting is now respected and the default is “false”. Setting this is attribute is now the responsibility of the user.
Migration: Set strippath to “true” in MJCF or programmatically using
spec = mujoco . MjSpec . from_file ( "path/to/model.urdf" ) spec . compiler . strippath = True
ecc22667 The compiler now correctly accounts for negative scaling when loading user specified mesh data.
70a7647a Added the dcmotor actuator for modeling DC motors. Supports optional electrical dynamics (inductance), cogging torque, thermal resistance variation, and LuGre friction. See the technical note for more details.
510d75f4 Actuators with joint or tendon transmissions can now contribute damping and armature to their transmission target. These are applied during the passive force and inertia computations, respectively, and are scaled by gear2 ("reflected" damping/inertia).
efae9157 Stiffness in joints and tendons and damping in joints and tendons now support nonlinear polynomial force profiles. New mjModel arrays (jnt_stiffnesspoly, tendon_stiffnesspoly, dof_dampingpoly, tendon_dampingpoly) hold higher-order coefficients. The existing scalar arrays (jnt_stiffness, dof_damping, etc.) continue to hold the linear coefficient and are unchanged. The polynomial order is defined by the new constant mjNPOLY. A future breaking C-API change may unify the linear and higher-order coefficients into a single array.
0c337799 Added midpoint integration for standalone free bodies in implicit and implicitfast integrators. This applies the implicit midpoint rule to the rotational dynamics of free bodies with no children, conserving kinetic energy to machine precision in the absence of external torques. The invdiscrete flag now also disables midpoint integration, providing an opt-out mechanism.
412cee20 Added the centripetal/Coriolis acceleration term dot{J}v to the constraint solver bias for connect and weld equality constaints. This significantly improves the stability of constrained mechanisms like four-bar linkages. See Dual problem for details.
f5d3ce34 Introduced mjpEncoder, the counterpart to mjpDecoder for encoding of mjSpec and mjModel into mjResource.
f5d3ce34 Added mj_encode, mjp_registerEncoder, mjp_defaultEncoder, and mjp_findEncoder.
Breaking API changes
efae9157 The mjs layer fields stiffness and damping in mjsJoint and mjsTendon have been widened from mjtNum scalars to mjtNum[mjNPOLY+1] arrays. The first element is the linear coefficient (previously the scalar), and subsequent elements are the higher-order polynomial coefficients.
Migration: Replace assignments like joint.stiffness = val with joint.stiffness[0] = val.
15ca42ff .obj and .stl decoders are now included as source when building MuJoCo with CMake. This fixes the behaviour from the previous release where it required downstream code to load these plugins explicitly.
4b1667e4 The vertcollide field in mjsFlex has been removed. It is no longer required since MuJoCo Warp supports native flex collisions.
f2461f9c mjPLUGIN_LIB_INIT macro now requires a name argument to avoid initialization function name collisions. When building with MSVC, we now use the C runtime initialization section to initialize plugins instead of DllMain. See plugin registration for more details.
0e04436d The mjtWarning enum value mjWARN_VGEOMFULL is removed. Exhaustion of visual geoms is now handled internally by the mjvScene.
7ae07d81 URDF parsing no longer hardcodes strippath to "true". The setting is now respected and the default is "false". Setting this is attribute is now the responsibility of the user.
Migration: Set strippath to "true" in MJCF or programmatically using
spec = mujoco.MjSpec.from_file("path/to/model.urdf")
spec.compiler.strippath = True
ecc22667 The compiler now correctly accounts for negative scaling when loading user specified mesh data.
See the changelog
See the changelog
Breaking API changes
9efe41c0 The tendon Jacobian ten_J is now always sparse. The fields ten_J_rownnz , ten_J_rowadr , and ten_J_colind have been moved from mjData to mjModel and are no longer computed at run time by mj_tendon but at compile time.
6890e133 Added mjs_getCompiler C API function and a compiler read-only property to all Python spec element types. This allows querying the compiler settings (e.g., meshdir ) from any element, with the correct originating spec’s compiler preserved after attachment.
713b5524 Added a new strain equality constraint type for trilinear and quadratic dofs .
bf74d01d Flexes now support collisions with SDF geoms.
5903d482 Improved memory requirements for ten_J and ten_J_colind by reducing the upper bound for the number of non-zeros nJten .
37e993f6 Improved memory requirements for actuator_moment and moment_colind by reducing the upper bound for the number of non-zeros nJmom .
62a32386 Add batch rendering support for MJX-Warp. See the MJX-Warp batch rendering section for details.
6ec808e2 Fixed a bug where mjs_attach silently dropped spatial tendons with wrapping geometries that had no sidesite attribute ( issue #3119 , reported by @tomstewart89 ).
Breaking API changes
9efe41c0 The tendon Jacobian ten_J is now always sparse. The fields ten_J_rownnz, ten_J_rowadr, and ten_J_colind have been moved from mjData to mjModel and are no longer computed at run time by mj_tendon but at compile time.
6890e133 Added mjs_getCompiler C API function and a compiler read-only property to all Python spec element types. This allows querying the compiler settings (e.g., meshdir) from any element, with the correct originating spec's compiler preserved after attachment.
713b5524 Added a new strain equality constraint type for trilinear and quadratic dofs.
bf74d01d Flexes now support collisions with SDF geoms.
5903d482 Improved memory requirements for ten_J and ten_J_colind by reducing the upper bound for the number of non-zeros nJten.
37e993f6 Improved memory requirements for actuator_moment and moment_colind by reducing the upper bound for the number of non-zeros nJmom.
62a32386 Add batch rendering support for MJX-Warp. See the MJX-Warp batch rendering section for details.
6ec808e2 Fixed a bug where mjs_attach silently dropped spatial tendons with wrapping geometries that had no sidesite attribute (3119, reported by tomstewart89).
See the changelog.
See the changelog.
b64b527e MuJoCo Warp is now officially released.
146a5c08 Added a new System Identification toolbox (Python), see README for details.
A Colab notebook demonstrating the toolbox is available here:
Contribution by @kevinzakka , @aftersomemath , @jonathanembleyriches , @qiayuanl , @spjardim and @gizemozd .
6419534b Actuators and sensors now support arbitrary delays via history buffers, and sensor values can be computed at intervals larger than the simulation timestep. Using a delay or interval introduces a new mjData.history variable to the Physics state . See Delays for details.
7da271c6 Added new flexvert equality constraints that enable cloth simulations with coarser meshes. This adds a new attribute value vert to flexcomp edge equality and the new equality type flexvert . Uses the method described in Chen, Kry and Vouga, 2019 .
0041fdcb Added implicit integration support for deformable objects (flex) in implicit and implicitfast integrators . This method extracts the flex degrees of freedom and solves them as a dense block, enabling increased stability for stiff flex objects without reducing the timestep. It is compatible with the trilinear and quadratic dof types.
9d646e65 Rangefinder sensors can now be attached to a camera using the rangefinder/camera attribute. In this case, the sensor respects the camera/resolution attribute and casts multiple rays, one for each pixel.
ed15493a Rangefinders can now report various kinds of information besides ray distances, including surface normals and intersection points.
Breaking API changes
218226fc Ray-cast functions now optionally compute the surface normal at the ray intersection. This is a breaking change due to the addition of the mjtNum normal[3] argument. The modified functions are mj_ray , mj_multiRay , mju_rayGeom , mj_rayFlex , mj_rayHfield and mj_rayMesh .
Migration: In C/C++, pass NULL to the normal argument. In Python, in all functions except mj_multiRay , it defaults to None , so no action is required.
218226fc mju_rayFlex has been renamed to mj_rayFlex for consistency with other functions that take mjModel* and mjData* arguments.
b8a4ac5d The mjModel.cam_orthographic field has been renamed to cam_projection , with the semantic of a new enum type mjtProjection . This will allow for more projection types in the future like fisheye cameras. Relatedly, the camera/orthographic MJCF attribute for cameras has been renamed to camera/projection and now accepts the values orthographic and perspective .
Migration: Replace orthographic = "false/true" with projection="perspective/orthographic" , respectively.
cb9a9c15 Removed getdir from the mjpResourceProvider struct. All Resource Providers now use the same shared implementation.
6af0d4c8 When combining the margin or gap parameters of two geoms to obtain the parameters of a contact, the respective values are now summed rather than taking the maximum. This allows geom margins to be a proper “inflation” of the geom.
c7f57663 Camera frustum visualization is now triggered by setting resolution to values larger than 1. Relatedly, frustum visualization also works for orthographic cameras. See rangefinder for details.
608115ab Cameras now have an output attribute, parsed into the mjModel.cam_output bitfield. Unused by the renderer, it serves as a convenient location to store a camera’s supported output types.
37762e3f Added mj_mountVFS and mj_unmountVFS functions for mounting a custom VFS provider. Mounting allows providers to be used to open/read/close resources dynamically at arbitrary paths.
1d2d0b1c The optimization whereby sequential collision sensors with identical attributes shared computation has been removed. This results in a (likely minor) performance regression for models which exploited this optimization. To recover the performance, use the fromto and compute the other values manually. If from = fromto[0:3] and to = fromto[3:6] then distance = norm(to-from) and normal = normalize(to-from) .
a5dc57c0 OpenUSD :
Parsing has been moved out of experimental into a mjpDecoder plugin. (documentation pending)
OpenUSD can now be built with the third_party_deps/openusd CMake utility project.
USD_DIR is no longer used by the MuJoCo CMake project, instead use pxr_DIR if you have a pre-built USD library.
Users no longer have to set PXR_PLUGINPATH_NAME environment variable, MuJoCo should load USD plugins automatically.
1ff74ba8 Non-breaking ABI changes:
The type of the sig (signature) argument of mj_stateSize and related functions has been changed from unsigned int to int . Before this change, invalid negative arguments passed to this function would result in a silent implicit cast; now, negativity will trigger an error.
Added a depth rendering flag.
Allocation sizes in mjModel now use 64-bit rather than 32-bit integers to accommodate larger scenes.
1483aefe Added actuator_length , cdof and cdof_dof fields to mjx.Data .
d07f39b4 Add graph_mode argument to put_model to support multiple Warp graph capture modes.
b77977a9 General improvements to the Programming/Simulation chapter. Notably, the main discussion of state has been moved there, and the section on mjModel changes has been expanded.
c5925e7b The usability of the MJCF schema is improved with a collapsible dropdown menu with links to elements and attributes.
c54f1fe3 MuJoCo version numbering is now based on Semantic Versioning, see VERSIONING.md .
b4668294 Fixed a bug in implicit integrator derivatives where actuator velocity derivatives were incorrectly computed when the force was clamped by forcerange .
7f74487a Fixed a bug in implicit integrator derivatives where actuator velocity derivatives did not account for the actearly flag.
64a2345c Multi-threaded mesh processing, enabled by the usethread compiler flag (on by default), was in fact disabled by the flag. Fixing this bug speeds up compilation of mesh-heavy models by (up to) the number of available cores.
223ba99e The vertid argument of mj_rayFlex and mju_raySkin was marked as nullable but was not; it is now nullable.
c1b3b306 Fixed gravcomp being ignored for bodies with no joints nested inside jointed parent bodies ( issue #3066 , reported by @Alex108306 ).
b64b527e MuJoCo Warp is now officially released.
146a5c08 Added a new System Identification toolbox (Python), see README for details. |br| A Colab notebook demonstrating the toolbox is available here: |br| Contribution by kevinzakka, aftersomemath, jonathanembleyriches, qiayuanl, spjardim and gizemozd.
6419534b Actuators and sensors now support arbitrary delays via history buffers, and sensor values can be computed at intervals larger than the simulation timestep. Using a delay or interval introduces a new mjData.history variable to the Physics state. See Delays for details.
7da271c6 Added new flexvert equality constraints that enable cloth simulations with coarser meshes. This adds a new attribute value vert to flexcomp edge equality and the new equality type flexvert. Uses the method described in Chen, Kry and Vouga, 2019.
0041fdcb Added implicit integration support for deformable objects (flex) in implicit and implicitfast integrators. This method extracts the flex degrees of freedom and solves them as a dense block, enabling increased stability for stiff flex objects without reducing the timestep. It is compatible with the trilinear and quadratic dof types.
9d646e65 Rangefinder sensors can now be attached to a camera using the rangefinder/camera attribute. In this case, the sensor respects the camera/resolution attribute and casts multiple rays, one for each pixel.
ed15493a Rangefinders can now report various kinds of information besides ray distances, including surface normals and intersection points.
Breaking API changes
218226fc Ray-cast functions now optionally compute the surface normal at the ray intersection. This is a breaking change due to the addition of the mjtNum normal[3] argument. The modified functions are mj_ray, mj_multiRay, mju_rayGeom, mj_rayFlex, mj_rayHfield and mj_rayMesh.
Migration: In C/C++, pass NULL to the normal argument. In Python, in all functions except mj_multiRay, it defaults to None, so no action is required.
218226fc mju_rayFlex has been renamed to mj_rayFlex for consistency with other functions that take mjModel* and mjData* arguments.
b8a4ac5d The mjModel.cam_orthographic field has been renamed to cam_projection, with the semantic of a new enum type mjtProjection. This will allow for more projection types in the future like fisheye cameras. Relatedly, the camera/orthographic MJCF attribute for cameras has been renamed to camera/projection and now accepts the values orthographic and perspective.
Migration: Replace orthographic = "false/true" with projection="perspective/orthographic", respectively.
cb9a9c15 Removed getdir from the mjpResourceProvider struct. All Resource Providers now use the same shared implementation.
6af0d4c8 When combining the margin or gap parameters of two geoms to obtain the parameters of a contact, the respective values are now summed rather than taking the maximum. This allows geom margins to be a proper "inflation" of the geom.
c7f57663 Camera frustum visualization is now triggered by setting resolution to values larger than 1. Relatedly, frustum visualization also works for orthographic cameras. See rangefinder for details.
608115ab Cameras now have an output attribute, parsed into the mjModel.cam_output bitfield. Unused by the renderer, it serves as a convenient location to store a camera's supported output types.
37762e3f Added mj_mountVFS and mj_unmountVFS functions for mounting a custom VFS provider. Mounting allows providers to be used to open/read/close resources dynamically at arbitrary paths.
1d2d0b1c The optimization whereby sequential collision sensors with identical attributes shared computation has been removed. This results in a (likely minor) performance regression for models which exploited this optimization. To recover the performance, use the fromto and compute the other values manually. If from = fromto[0:3] and to = fromto[3:6] then distance = norm(to-from) and normal = normalize(to-from).
a5dc57c0 OpenUSD:
Parsing has been moved out of experimental into a mjpDecoder plugin. (documentation pending)
OpenUSD can now be built with the third_party_deps/openusd CMake utility project.
USD_DIR is no longer used by the MuJoCo CMake project, instead use pxr_DIR if you have a pre-built USD library.
Users no longer have to set PXR_PLUGINPATH_NAME environment variable, MuJoCo should load USD plugins automatically.
1ff74ba8 Non-breaking ABI changes:
The type of the sig (signature) argument of mj_stateSize and related functions has been changed from unsigned int to int. Before this change, invalid negative arguments passed to this function would result in a silent implicit cast; now, negativity will trigger an error.
Added a depth rendering flag.
Allocation sizes in mjModel now use 64-bit rather than 32-bit integers to accommodate larger scenes.
1483aefe Added actuator_length, cdof and cdof_dof fields to mjx.Data.
d07f39b4 Add graph_mode argument to put_model to support multiple Warp graph capture modes.
b77977a9 General improvements to the Programming/Simulation chapter. Notably, the main discussion of state has been moved there, and the section on mjModel changes has been expanded.
c5925e7b The usability of the MJCF schema is improved with a collapsible dropdown menu with links to elements and attributes.
c54f1fe3 MuJoCo version numbering is now based on Semantic Versioning, see VERSIONING.md.
b4668294 Fixed a bug in implicit integrator derivatives where actuator velocity derivatives were incorrectly computed when the force was clamped by forcerange.
7f74487a Fixed a bug in implicit integrator derivatives where actuator velocity derivatives did not account for the actearly flag.
64a2345c Multi-threaded mesh processing, enabled by the usethread compiler flag (on by default), was in fact disabled by the flag. Fixing this bug speeds up compilation of mesh-heavy models by (up to) the number of available cores.
223ba99e The vertid argument of mj_rayFlex and mju_raySkin was marked as nullable but was not; it is now nullable.
c1b3b306 Fixed gravcomp being ignored for bodies with no joints nested inside jointed parent bodies (3066, reported by Alex108306).
See the changelog.
See the changelog.
8734cab3 Introduced a major new feature: sleeping islands . Preliminary release for early testing, see documentation for details.
3a7aa84e Added “quadratic” option to flexcomp/dof . This type of fast deformable flex object is similar to the “trilinear” option, but it includes curved deformations.
b6f25ca6 Raise an error if there are name collisions also during parsing.
b6f25ca6 Increase Windows stack size to 16MB to enable models with deep nested body hierarchies.
19e2d0ae Added a new pipeline component function mj_fwdKinematics that combines all kinematics-like sub-components. Relatedly, added a clarifying table at the top of the Simulation Pipeline chapter.
2f65e237 Added a new mj_extractState function that allows a subset of a state that was previously returned by mj_getState to be extracted without having to be written back into mjData first.
888d3a7b Added a new mj_copyState function that copies state components from one mjData to another.
ac2cd5df Tendon paths can now be queried from Python via MjsTendon.path , the returned object is iterable and indexing it will give the MjsWrap at the given index in the path.
ac2cd5df MjsWrap now exposes:
type -> mujoco.mjtWrap
target -> MjsSite|MjsJoint|MjsGeom|None
sidesite -> MjsSite|None
coef -> real
divisor -> real
86a77ff8 Non-breaking ABI changes:
mjtSize is now defined as int64_t rather than uint64_t to avoid future type-promotion bugs.
mj_sizeModel now returns an mjtSize rather than an int .
c34ac712 warp-lang optional dependency is updated to 1.10.0. pmap now works with MuJoCo Warp from MJX.
Breaking ABI changes
d0f32a7f mjx.Model.tex_data is now a numpy ndarray instead of a jax.Array, to avoid vmapping over this potentially large array. This may break certain use-cases with Madrona MJX, but we are no longer supporting this codepath. We will be migrating users to a Warp-based batch renderer.
88383684 Fixed a bug in the box-box distance computation. Reported by @nvtw .
8734cab3 Introduced a major new feature: sleeping islands. Preliminary release for early testing, see documentation for details.
3a7aa84e Added "quadratic" option to flexcomp/dof. This type of fast deformable flex object is similar to the "trilinear" option, but it includes curved deformations.
b6f25ca6 Raise an error if there are name collisions also during parsing.
b6f25ca6 Increase Windows stack size to 16MB to enable models with deep nested body hierarchies.
19e2d0ae Added a new pipeline component function mj_fwdKinematics that combines all kinematics-like sub-components. Relatedly, added a clarifying table at the top of the Simulation Pipeline chapter.
2f65e237 Added a new mj_extractState function that allows a subset of a state that was previously returned by mj_getState to be extracted without having to be written back into mjData first.
888d3a7b Added a new mj_copyState function that copies state components from one mjData to another.
ac2cd5df Tendon paths can now be queried from Python via MjsTendon.path, the returned object is iterable and indexing it will give the MjsWrap at the given index in the path.
ac2cd5df MjsWrap now exposes:
type -> mujoco.mjtWrap
target -> MjsSite|MjsJoint|MjsGeom|None
sidesite -> MjsSite|None
coef -> real
divisor -> real
86a77ff8 Non-breaking ABI changes:
mjtSize is now defined as int64_t rather than uint64_t to avoid future type-promotion bugs.
mj_sizeModel now returns an mjtSize rather than an int.
c34ac712 warp-lang optional dependency is updated to 1.10.0. pmap now works with MuJoCo Warp from MJX.
Breaking ABI changes
d0f32a7f mjx.Model.tex_data is now a numpy ndarray instead of a jax.Array, to avoid vmapping over this potentially large array. This may break certain use-cases with Madrona MJX, but we are no longer supporting this codepath. We will be migrating users to a Warp-based batch renderer.
88383684 Fixed a bug in the box-box distance computation. Reported by nvtw.
See the changelog.
See the changelog.
Breaking API changes
77e025ea The mjSpec C API fields meshdir and texturedir have been moved to compiler.meshdir and compiler.texturedir respectively. For backwards compatibility, the old fields are still available in the Python API but will be removed in a future release.
Migration: Replace meshdir and texturedir with compiler.meshdir and compiler.texturedir .
192da874 Remove _full_compat from mjx.put_data and mjx.put_model .
b56cf98e nconmax and njmax fields in mjx.make_data now default to None instead of -1. nconmax will be deprecated in favor of naconmax in a future release.
401bf431 The Simulate::InjectNoise method needs to set the target of exponential decay to a value from key_ctrl if a valid key is provided as input, else -1.
fe8384b6 Joint decorators and spatial tendons which have limits defined and whose current value (angle or length) exceeds the limit, are recolored by using the constraint impedance (d) to mix the existing color with visual/rgba/constraint . For spatial tendons, this visualization aid is active only if no material is set and rgba is default.
6320b959 Added mju_getXMLDependencies for computing a list of unique asset dependencies from an MJCF file.
e4704cd2 Added the code sample dependencies which provides command line utility for printing the result of mju_getXMLDependencies .
bd68f0c6 The minimum C++ standard required to compile MuJoCo is now C++20, this has been the case within Google since 2023 but the CMake update was forgotten.
Breaking ABI changes
431f9657 The attribute mjOption.apirate was unused and has been removed.
b56cf98e MJX nconmax and njmax fields in mjx.make_data now default to None instead of -1.
6ae9cc80 Fix issue #2508 , qLD shapes mismatched mjModel during get_data_into .
b56cf98e Pull in MuJoCo Warp update to io.py , and use naconmax instead of nconmax to set the maximum number of contacts over all environments.
98682ae2 Fix issue #2881 , fitaabb was adding an offset to the mesh and applying an incorrect frame transformation. Also, unify the meaning of fitting a geom to a mesh AABB: it now means to find the smallest geom such that its AABB contains the mesh AABB.
Breaking API changes
77e025ea The mjSpec C API fields meshdir and texturedir have been moved to compiler.meshdir and compiler.texturedir respectively. For backwards compatibility, the old fields are still available in the Python API but will be removed in a future release.
Migration: Replace meshdir and texturedir with compiler.meshdir and compiler.texturedir.
192da874 Remove _full_compat from mjx.put_data and mjx.put_model.
b56cf98e nconmax and njmax fields in mjx.make_data now default to None instead of -1. nconmax will be deprecated in favor of naconmax in a future release.
401bf431 The Simulate::InjectNoise method needs to set the target of exponential decay to a value from key_ctrl if a valid key is provided as input, else -1.
fe8384b6 Joint decorators and spatial tendons which have limits defined and whose current value (angle or length) exceeds the limit, are recolored by using the constraint impedance d to mix the existing color with visual/rgba/constraint. For spatial tendons, this visualization aid is active only if no material is set and rgba is default.
6320b959 Added mju_getXMLDependencies for computing a list of unique asset dependencies from an MJCF file.
e4704cd2 Added the code sample dependencies which provides command line utility for printing the result of mju_getXMLDependencies.
bd68f0c6 The minimum C++ standard required to compile MuJoCo is now C++20, this has been the case within Google since 2023 but the CMake update was forgotten.
Breaking ABI changes
431f9657 The attribute mjOption.apirate was unused and has been removed.
b56cf98e MJX nconmax and njmax fields in mjx.make_data now default to None instead of -1.
6ae9cc80 Fix 2508, qLD shapes mismatched mjModel during get_data_into.
b56cf98e Pull in MuJoCo Warp update to io.py, and use naconmax instead of nconmax to set the maximum number of contacts over all environments.
98682ae2 Fix 2881, fitaabb was adding an offset to the mesh and applying an incorrect frame transformation. Also, unify the meaning of fitting a geom to a mesh AABB: it now means to find the smallest geom such that its AABB contains the mesh AABB.
See the changelog.
See the changelog.
ec94bb49 Constraint island discovery and construction, previously an experimental feature, is now documented and promoted to default; disable it with option/flag/island . We expect islanding to be a strict improvement over the monolithic constraint solver, please let us know if you experience any issues.
7443e685 Contact sensor subtree1/subtree2 specification is now available for any body, not just direct children of the world.
Breaking API changes
6ec5f8b9 The update of mjData.qacc_warmstart was moved from the end of the solver call ( mj_fwdConstraint ) to the end of mj_step , and is now updated with all other state variables. This change makes mj_forward fully idempotent.
Before this change, calling mj_forward repeatedly would make the constraint solver converge, since each subsequent call would start from the previously updated qacc_warmstart value. Indeed, this is precisely what happened in the viewer, which calls mj_forward repeatedly in PAUSE mode.
Migration: If your code depended on this behavior, you can recover it by updating manually after each mj_forward : qacc_warmstart ← qacc . The behavior is available in simulate by clicking the “Pause update” toggle (off by default).
Furthermore, this change has a numerical impact on the output of the RK4 integrator. Before this change, due to the qacc_warmstart update occurring after each of the four Runge-Kutta substeps, the solver convergence of RK4 was faster, at the cost of unprincipled integration. This change makes the RK4 integration principled and well-defined. Since this change to RK4 is effectively a bug fix, migration to the previous behavior is not provided.
b092563c The mjDSBL_PASSIVE flag for disabling passive forces was removed and replaced by mjDSBL_SPRING and mjDSBL_DAMPER with corresponding mjcf attributes . Each flag disables only joint and tendon springs or dampers, respectively. When both flags are set, all passive forces are disabled, including gravity compensation, fluid forces, forces computed by the mjcb_passive callback, and forces computed by plugins when passed the mjPLUGIN_PASSIVE capability flag.
Migration: Set both flags to recover the behavior of the previous flag.
Breaking ABI changes
ed6fa7fe Removed mjMOUSE_SELECT flag for mjtMouse as it is no longer in use.
ec94bb49 The promotion of islanding to default involved removing the enable flag mjENBL_ISLAND and converting it to a disable flag mjDSBL_ISLAND .
b66175eb Added support for shells with a curved reference configuration. See this example .
8acd83f3 Added experimental option for passive contacts involving flexes.
1fb1810b Added support for assigning a default material to a mesh asset using the mesh/material attribute.
1763fa53 Promote ten_length to the public MJX API. Add Warp support for mjx.tendon .
Breaking API changes
1763fa53 ten_length was moved from mjx.Data._impl.ten_length to a public field mjx.Data.ten_length .
ec94bb49 Fixed a latent bug where MjData objects were not serialized correctly by the Python bindings when islanding was enabled.
See the changelog.
See the changelog.
e6c57159 Added the insidesite sensor, for checking if an object is inside the volume of a site. It is useful for triggering events in surrounding environment logic.
d0e4771c Added the contact sensor, for reporting contact information according to user-defined criteria. The purpose of the contact sensor is to report contact-related information in a fixed-size array. This is useful as input to learning-based agents and in environment logic.
51babec9 Added the tactile sensor, for measuring the penetration depth between two objects at given points and the sliding velocities in the tangent frame. The sensor reports tactile data only when colliding with SDFs.
0b11e3e3 Removed the SdfLib plugin and the dependency on SdfLib . SDFs are now supported natively in mjModel.
5e666635 Removed oct_depth from mjvOption (unused).
89f47890 Added the functionality to create a builtin meshes, see mesh/builtin .
ad0dc0de Inertia computation in MuJoCo C is now performed by a new pipeline function mj_makeM , which combines the Composite Rigid Body algorithm in mj_crb and additional terms related to tendon armature . Code that uses mj_crb to compute the inertia should now use mj_makeM instead.
Breaking API changes
5e666635 Removed the mjVIS_FLEXBVH enum value, its functionality is now provided by mjVIS_MESHBVH .
6e7aaacb Fixed a bug that caused object lists in the child to have missing elements after attaching an mjSpec. This was caused by adding to the lists only the objects that belong to the tree of the requested body, but this causes to skip objects that were attached, since they belong to the tree of the parent.
3434f5d9 Fixed a bug where the convex hull of a collision mesh was not being computed if the mesh could only collide via a contact pair .
2e60d058 On Linux, built distribution packages (wheels) now target the manylinux_2_28 platform tag. Previously MuJoCo wheels targeted manylinux2014 based on CentOS 7, which reached end-of-life in June 2024.
47bc16a3 Add Warp as a backend implementation for MJX. The implementation can be specified via mjx.put_model(m, impl='warp') and mjx.make_data(m, impl='warp') . The warp implementation requires a CUDA device and warp-lang to be installed ( pip install mujoco-mjx[warp] ). This feature is available in “beta” and some bugs are expected.
e6c57159 Added the insidesite sensor, for checking if an object is inside the volume of a site. It is useful for triggering events in surrounding environment logic.
d0e4771c Added the contact sensor, for reporting contact information according to user-defined criteria. The purpose of the contact sensor is to report contact-related information in a fixed-size array. This is useful as input to learning-based agents and in environment logic.
51babec9 Added the tactile sensor, for measuring the penetration depth between two objects at given points and the sliding velocities in the tangent frame. The sensor reports tactile data only when colliding with SDFs.
0b11e3e3 Removed the SdfLib plugin and the dependency on SdfLib. SDFs are now supported natively in mjModel.
5e666635 Removed oct_depth from mjvOption (unused).
89f47890 Added the functionality to create a builtin meshes, see mesh/builtin.
ad0dc0de Inertia computation in MuJoCo C is now performed by a new pipeline function mj_makeM, which combines the Composite Rigid Body algorithm in mj_crb and additional terms related to tendon armature. Code that uses mj_crb to compute the inertia should now use mj_makeM instead.
Breaking API changes
5e666635 Removed the mjVIS_FLEXBVH enum value, its functionality is now provided by mjVIS_MESHBVH.
6e7aaacb Fixed a bug that caused object lists in the child to have missing elements after attaching an mjSpec. This was caused by adding to the lists only the objects that belong to the tree of the requested body, but this causes to skip objects that were attached, since they belong to the tree of the parent.
3434f5d9 Fixed a bug where the convex hull of a collision mesh was not being computed if the mesh could only collide via a contact pair.
2e60d058 On Linux, built distribution packages (wheels) now target the manylinux_2_28 platform tag. Previously MuJoCo wheels targeted manylinux2014 based on CentOS 7, which reached end-of-life in June 2024.
47bc16a3 Add Warp as a backend implementation for MJX. The implementation can be specified via mjx.put_model(m, impl='warp') and mjx.make_data(m, impl='warp'). The warp implementation requires a CUDA device and warp-lang to be installed (pip install mujoco-mjx[warp]). This feature is available in "beta" and some bugs are expected.
See the changelog.
See the changelog.
Breaking API changes
18d5d5d0 The functions mjs_detachBody and mjs_detachDefault have been replaced by mjs_delete .
0488d9f4 The Python functions element.delete have been replaced by spec.delete(element) .
564c51dd In the mjSpec C API, directly setting an element’s name using mjs_setString has been replaced with a new function mjs_setName which allows checking for naming collisions at set-time rather than compile-time, for earlier catching of errors. Relatedly, the name attribute has been removed from all mjs elements. Known issue: the error is not raised during parsing.
47bc16a3 For MJX, the mjx.Option dataclass now has private and public fields similar to mjx.Model and mjx.Data . Some fields are no longer publicly available due to differences in the underlying implementations of this data structure.
14dc7c2a Added support for setting the initial camera in the viewer using visual/global/cameraid .
09f7154e Added support to only sync the state in the Python passive viewer ’s Sync method, this is useful to improve performance. The default behavior is unchanged and copies the entire model and data.
4ce62932 Inverse dynamics were not being computed correctly when tendon armature was present, now fixed.
45d4cacc Fix bug in mjx.put_data where actuator_moment was not being copied correctly for the C implementation.
7548d370 Added missing item documentation and clarified the nature of breaking changes in the 3.3.3 changelog. See items 3 and 4 below.
Breaking API changes
18d5d5d0 The functions mjs_detachBody and mjs_detachDefault have been replaced by mjs_delete.
0488d9f4 The Python functions element.delete have been replaced by spec.delete(element).
564c51dd In the mjSpec C API, directly setting an element's name using mjs_setString has been replaced with a new function mjs_setName which allows checking for naming collisions at set-time rather than compile-time, for earlier catching of errors. Relatedly, the name attribute has been removed from all mjs elements. Known issue: the error is not raised during parsing.
47bc16a3 For MJX, the mjx.Option dataclass now has private and public fields similar to mjx.Model and mjx.Data. Some fields are no longer publicly available due to differences in the underlying implementations of this data structure.
14dc7c2a Added support for setting the initial camera in the viewer using visual/global/cameraid.
09f7154e Added support to only sync the state in the Python passive viewer's Sync method, this is useful to improve performance. The default behavior is unchanged and copies the entire model and data.
4ce62932 Inverse dynamics were not being computed correctly when tendon armature was present, now fixed.
45d4cacc Fix bug in mjx.put_data where actuator_moment was not being copied correctly for the C implementation.
7548d370 Added missing item documentation and clarified the nature of breaking changes in the 3.3.3 changelog. See items 3 and 4 below.
See the changelog.
See the changelog.
ecb769fc Refactored island implementation so that island data is memory-contiguous. This speeds up island processing in the solver and clears the way for the addition of the Newton and PGS solvers (currently only CG is supported).
7edbdd0a Removed the shell plugin. This is now supported by flexcomp and is active depending on the elastic2d attribute (off by default).
Breaking API changes
74cc904e Replaced the directional (boolean) field for lights with a type field (of type mjtLightType ) to allow for additional lighting types.
Migration: Replace light/directional=”false/true” with light/type=”spot/directional”, respectively.
3e9bc79b Added mjtColorSpace enum and associated colorspace attribute that allows to specify the color space of textures (either linear or sRGB ). Since this property is now read correctly from PNG files, textures files which use sRGB will now be rendered differently.
Migration: Set colorspace to “linear” for all textures that should look like they did before this change.
89e39dc0 Added new sub-component mj_makeM which combines the mj_crb call with additional logic to support the introduction in 3.3.1 of tendon armature . In addition to the traditional mjData.qM , mj_makeM also computes mjData.M , a CSR representation of the same matrix.
84ad22a5 Added a new function mj_copyBack to copy real-valued arrays in an mjModel to a compatible mjSpec.
b8768aa1 Removed the limitation of fusestatic to models which contain no references. The fusestatic flag will now fuse all bodies which are not referenced and ignore bodies which are referenced.
ced63018 The struct mjv_sceneState has been removed. This struct was used for partial synchronization of mjModel and mjData when the Python viewer is used in passive mode. This functionality is now provided by mjv_copyModel and mjv_copyData , which don’t copy arrays which are not required for visualization.
3a4b6e6c Added examples of procedural terrain generation to the Model Editing tutorial:
caaf7b3a Added tendon armature.
ecb769fc Refactored island implementation so that island data is memory-contiguous. This speeds up island processing in the solver and clears the way for the addition of the Newton and PGS solvers (currently only CG is supported).
7edbdd0a Removed the shell plugin. This is now supported by flexcomp and is active depending on the elastic2d attribute (off by default).
Breaking API changes
74cc904e Replaced the directional (boolean) field for lights with a type field (of type mjtLightType) to allow for additional lighting types.
Migration: Replace light/directional="false/true" with light/type="spot/directional", respectively.
3e9bc79b Added mjtColorSpace enum and associated colorspace attribute that allows to specify the color space of textures (either linear or sRGB). Since this property is now read correctly from PNG files, textures files which use sRGB will now be rendered differently.
Migration: Set colorspace to "linear" for all textures that should look like they did before this change.
89e39dc0 Added new sub-component mj_makeM which combines the mj_crb call with additional logic to support the introduction in 3.3.1 of tendon armature. In addition to the traditional mjData.qM, mj_makeM also computes mjData.M, a CSR representation of the same matrix.
84ad22a5 Added a new function mj_copyBack to copy real-valued arrays in an mjModel to a compatible mjSpec.
b8768aa1 Removed the limitation of fusestatic to models which contain no references. The fusestatic flag will now fuse all bodies which are not referenced and ignore bodies which are referenced.
ced63018 The struct mjv_sceneState has been removed. This struct was used for partial synchronization of mjModel and mjData when the Python viewer is used in passive mode. This functionality is now provided by mjv_copyModel and mjv_copyData, which don't copy arrays which are not required for visualization.
3a4b6e6c Added examples of procedural terrain generation to the Model Editing tutorial: |mjspec_colab|
caaf7b3a Added tendon armature.
See the changelog.
See the changelog.
51c489fc Added inverse dynamics.
f317bd17 Added tendon actuator force sensor.
421c487d Fix issue #2606 such that make_data copies over mocap_pos and mocap_quat from body_pos and body_quat .
51c489fc Added inverse dynamics.
f317bd17 Added tendon actuator force sensor.
421c487d Fix 2606 such that make_data copies over mocap_pos and mocap_quat from body_pos and body_quat.
See the changelog.
See the changelog.
Breaking API changes
f25fc63f The default value of the flag for toggling internal flex contacts was changed from “true” to “false”. This feature has proven to be counterintuitive for users.
a02a27d4 All of the attach functions ( mjs_attachBody , mjs_attachFrame , mjs_attachToSite , mjs_attachFrameToSite ) have been removed and replaced by a single function mjs_attach .
d05251af Added tendon armature : inertia associated with changes in tendon length.
f96f3e1c Added the compiler/saveinertial flag, writing explicit inertial clauses for all bodies when saving to XML.
e8c67ca5 Added quat orientation attribute to composite . Moreover, allow the composite to be the direct child of a frame.
96dda6ea Added tendon actuator force limits and tendon actuator force sensor .
8fc616bf Added tendon actuator force limits.
de48f417 mj_jacDot was missing a term that accounts for the motion of the point with respect to which the Jacobian is computed, now fixed.
1bf24e9f Fixed a bug that caused the parent frame of elements in the child worldbody to be incorrectly set when attaching an mjSpec to a frame or a site.
40393f46 Fixed a bug that caused shadow rendering to flicker on platforms (e.g., MacOS) that do not support ARB_clip_control. Fixed in collaboration with @aftersomemath .
16e49f27 Added examples of procedural model creation to the Model Editing tutorial:
ebd30493 Added support for nameless mjSpec objects in the bind method, see the corresponding section in the documentation.
Breaking API changes
f25fc63f The default value of the flag for toggling internal flex contacts was changed from "true" to "false". This feature has proven to be counterintuitive for users.
a02a27d4 All of the attach functions (mjs_attachBody, mjs_attachFrame, mjs_attachToSite, mjs_attachFrameToSite) have been removed and replaced by a single function mjs_attach.
d05251af Added tendon armature: inertia associated with changes in tendon length.
f96f3e1c Added the compiler/saveinertial flag, writing explicit inertial clauses for all bodies when saving to XML.
e8c67ca5 Added quat orientation attribute to composite. Moreover, allow the composite to be the direct child of a frame.
96dda6ea Added tendon actuator force limits and tendon actuator force sensor.
8fc616bf Added tendon actuator force limits.
de48f417 mj_jacDot was missing a term that accounts for the motion of the point with respect to which the Jacobian is computed, now fixed.
1bf24e9f Fixed a bug that caused the parent frame of elements in the child worldbody to be incorrectly set when attaching an mjSpec to a frame or a site.
40393f46 Fixed a bug that caused shadow rendering to flicker on platforms (e.g., MacOS) that do not support ARB_clip_control. Fixed in collaboration with aftersomemath.
See the changelog.
See the changelog.
7cdf1806 Introduced a new kind of fast deformable body , activated by setting flexcomp/dof to “trilinear”. This type of deformable flex object has the same collision geometry as a regular flex, but has far fewer degrees of freedom. Instead of 3 dofs per vertex, only the corners of the bounding box are free to move, with the positions of the interior vertices computed with trilinear interpolation of the 8 corners, for a total of 24 dofs for the entire flex object (or less, if some of the corners are pinned). This limits the types of deformation achievable by the flex, but allows for much faster simulation. For example, see the video on the right comparing full and trilinear flexes for modeling deformable gripper pads.
ed16f2da The native convex collision detection pipeline introduced in 3.2.3 and enabled by the nativeccd flag, is now the default. See the section on Convex Collision Detection for more details.
Migration: If the new pipeline breaks your workflow, set nativeccd to “disable”.
37d7591c Add support for custom plots in the MuJoCo viewer by exposing a viewport property, a set_figures method, and a clear_figures method.
7cdf1806 Separate collision and deformation meshes for flex . This enables a fixed cost for the soft body computations, while preserving the fidelity of high-resolution collisions.
240a7afd Added potential and kinetic energy sensors.
ac2a324f Improved shadow rendering in the native renderer.
b0e9d086 Moved introspect to python/introspect .
Breaking API changes
ed16f2da As mentioned above, the native convex collision detection pipeline is now the default, which may break some workflows. In this case, set nativeccd to “disable” to restore the old behavior.
c2138c3f Added mjs_setDeepCopy API function. When the deep copy flag is 0, attaching a model will not copy it to the parent, so the original references to the child can be used to modify the parent after attachment. The default behavior is to perform such a shallow copy. The old behavior of creating a deep copy of the child model while attaching can be restored by setting the deep copy flag to 1.
89253d95 Changes to inertia inference from meshes:
Previously, in order to specify that the mass lies on the surface, geom/shellinertia could be used for any geom type. Now this attribute is ignored if the geom is a mesh; instead, inertia inference for meshes is specified in the asset, using the asset/mesh/inertia attribute.
Previously, if the volumetric inertia computation failed (for example due to a very flat mesh), the compiler would silently fall back to surface inertia computation. Now, the compiler will throw an informative error.
0fcd20f0 Removed the composite type grid . Users should instead use flexcomp .
c52d1b39 Removed the particle composite type. It is recommended to use the more generic replicate instead, see for example this model .
f4096bca Added support for spatial tendons with internal sphere and cylinder wrapping.
e0664b1b Fix a bug with box-box collisions issue #2356 .
7a2ad8fd Added a pedagogical colab notebook for mujoco.rollout , a Python module for multithreaded simulation rollouts. It is available here .
Contribution by @aftersomemath .
7cdf1806 Introduced a new kind of fast deformable body, activated by setting flexcomp/dof to "trilinear". This type of deformable flex object has the same collision geometry as a regular flex, but has far fewer degrees of freedom. Instead of 3 dofs per vertex, only the corners of the bounding box are free to move, with the positions of the interior vertices computed with trilinear interpolation of the 8 corners, for a total of 24 dofs for the entire flex object (or less, if some of the corners are pinned). This limits the types of deformation achievable by the flex, but allows for much faster simulation. For example, see the video on the right comparing full and trilinear flexes for modeling deformable gripper pads.
ed16f2da The native convex collision detection pipeline introduced in 3.2.3 and enabled by the nativeccd flag, is now the default. See the section on Convex Collision Detection for more details.
Migration: If the new pipeline breaks your workflow, set nativeccd to "disable".
37d7591c Add support for custom plots in the MuJoCo viewer by exposing a viewport property, a set_figures method, and a clear_figures method.
7cdf1806 Separate collision and deformation meshes for flex. This enables a fixed cost for the soft body computations, while preserving the fidelity of high-resolution collisions.
240a7afd Added potential and kinetic energy sensors.
ac2a324f Improved shadow rendering in the native renderer.
b0e9d086 Moved introspect to python/introspect.
Breaking API changes
ed16f2da As mentioned above, the native convex collision detection pipeline is now the default, which may break some workflows. In this case, set nativeccd to "disable" to restore the old behavior.
c2138c3f Added mjs_setDeepCopy API function. When the deep copy flag is 0, attaching a model will not copy it to the parent, so the original references to the child can be used to modify the parent after attachment. The default behavior is to perform such a shallow copy. The old behavior of creating a deep copy of the child model while attaching can be restored by setting the deep copy flag to 1.
89253d95 Changes to inertia inference from meshes:
Previously, in order to specify that the mass lies on the surface, geom/shellinertia could be used for any geom type. Now this attribute is ignored if the geom is a mesh; instead, inertia inference for meshes is specified in the asset, using the asset/mesh/inertia attribute.
Previously, if the volumetric inertia computation failed (for example due to a very flat mesh), the compiler would silently fall back to surface inertia computation. Now, the compiler will throw an informative error.
0fcd20f0 Removed the composite type grid. Users should instead use flexcomp.
c52d1b39 Removed the particle composite type. It is recommended to use the more generic replicate instead, see for example this model.
f4096bca Added support for spatial tendons with internal sphere and cylinder wrapping.
e0664b1b Fix a bug with box-box collisions 2356.
See the changelog.
See the changelog.
a7eb6efd rollout now features native multi-threading. If a sequence of MjData instances of length nthread is passed in, rollout will automatically create a thread pool and parallelize the computation. The thread pool can be reused across calls, but then the function cannot be called simultaneously from multiple threads. To run multiple threaded rollouts simultaneously, use the new class Rollout which encapsulates the thread pool. Contribution by @aftersomemath .
40ef08c8 Fix global namespace pollution when using mjpython ( issue #2265 ).
Breaking API changes (minor)
69c9ac07 The field mjData.qLDiagSqrtInv has been removed. This field is only required for the dual solvers. It is now computed as-needed rather than unconditionally. Relatedly, added the corresponding argument to mj_solveM2 .
d4ca66a4 Reduced the memory footprint of the PGS solver’s A matrix . This was the last remaining dense-memory allocation in MuJoCo, allowing for a significant reduction of the dynamic memory allocation heuristic .
0e7d2ef6 Fixed a bug in the box-sphere collider, depth was incorrect for deep penetrations ( issue #2206 ).
ec322641 Fixed a bug in mj_mulM2 and added a test.
a7eb6efd rollout now features native multi-threading. If a sequence of MjData instances of length nthread is passed in, rollout will automatically create a thread pool and parallelize the computation. The thread pool can be reused across calls, but then the function cannot be called simultaneously from multiple threads. To run multiple threaded rollouts simultaneously, use the new class Rollout which encapsulates the thread pool. Contribution by aftersomemath.
40ef08c8 Fix global namespace pollution when using mjpython (2265).
Breaking API changes (minor)
69c9ac07 The field mjData.qLDiagSqrtInv has been removed. This field is only required for the dual solvers. It is now computed as-needed rather than unconditionally. Relatedly, added the corresponding argument to mj_solveM2.
d4ca66a4 Reduced the memory footprint of the PGS solver's A matrix. This was the last remaining dense-memory allocation in MuJoCo, allowing for a significant reduction of the dynamic memory allocation heuristic.
0e7d2ef6 Fixed a bug in the box-sphere collider, depth was incorrect for deep penetrations (2206).
ec322641 Fixed a bug in mj_mulM2 and added a test.
See the changelog.
See the changelog.
300450f8 Removed rope and loop from composite . The user is encouraged to instead use the cable plugin or flexcomp , respectively.
0f381a9e Added muscle actuators.
74dcd51d Provide prebuilt wheels for Python 3.13.
3a12db9a Added bind method and removed id attribute from mjSpec objects. Using ids is error prone in scenarios of repeated attachment and detachment. Python users are encouraged to use names for unique identification of model elements.
943eb6bc rollout can now accept sequences of MjModel of length nroll . Also removed the nroll argument because its value can always be inferred.
f9569cda Fixed issue #2212 , type error in mjx.get_data .
5c23ae11 Fixed bug introduced in 3.2.0 in handling of texrepeat attribute, was mistakenly cast from float to int , (fixed issue #2223 ).
300450f8 Removed rope and loop from composite. The user is encouraged to instead use the cable plugin or flexcomp, respectively.
0f381a9e Added muscle actuators.
74dcd51d Provide prebuilt wheels for Python 3.13.
3a12db9a Added bind method and removed id attribute from mjSpec objects. Using ids is error prone in scenarios of repeated attachment and detachment. Python users are encouraged to use names for unique identification of model elements.
943eb6bc rollout can now accept sequences of MjModel of length nroll. Also removed the nroll argument because its value can always be inferred.
f9569cda Fixed 2212, type error in mjx.get_data.
5c23ae11 Fixed bug introduced in 3.2.0 in handling of texrepeat attribute, was mistakenly cast from float to int, (fixed 2223).
See the changelog.
See the changelog.
b6037d17 The Model Editing framework afforded by mjSpec , introduced in 3.2.0 as an in-development feature, is now stable and recommended for general use.
298ce31e The native convex collision detection pipeline introduced in 3.2.3 and enabled by the nativeccd flag, is not yet the default but is already recommended for general use. Please try it when encountering collision-related problems and report any issues you encounter.
b598d79b The global compiler flag exactmeshinertia has been removed and replaced with the mesh-specific inertia attribute.
7dc8aef8 The not-useful convexhull compiler option (to disable computation of mesh convex hulls) has been removed.
d8494fef Removed the deprecated mju_rotVecMat , mju_rotVecMatT and mjv_makeConnector functions.
2b0629d7 Sorting now uses a faster, native sort function (fixes issue #1638 ).
61cb552f The PBR texture layers introduced in 3.2.1 were refactored from separate sub-elements to a single layer sub-element.
831d9881 The composite types box, cylinder, and sphere have been removed. Users should instead use the equivalent types available in flexcomp .
680fb3e5 Added apply_ft , jac , and xfrc_accumulate as public functions.
b00a7c67 Added TOUCH sensor.
f24de91c Added support for eq_active . Fixes issue #2173 .
3c21abc0 Added ray intersection with ellipsoid.
864b805a Fixed several bugs related to connect and weld constraints with site semantics (fixes issue #2179 , reported by @yinfanyi ). The introduction of site specification to connects and welds in 3.2.3 conditionally changed the semantics of mjData.eq_obj1id and mjData.eq_obj2id , but these changes were not properly propagated in several places leading to incorrect computations of constraint inertia, readings of affected force/torque sensors and runtime enabling/disabling of such constraints.
7620aef5 Fixed a bug in slider-crank transmission . The bug was introduced in 3.0.0.
831d9881 Fixed a bug in flex texture coordinates that prevented the correct allocation of textures in mjModel.
1d58576d Function headers in the API reference now link to their source definitions in GitHub.
b6037d17 The Model Editing framework afforded by mjSpec, introduced in 3.2.0 as an in-development feature, is now stable and recommended for general use.
298ce31e The native convex collision detection pipeline introduced in 3.2.3 and enabled by the nativeccd flag, is not yet the default but is already recommended for general use. Please try it when encountering collision-related problems and report any issues you encounter.
b598d79b The global compiler flag exactmeshinertia has been removed and replaced with the mesh-specific inertia attribute.
7dc8aef8 The not-useful convexhull compiler option (to disable computation of mesh convex hulls) has been removed.
d8494fef Removed the deprecated mju_rotVecMat, mju_rotVecMatT and mjv_makeConnector functions.
2b0629d7 Sorting now uses a faster, native sort function (fixes 1638).
61cb552f The PBR texture layers introduced in 3.2.1 were refactored from separate sub-elements to a single layer sub-element.
831d9881 The composite types box, cylinder, and sphere have been removed. Users should instead use the equivalent types available in flexcomp.
680fb3e5 Added apply_ft, jac, and xfrc_accumulate as public functions.
b00a7c67 Added TOUCH sensor.
f24de91c Added support for eq_active. Fixes 2173.
3c21abc0 Added ray intersection with ellipsoid.
864b805a Fixed several bugs related to connect and weld constraints with site semantics (fixes 2179, reported by yinfanyi). The introduction of site specification to connects and welds in 3.2.3 conditionally changed the semantics of mjData.eq_obj1id and mjData.eq_obj2id, but these changes were not properly propagated in several places leading to incorrect computations of constraint inertia, readings of affected force/torque sensors and runtime enabling/disabling of such constraints.
7620aef5 Fixed a bug in slider-crank transmission. The bug was introduced in 3.0.0.
831d9881 Fixed a bug in flex texture coordinates that prevented the correct allocation of textures in mjModel.
1d58576d Function headers in the API reference now link to their source definitions in GitHub.
See the changelog.
See the changelog.
2dd51873 The Newton solver no longer requires nv*nv memory allocation, allowing for much larger models. See e.g., 100_humanoids.xml . Two quadratic-memory allocations still remain to be fully sparsified: mjData.actuator_moment and the matrices used by the PGS solver.
4998e7b3 Removed the solid and membrane plugins and moved the associated computations into the engine. See 3D example model and 2D example model for examples of flex objects that previously required these plugins.
6832df30 Replaced the function mjs_setActivePlugins with mjs_activatePlugin .
1a9d3070 Added mocap_pos and mocap_quat in kinematics.
160ed9bf Added support for spatial tendons with pulleys and external sphere and cylinder wrapping.
fa22e6d0 Added sphere-cylinder and sphere-ellipsoid collision functions ( issue #2126 ).
22e4f7fc Fixed a bug with frictionloss constraints.
ac91a763 Added TENDONPOS and TENDONVEL sensors.
19459263 Fixed a bug with the computation of tangential contact forces in _decode_pyramid .
096853e1 Added JOINTINPARENT actuator transmission type.
6881ce24 Removed support for Python 3.8, now that it’s deprecated upstream .
ab3954d8 Fixed a bug where actuator_force was not set in MJX ( issue #2068 ).
5838f847 Fixed bug where MJX data tendon fields were incorrect after calling mjx.put_data .
8d84b5f6 The compiler now returns an error if height fields are used with collision sensors as they are not yet supported.
2dd51873 The Newton solver no longer requires nv*nv memory allocation, allowing for much larger models. See e.g., 100_humanoids.xml. Two quadratic-memory allocations still remain to be fully sparsified: mjData.actuator_moment and the matrices used by the PGS solver.
4998e7b3 Removed the solid and membrane plugins and moved the associated computations into the engine. See 3D example model and 2D example model for examples of flex objects that previously required these plugins.
6832df30 Replaced the function mjs_setActivePlugins with mjs_activatePlugin.
1a9d3070 Added mocap_pos and mocap_quat in kinematics.
160ed9bf Added support for spatial tendons with pulleys and external sphere and cylinder wrapping.
fa22e6d0 Added sphere-cylinder and sphere-ellipsoid collision functions (2126).
22e4f7fc Fixed a bug with frictionloss constraints.
ac91a763 Added TENDONPOS and TENDONVEL sensors.
19459263 Fixed a bug with the computation of tangential contact forces in _decode_pyramid.
096853e1 Added JOINTINPARENT actuator transmission type.
6881ce24 Removed support for Python 3.8, now that it's deprecated upstream.
ab3954d8 Fixed a bug where actuator_force was not set in MJX (2068).
5838f847 Fixed bug where MJX data tendon fields were incorrect after calling mjx.put_data.
8d84b5f6 The compiler now returns an error if height fields are used with collision sensors as they are not yet supported.
See the changelog.
See the changelog.
Breaking API changes
088079ef The runtime options mpr_tolerance and mpr_iterations were renamed to ccd_tolerance and ccd_iterations , both in XML and in the mjOption struct. This is because the new convex collision detection pipeline (see below) does not use the MPR algorithm. The semantics of these options remain identical.
d3dfa6f9 The functions mjs_findMesh and mjs_findKeyframe were replaced by mjs_findElement , which allows to look for any object type.
4862b9e7 The experimental use of 2D/3D elasticity plugins with composite has been removed. Users should instead use flexcomp , which provides the correct collision behavior.
0bffd744 Added the nativeccd flag. When this flag is enabled, general convex collision detection is handled with a new native code path, rather than libccd . This feature is in early stages of testing, but users who’ve experienced issues related to collision detection are welcome to experiment with it and report any issues.
60a1921b Added a new way of defining connect and weld equality constraints, using two sites. The new semantic is useful when the assumption that the constraint is satisfied in the base configuration does not hold. In this case the sites will “snap together” at the beginning of the simulation. Additionally, changing the site positions ( mjModel.site_pos ) and orientations ( mjModel.site_quat ) at runtime will correctly modify the constraint definition. This example model using the new semantic is shown in the video on the right.
8954a088 Introduced free joint alignment , an optimization that applies to bodies with a free joint and no child bodies (simple free-floating bodies): automatically aligning the body frame with the inertial frame. This feature can be toggled individually using the freejoint/align attribute or globally using the compiler alignfree attribute. The alignment diagonalizes the related 6x6 inertia sub-matrix, leading to both faster and more stable simulation of free bodies.
While this optimization is a strict improvement, it changes the semantics of the joint’s degrees-of-freedom. Therefore, qpos and qvel values saved in older versions (for example, in keyframes ) will become invalid. The global compiler attribute currently defaults to “false” due to this potential breakage, but could be changed to “true” in a future release. Aligned free joints are recommended for all new models.
851bb6ee Added an mjSpec option for creating a texture directly from a buffer.
466368ef shell (surface) inertia is now supported by all geom types.
afd7c73f When attaching sub-models, keyframes will now be correctly merged into the parent model, but only on the first attachment.
8b03daa0 Added the mjtSameFrame enum which contains the possible frame alignments of bodies and their children. These alignments are used for computation shortcuts in mj_kinematics .
2d3d5415 Added mj_jacDot for computing time-derivatives of kinematic Jacobians. Fixes issue #411 .
a74c184f Added efc_pos to mjx.Data ( issue #1388 ).
6a12787a Added position-dependent sensors: MAGNETOMETER , CAMPROJECTION , RANGEFINDER , JOINTPOS , ACTUATORPOS , BALLQUAT , FRAMEPOS , FRAMEXAXIS , FRAMEYAXIS , FRAMEZAXIS , FRAMEQUAT , SUBTREECOM , CLOCK .
9805df61 Added velocity-dependent sensors: VELOCIMETER , GYRO , JOINTVEL , ACTUATORVEL , BALLANGVEL , FRAMELINVEL , FRAMEANGVEL , SUBTREELINVEL , SUBTREEANGMOM .
9d732117 Added acceleration/force-dependent sensors: ACCELEROMETER , FORCE , TORQUE , ACTUATORFRC , JOINTACTFRC , FRAMELINACC , FRAMEANGACC .
390bce23 Changed default policy to avoid placing unused (MuJoCo-only) arrays on device.
390bce23 Added device parameter to mjx.make_data to bring it to parity with mjx.put_model and mjx.put_data .
a68141ee Added support for implicitfast integration for all cases except fluid drag .
494e166f Fixed a bug where qLDiagInv had the wrong size for sparse mass matrices.
49711fa1 Added support for joint and tendon frictionloss .
cd8ff440 Added support for connect equality constraints using two sites.
e3d3a24b Added support for spatial tendons with site wrapping.
39896f80 Fixed a performance regression introduced in 3.1.7 in mesh Bounding Volume Hierarchies ( issue #1875 , contribution by @michael-ahn ).
0bcaa856 Fixed a bug wherein, for models that have both muscles and stateless actuators and used one of the implicit integrators, wrong derivatives would be computed.
3e701b21 Fixed a bug in tendon wrapping around spheres. Before this fix, tendons that wrapped around spheres with an externally-placed sidesite could jump inside the sphere instead of wrapping around it.
567793c2 Fixed a bug that caused meshdir and texturedir to be overwritten during model attachment , preventing model attachment for models with assets in different directories.
cfc7dc98 Added support for engine plugins in mjSpec ( issue #1903 ).
9a27fc14 Better error reporting for issues with the assets dictionary, when loading models.
Breaking API changes
088079ef The runtime options mpr_tolerance and mpr_iterations were renamed to ccd_tolerance and ccd_iterations, both in XML and in the mjOption struct. This is because the new convex collision detection pipeline (see below) does not use the MPR algorithm. The semantics of these options remain identical.
d3dfa6f9 The functions mjs_findMesh and mjs_findKeyframe were replaced by mjs_findElement, which allows to look for any object type.
4862b9e7 The experimental use of 2D/3D elasticity plugins with composite has been removed. Users should instead use flexcomp, which provides the correct collision behavior.
0bffd744 Added the nativeccd flag. When this flag is enabled, general convex collision detection is handled with a new native code path, rather than libccd. This feature is in early stages of testing, but users who've experienced issues related to collision detection are welcome to experiment with it and report any issues.
60a1921b Added a new way of defining connect and weld equality constraints, using two sites. The new semantic is useful when the assumption that the constraint is satisfied in the base configuration does not hold. In this case the sites will "snap together" at the beginning of the simulation. Additionally, changing the site positions (mjModel.site_pos) and orientations ( mjModel.site_quat) at runtime will correctly modify the constraint definition. This example model using the new semantic is shown in the video on the right.
8954a088 Introduced free joint alignment, an optimization that applies to bodies with a free joint and no child bodies (simple free-floating bodies): automatically aligning the body frame with the inertial frame. This feature can be toggled individually using the freejoint/align attribute or globally using the compiler alignfree attribute. The alignment diagonalizes the related 6x6 inertia sub-matrix, leading to both faster and more stable simulation of free bodies.
While this optimization is a strict improvement, it changes the semantics of the joint's degrees-of-freedom. Therefore, qpos and qvel values saved in older versions (for example, in keyframes) will become invalid. The global compiler attribute currently defaults to "false" due to this potential breakage, but could be changed to "true" in a future release. Aligned free joints are recommended for all new models.
851bb6ee Added an mjSpec option for creating a texture directly from a buffer.
466368ef shell (surface) inertia is now supported by all geom types.
afd7c73f When attaching sub-models, keyframes will now be correctly merged into the parent model, but only on the first attachment.
8b03daa0 Added the mjtSameFrame enum which contains the possible frame alignments of bodies and their children. These alignments are used for computation shortcuts in mj_kinematics.
2d3d5415 Added mj_jacDot for computing time-derivatives of kinematic Jacobians. Fixes 411.
a74c184f Added efc_pos to mjx.Data (1388).
6a12787a Added position-dependent sensors: MAGNETOMETER, CAMPROJECTION, RANGEFINDER, JOINTPOS, ACTUATORPOS, BALLQUAT, FRAMEPOS, FRAMEXAXIS, FRAMEYAXIS, FRAMEZAXIS, FRAMEQUAT, SUBTREECOM, CLOCK.
9805df61 Added velocity-dependent sensors: VELOCIMETER, GYRO, JOINTVEL, ACTUATORVEL, BALLANGVEL, FRAMELINVEL, FRAMEANGVEL, SUBTREELINVEL, SUBTREEANGMOM.
9d732117 Added acceleration/force-dependent sensors: ACCELEROMETER, FORCE, TORQUE, ACTUATORFRC, JOINTACTFRC, FRAMELINACC, FRAMEANGACC.
390bce23 Changed default policy to avoid placing unused (MuJoCo-only) arrays on device.
390bce23 Added device parameter to mjx.make_data to bring it to parity with mjx.put_model and mjx.put_data.
a68141ee Added support for implicitfast integration for all cases except fluid drag.
494e166f Fixed a bug where qLDiagInv had the wrong size for sparse mass matrices.
49711fa1 Added support for joint and tendon frictionloss.
cd8ff440 Added support for connect equality constraints using two sites.
e3d3a24b Added support for spatial tendons with site wrapping.
39896f80 Fixed a performance regression introduced in 3.1.7 in mesh Bounding Volume Hierarchies (1875, contribution by michael-ahn).
0bcaa856 Fixed a bug wherein, for models that have both muscles and stateless actuators and used one of the implicit integrators, wrong derivatives would be computed.
3e701b21 Fixed a bug in tendon wrapping around spheres. Before this fix, tendons that wrapped around spheres with an externally-placed sidesite could jump inside the sphere instead of wrapping around it.
567793c2 Fixed a bug that caused meshdir and texturedir to be overwritten during model attachment, preventing model attachment for models with assets in different directories.
cfc7dc98 Added support for engine plugins in mjSpec (1903).
9a27fc14 Better error reporting for issues with the assets dictionary, when loading models.
See the changelog.
See the changelog.
9db9df73 Increase texture and material limit back to 1000. 3.2.0 inadvertently reduced this limit to 100, breaking some existing models ( issue #1877 ).
See the changelog.
See the changelog.
e92af73c Renamed mjModel.tex_rgb to mjModel.tex_data .
24a55506 Added a new autoreset flag to disable automatic reset when NaNs or infinities are detected.
33e59606 Added sub-elements to the MJCF material element, to allow specification of multiple textures for rendering (e.g., occlusion, roughness, metallic ). Note that the MuJoCo renderer doesn’t support these new features, and they are made available for use with external renderers.
82c27165 Sorting ( mjQUICKSORT ) now calls std::sort when building with C++ ( issue #1638 ).
dbe18f57 Added more fields to mjx.Model and mjx.Data for further compatibility with the corresponding MuJoCo structs.
2d24c588 Added support for fixed tendons .
2d24c588 Added support for tendon length limits ( mjCNSTR_LIMIT_TENDON in mjtConstraint ).
2d24c588 Added support for tendon equality constraints ( mjEQ_TENDON in mjtEq ).
2d24c588 Added support for tendon actuator transmission ( mjTRN_TENDON in mjtTrn ).
70ac76bb Added support for asset dictionary argument in mujoco.spec.from_file , mujoco.spec.from_string and mujoco.spec.compile .
a4bd2bec Fixed a bug where implicit integrators did not take into account disabled actuators ( issue #1838 ).
e92af73c Renamed mjModel.tex_rgb to mjModel.tex_data.
24a55506 Added a new autoreset flag to disable automatic reset when NaNs or infinities are detected.
33e59606 Added sub-elements to the MJCF material element, to allow specification of multiple textures for rendering (e.g., occlusion, roughness, metallic). Note that the MuJoCo renderer doesn't support these new features, and they are made available for use with external renderers.
82c27165 Sorting (mjQUICKSORT) now calls std::sort when building with C++ (1638).
dbe18f57 Added more fields to mjx.Model and mjx.Data for further compatibility with the corresponding MuJoCo structs.
2d24c588 Added support for fixed tendons.
2d24c588 Added support for tendon length limits (mjCNSTR_LIMIT_TENDON in mjtConstraint).
2d24c588 Added support for tendon equality constraints (mjEQ_TENDON in mjtEq).
2d24c588 Added support for tendon actuator transmission (mjTRN_TENDON in mjtTrn).
70ac76bb Added support for asset dictionary argument in mujoco.spec.from_file, mujoco.spec.from_string and mujoco.spec.compile.
a4bd2bec Fixed a bug where implicit integrators did not take into account disabled actuators (1838).
Note that as of this release this feature is still in testing and subject to future breaking changes. Fixes #364.
See the changelog.
Introduced a major new feature: procedural model creation and editing, using a new top-level data-structure mjSpec. See the Model Editing chapter for details. Note that as of this release this feature is still in testing and subject to future breaking changes. Fixes #364.
e13ddfa2 Introduced a major new feature: procedural model creation and editing , using a new top-level data-structure mjSpec . See the Model Editing chapter for details. Note that as of this release this feature is still in testing and subject to future breaking changes. Fixes issue #364 .
Breaking API changes
e66b9a36 Removed deprecated mj_makeEmptyFileVFS and mj_findFileVFS functions. The constants mjMAXVFS and mjMAXVFSNAME are also removed as they are no longer needed.
Migration: Use mj_addBufferVFS to copy a buffer into a VFS file directly.
57e6760e Calls to mj_defaultVFS may allocate memory inside VFS, and the corresponding mj_deleteVFS must be called to deallocate any internal allocated memory.
60670485 Deprecated mju_rotVecMat and mju_rotVecMatT in favor of mju_mulMatVec3 and mju_mulMatTVec3 . These function names and argument order are more consistent with the rest of the API. The older functions have been removed from the Python bindings and will be removed from the C API in the next release.
393895bb Removed the actuator_actdim callback from actuator plugins. They now have the actdim attribute, which must be used with actuators that write state to the act array. This fixed a crash which happened when keyframes were used in a model with stateful actuator plugins. The PID plugin will give an error when the wrong value of actdim is provided.
27b9ddda Added attach meta-element to MJCF, which allows attaching a subtree from a different model to a body in the current model.
57e6760e The VFS implementation has been rewritten in C++ and is now considerably more efficient in speed and memory footprint.
07fc95ca Added support for orthographic cameras. This is available for both fixed cameras and the free camera, using the camera/orthographic and global/orthographic attributes, respectively.
ace0c8f0 Added maxhullvert , the maximum number of vertices in a mesh’s convex hull.
c9bcf837 Added mj_setKeyframe for saving the current state into a model keyframe.
5ed464b4 Added support for ball joints in the URDF parser (“spherical” in URDF).
3f3b39bb Replaced mjUSEDOUBLE which was previously hard-coded in mjtnum.h with the build-time flag mjUSESINGLE . If this symbol is not defined, MuJoCo will use double-precision floating point, as usual. If mjUSESINGLE is defined, MuJoCo will use single-precision floating point. See mjtNum .
Relatedly, fixed various type errors that prevented building with single-precision.
22a10fd2 Quaternions in mjData.qpos and mjData.mocap_quat are no longer normalized in-place by mj_kinematics . Instead they are normalized when they are used. After the first step, quaternions in mjData.qpos will be normalized.
3d1d1d07 Mesh loading in the compiler, which is usually the slowest part of the loading process, is now multi-threaded.
4c3d9461 Added support for elliptic friction cones .
4c3d9461 Fixed a bug that resulted in less-optimal linesearch solutions for some difficult constraint settings.
4c3d9461 Fixed a bug in the Newton solver that sometimes resulted in less-optimal gradients.
1eb70864 Added improved tutorial video.
f37f8408 Improved the Brownian noise generator.
3d1d1d07 Now displaying model load times if they are longer than 0.25 seconds.
2188cba4 Fixed a memory leak when using copy.deepcopy() on a mujoco.MjData instance ( issue #1572 ).
e7301edd Fix an issue where mj_copyData (or copy.copy() in the Python bindings) was not copying contact information correctly ( issue #1710 ).
8e827d0d Fix an issue with saving to XML that caused frames to be written multiple times ( issue #1802 ).
e13ddfa2 Introduced a major new feature: procedural model creation and editing, using a new top-level data-structure mjSpec. See the Model Editing chapter for details. Note that as of this release this feature is still in testing and subject to future breaking changes. Fixes 364.
Breaking API changes
e66b9a36 Removed deprecated mj_makeEmptyFileVFS and mj_findFileVFS functions. The constants mjMAXVFS and mjMAXVFSNAME are also removed as they are no longer needed.
Migration: Use mj_addBufferVFS to copy a buffer into a VFS file directly.
57e6760e Calls to mj_defaultVFS may allocate memory inside VFS, and the corresponding mj_deleteVFS must be called to deallocate any internal allocated memory.
60670485 Deprecated mju_rotVecMat and mju_rotVecMatT in favor of mju_mulMatVec3 and mju_mulMatTVec3. These function names and argument order are more consistent with the rest of the API. The older functions have been removed from the Python bindings and will be removed from the C API in the next release.
393895bb Removed the actuator_actdim callback from actuator plugins. They now have the actdim attribute, which must be used with actuators that write state to the act array. This fixed a crash which happened when keyframes were used in a model with stateful actuator plugins. The PID plugin will give an error when the wrong value of actdim is provided.
27b9ddda Added attach meta-element to MJCF, which allows attaching a subtree from a different model to a body in the current model.
57e6760e The VFS implementation has been rewritten in C++ and is now considerably more efficient in speed and memory footprint.
07fc95ca Added support for orthographic cameras. This is available for both fixed cameras and the free camera, using the camera/orthographic and global/orthographic attributes, respectively.
ace0c8f0 Added maxhullvert, the maximum number of vertices in a mesh's convex hull.
c9bcf837 Added mj_setKeyframe for saving the current state into a model keyframe.
5ed464b4 Added support for ball joints in the URDF parser ("spherical" in URDF).
3f3b39bb Replaced mjUSEDOUBLE which was previously hard-coded in mjtnum.h with the build-time flag mjUSESINGLE. If this symbol is not defined, MuJoCo will use double-precision floating point, as usual. If mjUSESINGLE is defined, MuJoCo will use single-precision floating point. See mjtNum.
Relatedly, fixed various type errors that prevented building with single-precision.
22a10fd2 Quaternions in mjData.qpos and mjData.mocap_quat are no longer normalized in-place by mj_kinematics. Instead they are normalized when they are used. After the first step, quaternions in mjData.qpos will be normalized.
3d1d1d07 Mesh loading in the compiler, which is usually the slowest part of the loading process, is now multi-threaded.
4c3d9461 Added support for elliptic friction cones.
4c3d9461 Fixed a bug that resulted in less-optimal linesearch solutions for some difficult constraint settings.
4c3d9461 Fixed a bug in the Newton solver that sometimes resulted in less-optimal gradients.
1eb70864 Added improved tutorial video.
f37f8408 Improved the Brownian noise generator.
3d1d1d07 Now displaying model load times if they are longer than 0.25 seconds.
2188cba4 Fixed a memory leak when using copy.deepcopy() on a mujoco.MjData instance (1572).
e7301edd Fix an issue where mj_copyData (or copy.copy() in the Python bindings) was not copying contact information correctly (1710).
8e827d0d Fix an issue with saving to XML that caused frames to be written multiple times (1802).
See the changelog.
See the changelog.
02d01545 Added mj_geomDistance for computing the shortest signed distance between two geoms and optionally a segment connecting them. Relatedly, added the 3 sensors: distance , normal , fromto . See the function and sensor documentation for details. Fixes issue #51 .
2830a407 Improvements to position actuators:
Added timeconst attribute to the position actuator . When set to a positive value, the actuator is made stateful with filterexact dynamics.
Added dampratio to both position and intvelocity actuators. An alternative to the kv attribute, it provides a convenient way to set actuator damping using natural units. See attribute documentation for details.
c511d022 Add height-field collision support. Fixes issue #1491 .
c511d022 Add a pre-compiled field mesh_convex to mjx.Model so that mesh properties can be vmapped over. Fixes issue #1655 .
c511d022 Fix a bug in convex mesh collisions, where erroneous edge contacts were being created even though face separating axes were found. Fixes issue #1695 .
96844db9 Fixed a bug the could cause collisions to be missed when fusestatic is enabled, as is often the case for URDF imports. Fixes issue #1069 , issue #1577 .
1d181786 Fixed a bug that was causing the visualization of SDF iterations to write outside the size of the vector storing them. Fixes issue #1539 .
See the changelog.
See the changelog.
26f23066 Added the replicate to MJCF, a meta-element which permits to repeat a subtree with incremental translational and rotational offsets.
ad045968 Enabled an internal cache in the MuJoCo compiler resulting in recompilation speedup. Currently, processed textures, hfields, and OBJ meshes are cached. Support for Unity environments is not yet available.
6481a838 Added mjModel.mesh_scale : the scaling applied to asset vertices, as specified in the scale attribute.
caf215e3 Added visual properties which are ignored by the native renderer, but can be used by external renderers:
light/bulbradius attribute and corresponding mjModel.light_bulbradius field.
material/metallic attribute and corresponding mjModel.material_metallic field.
material/roughness attribute and corresponding mjModel.material_roughness field.
546a27ca The type of the size argument of mj_stackAllocNum and mj_stackAllocInt was changed from int to size_t .
131b1745 Added support for gmsh format version 2.2 surface meshes in flexcomp .
Breaking API changes
718e079c Removed deprecated mjx.device_get_into and mjx.device_put functions as they lack critical new functionality.
Migration: Use mjx.get_data_into instead of mjx.device_get_into , and mjx.put_data instead of mjx.device_put .
0cd28d24 Added cylinder plane collisions.
71333938 Added efc_type to mjx.Data and dim , efc_address to mjx.Contact .
71333938 Added geom to mjx.Contact and marked geom1 , geom2 deprecated.
3b64217b Added ne , nf , nl , nefc , and ncon to mjx.Data to match mujoco.MjData .
a4df9120 Given the above added fields, removed mjx.get_params , mjx.ncon , and mjx.count_constraints .
a4df9120 Changed the way meshes are organized on device to speed up collision detection when a mesh is replicated for many geoms.
a4df9120 Fixed a bug where capsules might be ignored in broadphase colliision checking.
c2d0c5dd Added cylinder collisions using SDFs.
71333938 Added support for all condim : 1, 3, 4, 6.
d15db545 Add support functions for id2name and name2id , MJX versions of mj_id2name and mj_name2id .
e9709900 Added support for gravcomp and actuatorgravcomp .
719476c2 Fixed a bug in mjx.ray for sometimes allowed negative distances for ray-mesh tests.
24bc1c8b Added a new differentiable physics tutorial that demonstrates training locomotion policies with analytical gradients automatically derived from the MJX physics step. Contribution by @Andrew-Luo1 .
0cd28d24 Defaults of lights were not being saved, now fixed.
4b6c07cd Prevent overwriting of frame names by body names when saving an XML. Bug introduced in 3.1.4.
2b497581 Fixed bug in Python binding of mj_saveModel : buffer argument was documented as optional but was actually not optional.
546a27ca Fixed bug that prevented memory allocations larger than 2.15 GB. Fixes issue #1606 .
26f23066 Added the replicate to MJCF, a meta-element which permits to repeat a subtree with incremental translational and rotational offsets.
ad045968 Enabled an internal cache in the MuJoCo compiler resulting in recompilation speedup. Currently, processed textures, hfields, and OBJ meshes are cached. Support for Unity environments is not yet available.
6481a838 Added mjModel.mesh_scale: the scaling applied to asset vertices, as specified in the scale attribute.
caf215e3 Added visual properties which are ignored by the native renderer, but can be used by external renderers:
light/bulbradius attribute and corresponding mjModel.light_bulbradius field.
material/metallic attribute and corresponding mjModel.material_metallic field.
material/roughness attribute and corresponding mjModel.material_roughness field.
546a27ca The type of the size argument of mj_stackAllocNum and mj_stackAllocInt was changed from int to size_t.
131b1745 Added support for gmsh format version 2.2 surface meshes in flexcomp.
Breaking API changes
718e079c Removed deprecated mjx.device_get_into and mjx.device_put functions as they lack critical new functionality.
Migration: Use mjx.get_data_into instead of mjx.device_get_into, and mjx.put_data instead of mjx.device_put.
0cd28d24 Added cylinder plane collisions.
71333938 Added efc_type to mjx.Data and dim, efc_address to mjx.Contact.
71333938 Added geom to mjx.Contact and marked geom1, geom2 deprecated.
3b64217b Added ne, nf, nl, nefc, and ncon to mjx.Data to match mujoco.MjData.
a4df9120 Given the above added fields, removed mjx.get_params, mjx.ncon, and mjx.count_constraints.
a4df9120 Changed the way meshes are organized on device to speed up collision detection when a mesh is replicated for many geoms.
a4df9120 Fixed a bug where capsules might be ignored in broadphase colliision checking.
c2d0c5dd Added cylinder collisions using SDFs.
71333938 Added support for all condim: 1, 3, 4, 6.
d15db545 Add support functions for id2name and name2id, MJX versions of mj_id2name and mj_name2id.
e9709900 Added support for gravcomp and actuatorgravcomp.
719476c2 Fixed a bug in mjx.ray for sometimes allowed negative distances for ray-mesh tests.
24bc1c8b Added a new differentiable physics tutorial that demonstrates training locomotion policies with analytical gradients automatically derived from the MJX physics step. Contribution by Andrew-Luo1.
0cd28d24 Defaults of lights were not being saved, now fixed.
4b6c07cd Prevent overwriting of frame names by body names when saving an XML. Bug introduced in 3.1.4.
2b497581 Fixed bug in Python binding of mj_saveModel: buffer argument was documented as optional but was actually not optional.
546a27ca Fixed bug that prevented memory allocations larger than 2.15 GB. Fixes 1606.
See the changelog.
See the changelog.
Breaking API changes
5d26b50f Removed the ability to natively add noise to sensors. Note that the mjModel.sensor_noise field and corresponding attribute are kept and now function as a convenient location for the user to save standard-deviation information for their own use. This feature was removed because:
There was no mechanism to seed the random noise generator.
It was not thread-safe, even if seeding would have been provided, sampling on multiple threads would lead to non-reproducible results.
This feature was seen as overreach by the engine. Adding noise should be the user’s responsibility.
We are not aware of anyone who was actually using the feature.
Migration: Add noise to sensor values yourself.
47ba72ea Added the actuatorgravcomp joint attribute. When enabled, gravity compensation forces on the joint are treated as applied by actuators. See attribute documentation for more details. The example model refsite.xml , which demonstrates Cartesian actuation of an arm, has been updated to use this attribute.
4f0293c6 Added support for gmsh format 2.2 , tetrahedral mesh, as generated by e.g. fTetwild .
5a365603 Added mju_euler2Quat for converting an Euler-angle sequence to quaternion.
22cd96fb Improved performance of SAT for convex collisions.
f2e107f7 Fixed bug for sphere/capsule-convex deep penetration.
02c62c11 Fixed bug where mjx.Data produced by mjx.put_data had different treedef than mjx.make_data .
2386353b Throw an error for margin/gap for convex mesh collisions, since they are not supported.
2b3f336b Added ellipsoid plane collisions.
b4419235 Added support for userdata.
2b3f336b Added ellipsoid-ellipsoid and ellipsoid-capsule collisions using signed distance functions (SDFs).
bb42ff16 Fixed bug in order of enable flag strings. Before this change, using the simulate UI to toggle the invdiscrete or the (now removed) sensornoise flags would actually toggle the other flag.
adc4b92c Added the mujoco.minimize Python module for nonlinear least-squares, designed for System Identification (sysID). The sysID tutorial is work in progress, but a pedagogical colab notebook with examples, including Inverse Kinematics, is available here:
The video on the right shows example clips from the tutorial.
Breaking API changes
5d26b50f Removed the ability to natively add noise to sensors. Note that the mjModel.sensor_noise field and corresponding attribute are kept and now function as a convenient location for the user to save standard-deviation information for their own use. This feature was removed because:
There was no mechanism to seed the random noise generator.
It was not thread-safe, even if seeding would have been provided, sampling on multiple threads would lead to non-reproducible results.
This feature was seen as overreach by the engine. Adding noise should be the user's responsibility.
We are not aware of anyone who was actually using the feature.
Migration: Add noise to sensor values yourself.
47ba72ea Added the actuatorgravcomp joint attribute. When enabled, gravity compensation forces on the joint are treated as applied by actuators. See attribute documentation for more details. The example model refsite.xml, which demonstrates Cartesian actuation of an arm, has been updated to use this attribute.
4f0293c6 Added support for gmsh format 2.2 , tetrahedral mesh, as generated by e.g. fTetwild.
5a365603 Added mju_euler2Quat for converting an Euler-angle sequence to quaternion.
22cd96fb Improved performance of SAT for convex collisions.
f2e107f7 Fixed bug for sphere/capsule-convex deep penetration.
02c62c11 Fixed bug where mjx.Data produced by mjx.put_data had different treedef than mjx.make_data.
2386353b Throw an error for margin/gap for convex mesh collisions, since they are not supported.
2b3f336b Added ellipsoid plane collisions.
b4419235 Added support for userdata.
2b3f336b Added ellipsoid-ellipsoid and ellipsoid-capsule collisions using signed distance functions (SDFs).
bb42ff16 Fixed bug in order of enable flag strings. Before this change, using the simulate UI to toggle the invdiscrete or the (now removed) sensornoise flags would actually toggle the other flag.
adc4b92c Added the mujoco.minimize Python module for nonlinear least-squares, designed for System Identification (sysID). The sysID tutorial is work in progress, but a pedagogical colab notebook with examples, including Inverse Kinematics, is available here: |br| The video on the right shows example clips from the tutorial.
See the changelog.
See the changelog.
05150546 Added the inheritrange attribute to position and intvelocity actuators, allowing convenient setting of the actuator’s ctrlrange or actrange (respectively), according to the range of the transmission target (joint or tendon). See position/inheritrange for details.
a4a621f6 Deprecated mj_makeEmptyFileVFS in favor of mj_addBufferVFS . mjVFS now computes checksums of its internal file buffers. mj_addBufferVFS allocates an empty buffer with a given name in an mjVFS and copies the data buffer into it, combining and replacing the deprecated two-step process of calling mj_makeEmptyFileVFS followed by a direct copy into the given mjVFS internal file buffer.
6b7d7142 Added mj_angmomMat which computes the 3 x nv angular momentum matrix (H(q)) , providing the linear mapping from generalized velocities to subtree angular momentum (h = H \dot q) . Contribution by @v-r-a .
4933a2c7 Improved performance of getting and putting device data.
Use tobytes() for numpy array serialization, which is orders of magnitude faster than converting to tuples.
Avoid reallocating host mjData arrays when array shapes are unchanged.
Speed up calculation of mjx.ncon for models with many geoms.
Avoid calling mjx.ncon in mjx.get_data_into when nc can be derived from mjx.Data .
e77c3cb2 Fixed a bug in mjx-viewer that prevented it from running. Updated mjx-viewer to use newer mjx.get_data_into function call.
47bb4a82 Fixed a bug in mjx.euler that applied incorrect damping when using dense mass matrices.
47bb4a82 Fixed a bug in mjx.solve that was causing slow convergence when using mjSOL_NEWTON in mjtSolver .
6a346c42 Added support for mjOption.impratio to mjx.Model .
2067e208 Added support for cameras in mjx.Model and mjx.Data . Fixes issue #1422 .
419be4c6 Added an implementation of broadphase using top_k and bounding spheres.
abf6d41b Fixed incorrect data types in the bindings for the geom , vert , elem , and flex array members of the mjContact struct, and all array members of the mjrContext struct.
05150546 Added the inheritrange attribute to position and intvelocity actuators, allowing convenient setting of the actuator's ctrlrange or actrange (respectively), according to the range of the transmission target (joint or tendon). See position/inheritrange for details.
a4a621f6 Deprecated mj_makeEmptyFileVFS in favor of mj_addBufferVFS. mjVFS now computes checksums of its internal file buffers. mj_addBufferVFS allocates an empty buffer with a given name in an mjVFS and copies the data buffer into it, combining and replacing the deprecated two-step process of calling mj_makeEmptyFileVFS followed by a direct copy into the given mjVFS internal file buffer.
6b7d7142 Added mj_angmomMat which computes the 3 x nv angular momentum matrix H(q), providing the linear mapping from generalized velocities to subtree angular momentum h = H dot q. Contribution by v-r-a.
4933a2c7 Improved performance of getting and putting device data.
Use tobytes() for numpy array serialization, which is orders of magnitude faster than converting to tuples.
Avoid reallocating host mjData arrays when array shapes are unchanged.
Speed up calculation of mjx.ncon for models with many geoms.
Avoid calling mjx.ncon in mjx.get_data_into when nc can be derived from mjx.Data.
e77c3cb2 Fixed a bug in mjx-viewer that prevented it from running. Updated mjx-viewer to use newer mjx.get_data_into function call.
47bb4a82 Fixed a bug in mjx.euler that applied incorrect damping when using dense mass matrices.
47bb4a82 Fixed a bug in mjx.solve that was causing slow convergence when using mjSOL_NEWTON in mjtSolver.
6a346c42 Added support for mjOption.impratio to mjx.Model.
2067e208 Added support for cameras in mjx.Model and mjx.Data. Fixes 1422.
419be4c6 Added an implementation of broadphase using top_k and bounding spheres.
abf6d41b Fixed incorrect data types in the bindings for the geom, vert, elem, and flex array members of the mjContact struct, and all array members of the mjrContext struct.
See the changelog.
See the changelog.
e0864ab7 Improved the discardvisual compiler flag, which now discards all visual-only assets. See discardvisual for details.
2feefbc5 Removed the timer for midphase colllision detection, it is now folded in with the narrowphase timer. This is because timing the two phases separately required fine-grained timers inside the collision functions; these functions are so small and fast that the timer itself was incurring a measurable cost.
fea7c10b Added the flag bvactive to visual/global , allowing users to turn off visualisation of active bounding volumes (the red/green boxes in this this changelog item ). For models with very high-resolution meshes, the computation required for this visualization can slow down simulation speed. Fixes issue #1279 .
Added color of bounding volumes and active bounding volumes to visual/rgba .
e143b3db Height-field elevation data can now be specified directly in XML with the elevation attribute (and not only with PNG files). See example model .
80f50c94 Added dyntype filterexact .
8ce2c920 Added site transmission.
feb92bf5 Updated MJX colab tutorial with more stable quadruped environment.
a02fc405 Added mjx.ray which mirrors mj_ray for planes, spheres, capsules, boxes, and meshes.
0a7be173 Added mjx.is_sparse which mirrors mj_isSparse and mjx.full_m which mirrors mj_fullM .
0a7be173 Added support for specifying sparse or dense mass matrices via jacobian: [dense, sparse, auto], “auto” .
508669a9 Raise a not implemented error when nonzero frictionloss is present. Fixes issue #1344 .
aceb52bd Improved the implementation of the rollout module. Note the changes below are breaking, dependent code will require modification.
Uses mjSTATE_FULLPHYSICS as state spec, enabling divergence detection by inspecting time.
Allows user-defined control spec for any combination of user input fields as controls.
Outputs are no longer squeezed and always have dim=3.
7bb0ce42 The sync function for the passive viewer can now pick up changes to rendering flags in user_scn , as requested in issue #1190 .
1e2e0b30 Fixed a bug that prevented the use of pins with plugins if flexes are not in the worldbody. Fixes issue #1270 .
a14a584f Fixed a bug in the muscle model that led to non-zero values outside the lower bound of the length range. Fixes issue #1342 .
e0864ab7 Improved the discardvisual compiler flag, which now discards all visual-only assets. See discardvisual for details.
2feefbc5 Removed the timer for midphase colllision detection, it is now folded in with the narrowphase timer. This is because timing the two phases separately required fine-grained timers inside the collision functions; these functions are so small and fast that the timer itself was incurring a measurable cost.
fea7c10b Added the flag bvactive to visual/global, allowing users to turn off visualisation of active bounding volumes (the red/green boxes in this this changelog item). For models with very high-resolution meshes, the computation required for this visualization can slow down simulation speed. Fixes 1279.
Added color of bounding volumes and active bounding volumes to visual/rgba.
e143b3db Height-field elevation data can now be specified directly in XML with the elevation attribute (and not only with PNG files). See example model.
80f50c94 Added dyntype filterexact.
8ce2c920 Added site transmission.
feb92bf5 Updated MJX colab tutorial with more stable quadruped environment.
a02fc405 Added mjx.ray which mirrors mj_ray for planes, spheres, capsules, boxes, and meshes.
0a7be173 Added mjx.is_sparse which mirrors mj_isSparse and mjx.full_m which mirrors mj_fullM.
0a7be173 Added support for specifying sparse or dense mass matrices via option-jacobian.
508669a9 Raise a not implemented error when nonzero frictionloss is present. Fixes 1344.
aceb52bd Improved the implementation of the rollout module. Note the changes below are breaking, dependent code will require modification.
Uses mjSTATE_FULLPHYSICS as state spec, enabling divergence detection by inspecting time.
Allows user-defined control spec for any combination of user input fields as controls.
Outputs are no longer squeezed and always have dim=3.
7bb0ce42 The sync function for the passive viewer can now pick up changes to rendering flags in user_scn, as requested in 1190.
1e2e0b30 Fixed a bug that prevented the use of pins with plugins if flexes are not in the worldbody. Fixes 1270.
a14a584f Fixed a bug in the muscle model that led to non-zero values outside the lower bound of the length range. Fixes 1342.
See the changelog.
See the changelog.
d39ed1d3 Fixed a bug (introduced in 3.1.0) where box-box collisions produced no contacts if one box was deeply embedded in the other.
dc0d0c59 Fixed a bug in simulate where the “LOADING…” message was not showing correctly.
d39ed1d3 Fixed a crash in the Python passive viewer , when used with models containing Flex objects.
0915d69c Fixed a bug in MJX where site_xmat was ignored in get_data and put_data
d39ed1d3 Fixed a bug in MJX where efc_address was sometimes incorrectly calculated in get_data .
d39ed1d3 Fixed a bug (introduced in 3.1.0) where box-box collisions produced no contacts if one box was deeply embedded in the other.
dc0d0c59 Fixed a bug in simulate where the "LOADING..." message was not showing correctly.
d39ed1d3 Fixed a crash in the Python passive viewer, when used with models containing Flex objects.
0915d69c Fixed a bug in MJX where site_xmat was ignored in get_data and put_data
d39ed1d3 Fixed a bug in MJX where efc_address was sometimes incorrectly calculated in get_data.
See the changelog.
See the changelog.
8ca51b53 Improved convergence of Signed Distance Function (SDF) collisions by using line search and a new objective function for the optimization. This allows to decrease the number of initial points needed for finding the contacts and is more robust for very small or large geom sizes.
eb9568a4 Added frame to MJCF, a meta-element which defines a pure coordinate transformation on its direct children, without requiring a body .
762371c3 Added the kv attribute to the position and intvelocity actuators, for specifying actuator-applied damping. This can be used to implement a PD controller with 0 reference velocity. When using this attribute, it is recommended to use the implicitfast or implicit integrators .
f2025c6a Allow actuator plugins to use activation variables in mjData.act as their internal state, rather than mjData.plugin_state . Actuator plugins can now specify callbacks that compute activation variables, and they can be used with built-in dyntype actuator dynamics.
ca046cbf Added the pid actuator plugin, a configurable PID controller that implements the Integral term, which is not available with native MuJoCo actuators.
35c90844 Added site_xpos and site_xmat to MJX.
67fa7c1d Added put_data , put_model , get_data to replace device_put and device_get_into , which will be deprecated. These new functions correctly translate fields that are the result of intermediate calculations such as efc_J .
cd56a41f Fix bug in Cartesian actuation with movable refsite, as when using body-centric Cartesian actuators on a quadruped. Before this fix such actuators could lead to non-conservation of momentum.
cd56a41f Fix bug that prevented using flex with simulate .
7d8d4d39 Fix bug that prevented the use of elasticity plugins in combination with pinned flex vertices.
3c05f9fa Release Python wheels targeting macOS 10.16 to support x86_64 systems where SYSTEM_VERSION_COMPAT is set. The minimum supported version is still 11.0, but we release these wheels to fix compatibility for those users. See issue #1213 .
49ddb7ca Fixed mass computation of meshes: Use the correct mesh volume instead of approximating it using the inertia box.
8ca51b53 Improved convergence of Signed Distance Function (SDF) collisions by using line search and a new objective function for the optimization. This allows to decrease the number of initial points needed for finding the contacts and is more robust for very small or large geom sizes.
eb9568a4 Added frame to MJCF, a meta-element which defines a pure coordinate transformation on its direct children, without requiring a body.
762371c3 Added the kv attribute to the position and intvelocity actuators, for specifying actuator-applied damping. This can be used to implement a PD controller with 0 reference velocity. When using this attribute, it is recommended to use the implicitfast or implicit integrators.
f2025c6a Allow actuator plugins to use activation variables in mjData.act as their internal state, rather than mjData.plugin_state. Actuator plugins can now specify callbacks that compute activation variables, and they can be used with built-in dyntype actuator dynamics.
ca046cbf Added the pid actuator plugin, a configurable PID controller that implements the Integral term, which is not available with native MuJoCo actuators.
35c90844 Added site_xpos and site_xmat to MJX.
67fa7c1d Added put_data, put_model, get_data to replace device_put and device_get_into, which will be deprecated. These new functions correctly translate fields that are the result of intermediate calculations such as efc_J.
cd56a41f Fix bug in Cartesian actuation with movable refsite, as when using body-centric Cartesian actuators on a quadruped. Before this fix such actuators could lead to non-conservation of momentum.
cd56a41f Fix bug that prevented using flex with simulate.
7d8d4d39 Fix bug that prevented the use of elasticity plugins in combination with pinned flex vertices.
3c05f9fa Release Python wheels targeting macOS 10.16 to support x86_64 systems where SYSTEM_VERSION_COMPAT is set. The minimum supported version is still 11.0, but we release these wheels to fix compatibility for those users. See 1213.
49ddb7ca Fixed mass computation of meshes: Use the correct mesh volume instead of approximating it using the inertia box.
See the changelog.
See the changelog.
a89412bb Added sub-terms of total passive forces in mjData.qfrc_passive to mjData : qfrc_{spring, damper, gravcomp, fluid} . The sum of these vectors equals qfrc_passive .
893c4042 Added actuatorgroupdisable attribute and associated mjOption.disableactuator integer bitfield, which can be used to disable sets of actuators at runtime according to their group . Fixes issue #1092 . See Group disable .
The first 6 actuator groups are toggleable in the simulate viewer. See example model and associated screen-capture on the right.
7e419276 Increased mjMAXUIITEM (maximum number of UI elements per section in Simulate) to 200.
3c0a56c1 Added support for Newton solver ( mjSOL_NEWTON in mjtSolver ). The Newton solver significantly speeds up simulation on GPU:
Steps-per-second, Conjugate Gradient vs. Newton on A100 #
Model
CG
Newton
Speedup
Humanoid
640,000
1,020,000
1.6 x
Barkour v0
1,290,000
1,750,000
1.35 x
Shadow Hand
215,000
270,000
1.25 x
Humanoid is the standard MuJoCo humanoid, Google Barkour and the Shadow Hand are both available in the MuJoCo Menagerie .
70699765 Added support for joint equality constraints ( mjEQ_JOINT in mjtEq ).
f6ed57e9 Fixed bug where mixed jnt_limited joints were not being constrained correctly.
e4a9f535 Made device_put type validation more verbose (fixes issue #1113 ).
843360b7 Removed empty EFC rows from MJX , for joints with no limits (fixes issue #1117 ).
c8146372 Fixed bug in scan.body_tree that led to incorrect smooth dynamics for some kinematic tree layouts.
4c24be9e Fix the macOS mjpython launcher to work with the Python interpreter from Apple Command Line Tools.
084facc9 Fixed a crash when copying instances of mujoco.MjData for models that use plugins. Introduced a model attribute to MjData which is reference to the model that was used to create that MjData instance.
f6ed57e9 simulate : correct handling of “Pause update”, “Fullscreen” and “VSync” buttons.
8d5966ee Added cell to the tutorial colab providing an example of procedural camera control:
2bb8652b Added documentation for the User Interface framework.
dc8bac2f Fixed typos and supported fields in docs (fixes issue #1105 and issue #1106 ).
86d9c84e Fixed bug relating to welds modified with torquescale .
a89412bb Added sub-terms of total passive forces in mjData.qfrc_passive to mjData: qfrc_{spring, damper, gravcomp, fluid}. The sum of these vectors equals qfrc_passive.
893c4042 Added actuatorgroupdisable attribute and associated mjOption.disableactuator integer bitfield, which can be used to disable sets of actuators at runtime according to their group. Fixes 1092. See CActDisable.
The first 6 actuator groups are toggleable in the simulate viewer. See example model and associated screen-capture on the right.
7e419276 Increased mjMAXUIITEM (maximum number of UI elements per section in Simulate) to 200.
3c0a56c1 Added support for Newton solver (mjSOL_NEWTON in mjtSolver). The Newton solver significantly speeds up simulation on GPU:
Model |
CG |
Newton |
Speedup |
|---|---|---|---|
640,000 |
1,020,000 |
1.6 x |
|
1,290,000 |
1,750,000 |
1.35 x |
|
215,000 |
270,000 |
1.25 x |
Humanoid is the standard MuJoCo humanoid, Google Barkour and the Shadow Hand are both available in the MuJoCo Menagerie.
70699765 Added support for joint equality constraints (mjEQ_JOINT in mjtEq).
f6ed57e9 Fixed bug where mixed jnt_limited joints were not being constrained correctly.
e4a9f535 Made device_put type validation more verbose (fixes 1113).
843360b7 Removed empty EFC rows from MJX, for joints with no limits (fixes 1117).
c8146372 Fixed bug in scan.body_tree that led to incorrect smooth dynamics for some kinematic tree layouts.
4c24be9e Fix the macOS mjpython launcher to work with the Python interpreter from Apple Command Line Tools.
084facc9 Fixed a crash when copying instances of mujoco.MjData for models that use plugins. Introduced a model attribute to MjData which is reference to the model that was used to create that MjData instance.
f6ed57e9 simulate: correct handling of "Pause update", "Fullscreen" and "VSync" buttons.
8d5966ee Added cell to the tutorial colab providing an example of procedural camera control:
2bb8652b Added documentation for the UI framework.
dc8bac2f Fixed typos and supported fields in docs (fixes 1105 and 1106).
86d9c84e Fixed bug relating to welds modified with torquescale.
> 14. Changed the default of `autolimits` from "false" to "true". This is a minor breaking change. The potential breakage applies to models which have…
Added simulation on GPU and TPU via the new MuJoCo XLA (MJX) Python module. Python users can now natively run MuJoCo simulations at millions of steps per second on Google TPU or their own accelerator hardware.
Added new signed distance field (SDF) collision primitive. SDFs can take any shape and are not constrained to be convex. Collision points are found by minimizing the maximum of the two colliding SDFs via gradient descent.
Added new low-level model element called flex, used to define deformable objects. These simplicial complexes can be of dimension 1, 2 or 3, corresponding to stretchable lines, triangles or tetrahedra. Two new MJCF elements are used to define flexes. The top-level deformable section contains the low-level flex definition. The flexcomp element, similar to composite is a convenience macro for creating deformables, and supports the GMSH tetrahedral file format.
Added shell passive force plugin, computing bending forces using a constant precomputed Hessian (cotangent operator).
Note: This feature is still under development and subject to change. In particular, deformable object functionality is currently available both via deformable and composite, and both are modifiable by the first-party elasticity plugins. We expect some of this functionality to be unified in the future.
Added constraint island discovery with mj_island. Constraint islands are disjoint sets of constraints and degrees-of-freedom that do not interact. The only solver which currently supports islands is CG. Island discovery can be activated using a new enable flag. If island discovery is enabled, geoms, contacts and tendons will be colored according to the corresponding island, see video. Island discovery is currently disabled for models that have deformable objects (see previous item).
Added mjThreadPool and mjTask which allow for multi-threaded operations within the MuJoCo engine pipeline. If engine-internal threading is enabled, the following operations will be multi-threaded:
Engine-internal threading is a work in progress and currently only available in first-party code via the testspeed utility, exposed with the npoolthread flag.
Added capability to initialize composite particles from OBJ files. Fixes #642 and #674.
[!IMPORTANT] Breaking API changes
Removed the macros
mjMARKSTACKandmjFREESTACK.Migration: These macros have been replaced by new functions
mj_markStackandmj_freeStack. These functions manage themjDatastack in a fully encapsulated way (i.e., without introducing a local variable at the call site).Renamed
mj_stackAlloctomj_stackAllocNum. The new functionmj_stackAllocByteallocates an arbitrary number of bytes and has an additional argument for specifying the alignment of the returned pointer.Migration: The functionality for allocating
mjtNumarrays is now available viamj_stackAllocNum.Renamed the
nstackfield inmjModelandmjDatatonarena. Changednarena,pstack, andmaxuse_stackto count number of bytes rather than number ofmjtNums.Changed
mjData.solver, the array used to collect solver diagnostic information. This array ofmjSolverStatstructs is now of lengthmjNISLAND * mjNSOLVER, interpreted as as a matrix. Each row of lengthmjNSOLVERcontains separate solver statistics for each constraint island. If the solver does not use islands, only row 0 is filled.
- The new constant
mjNISLANDwas set to 20.mjNSOLVERwas reduced from 1000 to 200.- Added
mjData.solver_nisland: the number of islands for which the solver ran.- Renamed
mjData.solver_itertosolver_niter. Both this member andmjData.solver_nnzare now integer vectors of lengthmjNISLAND.Removed
mjOption.collisionand the associatedoption/collisionattribute.Migration:
- For models which have
<option collision="all"/>, delete the attribute.- For models which have
<option collision="dynamic"/>, delete allpairelements.- For models which have
<option collision="pair"/>, disable all dynamic collisions (determined via contype/conaffinity) by first deleting allcontypeandconaffinityattributes in the model and then setting them globally to0using<default> <geom contype="0" conaffinity="0"/> </default>.Removed the
ropeandclothcomposite objects.Migration: Users should use the
cableandshellelasticity plugins.Added
mjData.eq_activeuser input variable, for enabling/disabling the state of equality constraints. RenamedmjModel.eq_activetomjModel.eq_active0, which now has the semantic of "initial value ofmjData.eq_active". Fixes #876.Migration: Replace uses of
mjModel.eq_activewithmjData.eq_active.Changed the default of
autolimitsfrom "false" to "true". This is a minor breaking change. The potential breakage applies to models which have elements with "range" defined and "limited" not set. Such models cannot be loaded since version 2.2.2 (July 2022).
Added a new dyntype, filterexact, which updates first-order filter states with the exact formula rather than with Euler integration.
Added an actuator attribute, actearly, which uses semi-implicit integration for actuator forces: using the next step's actuator state to compute the current actuator forces.
Renamed actuatorforcerange and actuatorforcelimited, introduced in the previous version to actuatorfrcrange and actuatorfrclimited, respectively.
Added the flag eulerdamp, which disables implicit integration of joint damping in the Euler integrator. See the Numerical Integration section for more details.
Added the flag invdiscrete, which enables discrete-time inverse dynamics for all integrators other than RK4. See the flag documentation for more details.
Added ls_iterations and ls_tolerance options for adjusting linesearch stopping criteria in CG and Newton solvers. These can be useful for performance tuning.
Added mesh_pos and mesh_quat fields to mjModel to store the normalizing transformation applied to mesh assets. Fixes #409.
Added camera resolution attribute and camprojection sensor. If camera resolution is set to positive values, the camera projection sensor will report the location of a target site, projected onto the camera image, in pixel coordinates.
Added camera calibration attributes:
resolution, focal, focalpixel, principal, principalpixel and sensorsize.mjVIS_CAMERA visualization flag when these attributes are specified. See the following example model.Implemented reversed Z rendering for better depth precision. An enum mjtDepthMap was added with values mjDEPTH_ZERONEAR and mjDEPTH_ZEROFAR, which can be used to set the new readDepthMap attribute in mjrContext to control how the depth returned by mjr_readPixels is mapped from znear to zfar. Contribution #978 by @aftersomemath.
Deleted the code sample testxml. The functionality provided by this utility is implemented in the WriteReadCompare test.
Deleted the code sample derivative. Functionality provided by mjd_transitionFD.
update_scene with an invalid camera name used the default camera.user_scn to the passive viewer handle, which allows users to add custom visualization geoms (#1023).show_left_ui and show_right_ui to the functions viewer.launch and viewer.launch_passive, which allow users to launch a viewer with UI panels hidden.Added state history mechanism to simulate and the managed Python viewer. State history can be viewed by scrubbing the History slider and (more precisely) with the left and right arrow keys.
The LOADING... label is now shown correctly. Contribution #1070 by @aftersomemath.
Fixed a bug that was causing geom margin to be ignored during the construction of midphase collision trees.
Fixed a bug that was generating incorrect values in efc_diagApprox for weld equality constraints.
8f9c690c Added simulation on GPU and TPU via the new mjx (MJX) Python module. Python users can now natively run MuJoCo simulations at millions of steps per second on Google TPU or their own accelerator hardware.
MJX is designed to work with on-device reinforcement learning algorithms. This Colab notebook demonstrates using MJX along with reinforcement learning to train humanoid and quadruped robots to locomote:
The MJX API is compatible with MuJoCo but is missing some features in this release. See the outline of MJX feature parity for more details.
fdb04158 Added new signed distance field (SDF) collision primitive. SDFs can take any shape and are not constrained to be convex. Collision points are found by minimizing the maximum of the two colliding SDFs via gradient descent.
Added new SDF plugin for defining implicit geometries. The plugin must define methods computing an SDF and its gradient at query points. See the documentation for more details.
139a8ae2 Added new low-level model element called flex, used to define deformable objects. These simplicial complexes can be of dimension 1, 2 or 3, corresponding to stretchable lines, triangles or tetrahedra. Two new MJCF elements are used to define flexes. The top-level deformable section contains the low-level flex definition. The flexcomp element, similar to composite is a convenience macro for creating deformables, and supports the GMSH tetrahedral file format.
Added shell passive force plugin, computing bending forces using a constant precomputed Hessian (cotangent operator).
Note: This feature is still under development and subject to change. In particular, deformable object functionality is currently available both via deformable and composite, and both are modifiable by the first-party elasticity plugins. We expect some of this functionality to be unified in the future.
3e034e38 Added constraint island discovery with mj_island. Constraint islands are disjoint sets of constraints and degrees-of-freedom that do not interact. The only solver which currently supports islands is CG. Island discovery can be activated using a new enable flag. If island discovery is enabled, geoms, contacts and tendons will be colored according to the corresponding island, see video. Island discovery is currently disabled for models that have deformable objects (see previous item).
62251869 Added mjThreadPool and mjTask which allow for multi-threaded operations within the MuJoCo engine pipeline. If engine-internal threading is enabled, the following operations will be multi-threaded:
Island constraint resolution, if island discovery is enabled and the CG solver is selected. The 22 humanoids model shows a 3x speedup compared to the single threaded simulation.
Inertia-related computations and collision detection will happen in parallel.
Engine-internal threading is a work in progress and currently only available in first-party code via the testspeed utility, exposed with the npoolthread flag.
139a8ae2 Added capability to initialize composite particles from OBJ files. Fixes 642 and 674.
Breaking API changes
ba66bd4f Removed the macros mjMARKSTACK and mjFREESTACK.
Migration: These macros have been replaced by new functions mj_markStack and mj_freeStack. These functions manage the mjData stack in a fully encapsulated way (i.e., without introducing a local variable at the call site).
9902b735 Renamed mj_stackAlloc to mj_stackAllocNum. The new function mj_stackAllocByte allocates an arbitrary number of bytes and has an additional argument for specifying the alignment of the returned pointer.
Migration: The functionality for allocating mjtNum arrays is now available via mj_stackAllocNum.
49290772 Renamed the nstack field in mjModel and mjData to narena. Changed narena, pstack, and maxuse_stack to count number of bytes rather than number of mjtNum |-| s.
86d8b912 Changed mjData.solver, the array used to collect solver diagnostic information. This array of mjSolverStat structs is now of length mjNISLAND * mjNSOLVER, interpreted as as a matrix. Each row of length mjNSOLVER contains separate solver statistics for each constraint island. If the solver does not use islands, only row 0 is filled.
The new constant mjNISLAND was set to 20.
mjNSOLVER was reduced from 1000 to 200.
Added mjData.solver_nisland: the number of islands for which the solver ran.
Renamed mjData.solver_iter to solver_niter. Both this member and mjData.solver_nnz are now integer vectors of length mjNISLAND.
9cf1f6eb Removed mjOption.collision and the associated option/collision attribute.
Migration:
For models which have <option collision="all"/>, delete the attribute.
For models which have <option collision="dynamic"/>, delete all pair elements.
For models which have <option collision="predefined"/>, disable all dynamic collisions (determined via contype/conaffinity) by first deleting all contype and conaffinity attributes in the model and then setting them globally to 0 using |br| <default> <geom contype="0" conaffinity="0"/> </default>.
d3d46e16 Removed the rope and cloth composite objects.
Migration: Users should use the cable and shell elasticity plugins.
ee78b8f7 Added mjData.eq_active user input variable, for enabling/disabling the state of equality constraints. Renamed mjModel.eq_active to mjModel.eq_active0, which now has the semantic of "initial value of mjData.eq_active". Fixes 876.
Migration: Replace uses of mjModel.eq_active with mjData.eq_active.
d88675a0 Changed the default of autolimits from "false" to "true". This is a minor breaking change. The potential breakage applies to models which have elements with "range" defined and "limited" not set. Such models cannot be loaded since version 2.2.2 (July 2022).
2c3297b3 Added a new dyntype, filterexact, which updates first-order filter states with the exact formula rather than with Euler integration.
2c3297b3 Added an actuator attribute, actearly, which uses semi-implicit integration for actuator forces: using the next step's actuator state to compute the current actuator forces.
a276c49c Renamed actuatorforcerange and actuatorforcelimited, introduced in the previous version to actuatorfrcrange and actuatorfrclimited, respectively.
b7cf479a Added the flag eulerdamp, which disables implicit integration of joint damping in the Euler integrator. See the Numerical Integration section for more details.
819b5cb9 Added the flag invdiscrete, which enables discrete-time inverse dynamics for all integrators other than RK4. See the flag documentation for more details.
1a3215e3 Added ls_iterations and ls_tolerance options for adjusting linesearch stopping criteria in CG and Newton solvers. These can be useful for performance tuning.
ccda87aa Added mesh_pos and mesh_quat fields to mjModel to store the normalizing transformation applied to mesh assets. Fixes 409.
8064ad59 Added camera resolution attribute and camprojection sensor. If camera resolution is set to positive values, the camera projection sensor will report the location of a target site, projected onto the camera image, in pixel coordinates.
36d2ffe4 Added camera calibration attributes:
The new attributes are resolution, focal, focalpixel, principal, principalpixel and sensorsize.
Visualize the calibrated frustum using the mjVIS_CAMERA visualization flag when these attributes are specified. See the following example model.
Note that these attributes only take effect for offline rendering and do not affect interactive visualisation.
59164702 Implemented reversed Z rendering for better depth precision. An enum mjtDepthMap was added with values mjDEPTH_ZERONEAR and mjDEPTH_ZEROFAR, which can be used to set the new readDepthMap attribute in mjrContext to control how the depth returned by mjr_readPixels is mapped from znear to zfar. Contribution 978 by Levi Burner.
fb4cf472 Deleted the code sample testxml. The functionality provided by this utility is implemented in the WriteReadCompare test.
a1b6026b Deleted the code sample derivative. Functionality provided by mjd_transitionFD.
631b16e7 Fixed 870 where calling update_scene with an invalid camera name used the default camera.
2e15574b Added user_scn to the passive viewer handle, which allows users to add custom visualization geoms (1023).
a1d0cbd6 Added optional boolean keyword arguments show_left_ui and show_right_ui to the functions viewer.launch and viewer.launch_passive, which allow users to launch a viewer with UI panels hidden.
3e12f0d5 Added state history mechanism to simulate and the managed Python viewer. State history can be viewed by scrubbing the History slider and (more precisely) with the left and right arrow keys. See screen capture:
93d1c3c9 The LOADING... label is now shown correctly. Contribution 1070 by Levi Burner.
18e4e101 Added detailed documentation of fluid force modeling, and an illustrative example model showing tumbling cards using the ellipsoid-based fluid model.
b0077e40 Fixed a bug that was causing geom margin to be ignored during the construction of midphase collision trees.
1bd6c94e Fixed a bug that was generating incorrect values in efc_diagApprox for weld equality constraints.
…parametrization. mjv_makeConnector is now deprecated.
joint-actuatorforcerange for clamping total actuator force at joints and sensor-jointactuatorfrc<sensor-jointactuatorfrc> for measuring total actuation force applied at a joint. The most important use case for joint-level actuator force clamping is to ensure that Cartesian actuator forces are realizable by individual motors at the joints. See Actuator force clamping for details.content_type attribute to hfield, texture, and mesh assets. This attribute supports a formatted Media Type (previously known as MIME type) string used to determine the type of the asset file without resorting to pulling the type from the file extension.mjv_connector which has identical functionality to mjv_makeConnector, but with more convenient "from-to" argument parametrization. mjv_makeConnector is now deprecated.update_hfield, update_mesh, and update_texture methods to allow users to update renderable assets. (#812 , #958, #965)a7021df6 Added primitive collider for sphere-cylinder contacts, previously this pair used the generic convex-convex collider.
51aa375a Added joint-actuatorforcerange for clamping total actuator force at joints and sensor-jointactuatorfrc for measuring total actuation force applied at a joint. The most important use case for joint-level actuator force clamping is to ensure that Cartesian actuator forces are realizable by individual motors at the joints. See Force limits for details.
5fcdae77 Added an optional content_type attribute to hfield, texture, and mesh assets. This attribute supports a formatted Media Type (previously known as MIME type) string used to determine the type of the asset file without resorting to pulling the type from the file extension.
5cfbb6ac Added analytic derivatives for quaternion subtraction and integration (rotation with an angular velocity). Derivatives are in the 3D tangent space.
c50c92cc Added mjv_connector which has identical functionality to mjv_makeConnector , but with more convenient “from-to” argument parametrization. mjv_makeConnector is now deprecated.
242aea93 Bumped oldest supported MacOS from version 10.12 to 11. MacOS 11 is the oldest version still maintained by Apple.
0ccfef73 The passive viewer handle now exposes update_hfield , update_mesh , and update_texture methods to allow users to update renderable assets. (Issues issue #812 , issue #958 , issue #965 ).
06b70832 Allow a custom keyboard event callback to be specified in the passive viewer ( issue #766 ).
f7847ba7 Fix GLFW crash when Python exits while the passive viewer is running ( issue #790 ).
51aa375a Added simple car example model.
> NOTE: MuJoCo 2.3.6 is the last version to officially support Python 3.7.
NOTE: MuJoCo 2.3.6 is the last version to officially support Python 3.7.
shellinertia is equal to true.mj_ray, in line with geom visualisation conventions:
geom_group and flg_static arguments. Before this change, rays would intersect planes and height-fields unconditionally.flg_static now applies to all static geoms, not just those which are direct children of the world body.visual MJCF element. After modifying values in the GUI, a saved XML will contain the new values. The modifiable members of mjStatistic (extent, meansize and center) are computed by the compiler and therefore do not have defaults. In order for these attributes to appear in the saved XML, a value must be specified in the loaded XML.mj_getState and mj_setState for getting and setting the simulation state as a concatenated vector of floating point numbers. See the State section for details.mjContact.solreffriction, allowing different solref parameters for the normal and frictional axes of contacts when using elliptic friction cones. This attribute is required for elastic frictional collisions, see associated example model mimicking the spin-bounce recoil behaviour of elastic rubber balls. This is an advanced option currently only supported by explicit contact pairs, using the solreffriction attribute.mjd_inverseFD for finite-differenced inverse-dynamics derivatives.mju_cholFactorBand documentation for details.mj_multiRay function for intersecting multiple rays emanating from a single point. This is significantly faster than calling mj_ray multiple times.mjMAXUIITEM (maximum number of UI elements per section in Simulate) to 100.mju_sigmoid, a finite-support sigmoid $s: \mathbf{R} \rightarrow [0, 1]$. Previously, the smooth part consisted of two stitched quadratics, once continuously differentiable. It is now a single quintic, twice continuously differentiable:$$ s(x) = \begin{cases} 0, & & x \le 0 \ 6x^5 - 15x^4 + 10x^3, & 0 \lt & x \lt 1 \ 1, & 1 \le & x \qquad \end{cases} $$
tausmooth attribute to muscle actuators. When positive, the time-constant $\tau$ of muscle activation/deactivation uses mju_sigmoid to transition smoothly between the two extremal values given by the Millard et al. (2013) muscle model, within a range of width tausmooth. See Muscle actuators for more details. Relatedly, mju_muscleDynamics now takes 3 parameters instead of 2, adding the new smoothing-width parameter.pstack and parena from the output of mj_printData, since these are implementation details of the mjData allocators that are affected by diagnostic paddings in instrumented builds.mj_activate and mj_deactivate functions. These had been kept around for compatibility with old user code from when MuJoCo was closed source, but have been no-op functions since open sourcing.Note
MuJoCo 2.3.6 is the last version to officially support Python 3.7.
3d71b160 Added 3x3x3 cube example model. See README for details.
41a70499 Fixed a bug that was causing an incorrect computation of the mesh bounding box and coordinate frame if the volume was invalid. In such case, now MuJoCo only accepts a non-watertight geometry if shellinertia is equal to true .
55c7f45d Fixed the sparse Jacobian multiplication logic that is used to compute derivatives for tendon damping and fluid force, which affects the behaviour of the implicit and implicitfast integrators .
c66d7940 Fixes to mj_ray , in line with geom visualisation conventions:
Planes and height-fields respect the geom_group and flg_static arguments. Before this change, rays would intersect planes and height-fields unconditionally.
flg_static now applies to all static geoms, not just those which are direct children of the world body.
b397b312 Added touch-grid sensor plugin. See documentation for details, and associated touch_grid.xml example model. The plugin includes in-scene visualisation .
d40c3959 Added Visualization tab to simulate UI, corresponding to elements of the visual MJCF element. After modifying values in the GUI, a saved XML will contain the new values. The modifiable members of mjStatistic ( extent , meansize and center ) are computed by the compiler and therefore do not have defaults. In order for these attributes to appear in the saved XML, a value must be specified in the loaded XML.
d40c3959 Increased text width for UI elements in the default spacing. [before / after]:
f67e3595 Added mj_getState and mj_setState for getting and setting the simulation state as a concatenated vector of floating point numbers. See the State section for details.
d82f5ce5 Added mjContact.solreffriction , allowing different solref parameters for the normal and frictional axes of contacts when using elliptic friction cones . This attribute is required for elastic frictional collisions, see associated example model mimicking the spin-bounce recoil behaviour of elastic rubber balls . This is an advanced option currently only supported by explicit contact pairs , using the solreffriction attribute.
c50177d3 Added mjd_inverseFD for finite-differenced inverse-dynamics derivatives.
49efa9cc Added functions for operations on banded-then-dense “arrowhead” matrices. Such matrices are common when doing direct trajectory optimization. See mju_cholFactorBand documentation for details.
2ad82d59 Added mj_multiRay function for intersecting multiple rays emanating from a single point. This is significantly faster than calling mj_ray multiple times.
9d1a21f9 Ray-mesh collisions are now up to 10x faster, using a bounding volume hierarchy of mesh faces.
3d82d2a4 Increased mjMAXUIITEM (maximum number of UI elements per section in Simulate) to 100.
67f0f515 Added documentation for resource providers.
49efa9cc Changed the formula for mju_sigmoid , a finite-support sigmoid (s \colon \mathbf R \rightarrow [0, 1]) . Previously, the smooth part consisted of two stitched quadratics, once continuously differentiable. It is now a single quintic, twice continuously differentiable:
[s(x) = \begin{cases} 0, & & x \le 0 \ 6x^5 - 15x^4 + 10x^3, & 0 \lt & x \lt 1 \ 1, & 1 \le & x \qquad \end{cases}
]
770b4b36 Added optional tausmooth attribute to muscle actuators. When positive, the time-constant (\tau) of muscle activation/deactivation uses mju_sigmoid to transition smoothly between the two extremal values given by the Millard et al. (2013) muscle model, within a range of width tausmooth. See Muscle actuators for more details. Relatedly, mju_muscleDynamics now takes 3 parameters instead of 2, adding the new smoothing-width parameter.
f887c1e9 Moved public C macro definitions out of mujoco.h into a new public header file called mjmacro.h . The new file is included by mujoco.h so this change does not break existing user code.
f887c1e9 Added instrumentation for the Address Sanitizer (ASAN) and Memory Sanitizer (MSAN) to detect memory bugs when allocating from the mjData stack and arena.
f887c1e9 Removed pstack and parena from the output of mj_printData , since these are implementation details of the mjData allocators that are affected by diagnostic paddings in instrumented builds.
466c9aca Removed the mj_activate and mj_deactivate functions. These had been kept around for compatibility with old user code from when MuJoCo was closed source, but have been no-op functions since open sourcing.
Fix asset loading bug that prevented OBJ and PNG files from being read from disk when `mjVFS` is used.
Fix asset loading bug that prevented OBJ and PNG files from being read from disk when mjVFS is used.
Fix occasional segmentation faults on macOS when mouse perturbations are applied in the Python passive viewer.
d23c5e78 Fix asset loading bug that prevented OBJ and PNG files from being read from disk when mjVFS is used.
d23c5e78 Fix occasional segmentation faults on macOS when mouse perturbations are applied in the Python passive viewer.
d23c5e78 The visualize callback in mjpPlugin now receives an mjvOption as an input argument.
d23c5e78 Fix asset loading bug that prevented OBJ and PNG files from being read from disk when mjVFS is used.
d23c5e78 Fix occasional segmentation faults on macOS when mouse perturbations are applied in the Python passive viewer.
d23c5e78 The visualize callback in mjpPlugin now receives an mjvOption as an input argument.
One column per quarter.