跳到正文

MuJoCo 版本记录

DeepMind Technologies Limited · 面向接触丰富系统的物理引擎,支持快速、精确的仿真和基于模型的优化。

Cask工程与 CAD 1.9万
主页
安装命令
brew install --cask mujoco
近 30 天安装
40
App榜第 1486
近一年安装
342
365 天累计
最新版本
4.1.0
下载大小
54MB
dmg
更新节奏
每两周
近 30 天 3 个版本
  1. 4.1.0

    最新

    GitHub Release Homebrew 收录

    Version 4.1.0 (December 1, 2026)

    Significant new features

    1. Substantially improved CPU stepping performance in both double and single precision, averaging ~1.4x faster on x86-64 and ARM64 across our benchmark suite, including ~1.3x (~1.6x ARM64) on Unitree G1 with hands, ~2.1x on ALOHA, and ~2.2x (~2.5x ARM64) on Shadow Hand. Continuous CPU performance across commits can be tracked at mjbench (maintained by @kevinzakka):

      • Portable SIMD infrastructure and vectorized kernels: Added a 4-wide SIMD layer (mjtNum4 in engine_simd.h; 6a6595c, d4c37d5) supporting AVX/FMA, ARM NEON, WebAssembly SIMD128, and a scalar fallback across both double and single precision (mjUSESINGLE, 298d367), replacing the legacy double-precision AVX-only BLAS header (e603d5f). Vectorized hot kernels across dense and sparse linear algebra (c4b0610, 17cb305, 6f5bbec, 596c94b, 90c2ad5), the primal solver and constraint regularization (6c9e627, 9995525, ec0384c), elliptic friction cone updates (dbf9a74), flex contact Jacobian rotation (d5f6b13), and broadphase/dynamic BVH bounding boxes (186f4dc, d6bcc2a).

      • Algorithmic and memory-layout optimizations: Fused contact Jacobian construction and direct sparse CSR contact assembly (09b8ea2, 09834d3, d7fda58), supernode-accelerated sparse matrix squaring, transposition, and matrix-vector products (681731c, 8148157, 020335c, fa6c9fb), 2-column/4-row blocked Cholesky updates (6054e3c), dense elliptic Newton Hessian folding and refactorization thresholds (c6ac133, 0c51e88), single-island fast paths (61659cf, 5e06cd0), PGS sweeps and fused Nesterov updates (72add57), faster inertia factorization and impedance assembly (05b1ae4, 5ad852a), radix-sort broadphase with single-pass projection frame (2787bae, 9742035), cached relative-frame OBB tests and streamlined BVH midphase traversal (27ebada), and warm-started convex mesh support queries and streamlined GJK simplex projection (6e384ac, 7bd0173).

    2. Extended spatial tendon wrapping in MuJoCo, MJX, and MuJoCo Warp with closed-form multi-idler chains and multi-turn spools:

      • fa79308f9 Wrapping chains: Consecutive cylinder geoms in the path of a spatial tendon, with no sites between them, model a tendon running over several idlers. The tendon is the shortest path that passes each cylinder on the side of its side site, computed in closed form, and it lifts off a cylinder and touches down again with continuous length and moment arm. The cylinders must have parallel axes and side sites, and the compiler checks that the idlers stay in one plane. See Wrapping chains and the idler elbow example. Below, the idler elbow at three angles of the elbow and the role of the side sites.

      • a40c5690f Spools: A cylinder geom in the path of a spatial tendon with the new turns attribute is a drum on a hinge joint that the tendon is anchored to and winds around by any number of turns. The number of turns follows from the angle of the hinge, so the tendon can be reeled in, paid out completely and wound the other way without additional state. Instead of a site, the drum can be followed by the idlers of a wrapping chain. See Spools and the winch example. Added mjWRAP_SPOOL and mjsWrap.turns. Below, a drum at three angles of the hinge and a fairlead displaced along the axis.

    3. b32846bba Added mju_QP, a dual active-set solver for dense convex quadratic programs with bounds and two-sided linear constraints. Constraints can be soft: a soft constraint holds exactly up to a threshold on its multiplier and then yields with a given compliance, so problems with soft constraints remain feasible. The solver can be warmstarted from a previous active set. The Hessian can be singular or zero (a linear program).

    Engine

    [!WARNING] Breaking changes

    1. 69798e647 Cables, i.e. spatial tendons with springlength "0 L" and L > 0, now have a pull-only spring-damper. Previously the spring acted only beyond L but the damper always acted, so a slack cable was dragged by its damping and a taut one could push. Now the spring and damper combine into a smooth tension that is zero when slack, never negative and at most three times the spring force. A cable with zero stiffness now applies no force, including from its damping, and the compiler warns when such a cable is damped. Damped cables now also render as catenaries when slack. All other tendons are unchanged. This applies to MJX and MuJoCo Warp as well.

      Migration: To keep the previous behavior for lengths above a small $\epsilon > 0$, set springlength to "eps L" (for example "1e-6 L"; this disables catenary rendering and lets tensile plasticity shift the lower bound along with L). Otherwise, move slack damping to joints or a separate tendon.

    2. 7842fd7ca Removed the H field of mjContact and the flg_coneHessian parameter of mj_constraintUpdate, as the Newton solver now computes closed-form elliptic cone factors directly without materializing mjContact.H. The size of mjContact was reduced from 608 to 320 bytes (from 328 to 184 bytes in single precision).

      Migration: Remove uses of mjContact.H and drop the trailing flg_coneHessian argument when calling mj_constraintUpdate.

    3. 06d5f051c Removed the per-geom/per-flex solmix attribute and the geom_solmix/flex_solmix model arrays, which weighted the arithmetic averaging of contact solver parameters. They were rarely used because arithmetic averaging is poorly suited to combining solver parameters; removing them also frees the solmix name for the new global option/solmix attribute below.

    1. Added global contact-parameter mixing options on option to control how equal-priority contacts combine per-geom and per-flex parameters (see Contact parameters):

      • 188926bab fricmix (mjOption.fricmix, mjtFricMix): selects the pairwise friction mixing rule (max, geometric, or min; default max).

      • 49adf9709 solmix (mjOption.solmix, mjtSolMix): selects how solref and solimp are combined (average or series; default average). The new series mode models two compliant surfaces in series so softer surfaces dominate physically and smooth (solimp[0] = 0) contact onset is preserved.

    2. 3e57ab8a6 Optimized elliptic friction cone Hessians in the Newton solver using closed-form rank-(dim - 1) factors (~5–30% faster elliptic Newton solves). Thanks to @adenzler-nvidia for proposing the optimization in MJWarp pull request 1879.

    3. 30c53c3d3 Optimized spatial tendon Jacobian computation (mj_tendon) and sparsity (mjModel.ten_J_colind) by stopping ancestor walks at the endpoints' lowest common ancestor, skipping shared ancestor DOFs whose contributions cancel (~7–22% faster stepping on MyoSuite musculoskeletal models). Thanks to @kaibohex for identifying the opportunity in MJWarp issue 1733 and to @vishalkotak for the implementation in MJWarp pull request 2014.

    Deformables

    1. 64959ac81 Passive interpolated flexes are no longer reduced to mjMAXCONPAIR (50) contacts per geom via farthest-point selection, preventing contact-set churn and resting jitter when more than 50 surface vertices touch a geom (solver cost remains independent of contact count via aggregated contact CSR).

    2. 7b7fc90c6 Passive flex contacts now also handle collisions with moving and mocap rigid bodies (previously only flex-flex, self-collision, and static-geometry pairs took the passive path while moving-body pairs fell back to the constraint solver), scaling pair stiffness by the minimum participating effective mass and excluding active passive-contact free bodies from the decoupled free-body gyroscopic solve.

    3. 15c2f1183 Passive and IPC flex contacts with condim 3 or higher now model isotropic lagged Coulomb sliding friction using the pair's first friction coefficient (capped at the viscous slip threshold 1e-3 m/s). Previously, both modes ignored condim and were always frictionless. Existing models using passive or IPC flex contacts with condim >= 3 (the default) now experience contact friction; set condim="1" for frictionless behavior. In IPC mode, mjData.flexvert_lambda now stores the barycentrically weighted sum of touching pair multipliers (previously the maximum across touching pairs).

    4. 1554e7d3d, 5f99d0d25 Under the discrete integrator, the unconstrained smooth solve (qacc_smooth) now follows the selected solver: Newton solves $(M + S)\,\dot{v}_{\text{smooth}} = f$ directly by Cholesky (reusing the 3x3-block sparse factor on covered 1D/2D flexes and general sparse/dense Cholesky otherwise), eliminating mjWARN_INERTIA under-convergence on 3D passive contacts and speeding up stiff interpolated-flex mechanisms (model/flex/mechanisms/cantilever.xml ~3.3x faster). Under CG, the smooth solve for 3D and interpolated flexes uses symmetric Gauss-Seidel (Eisenstat) preconditioning instead of diagonal preconditioning, reusing the assembled stiffness matrix in place with zero extra arena memory (cutting smooth-solve iterations 2-3x and speeding up stepping by ~15% on model/plastic/clay.xml, and up to ~1.9x on unconstrained 3D tetrahedral meshes).

    5. f9420c6da Fixed effective-metric PCG stalls and spurious mjWARN_INERTIA warnings on 2D flexes with passive contacts by including fully covered passive flex contacts in the sparse Cholesky preconditioner. Previously, passive flex contacts were omitted from the preconditioner, causing the implicit solve to stall or under-converge on stacked cloth scenes (2.1-2.7x faster on drape.xml; existing models with passive flex contacts can change trajectory due to the more accurate solve).

    6. 73327e000 Added mjModel.flex_cellempty (nflexcell x 1) and mjModel.flex_celladr, flagging the empty (pruned) cells of interpolated flexes. Points of an interpolated flex, such as contact points, are now evaluated in their active cell: their natural cell, or the nearest non-empty cell if it is empty, consistently with the vertex positions (flex_vertcell). Previously contact weights near pruned cells could weight the pinned nodes of the empty cell.

    7. 630212fbb Fixed capsule collision against 2D flexes missing contacts along the capsule shaft (when crossing triangle edges, lying coplanar with a triangle, or piercing a triangle interior) and fixed a NaN for zero-length capsules and degenerate triangles. Existing models with capsule--2D-flex contacts can change behavior. mjModel.flex_edgeflap is now populated for all 2D flexes, not only those with bending, so that interior shared edges do not generate opposing contacts. Code that used a valid flap to detect bending must check mjModel.flex_bendingadr instead.

    Rendering

    1. d0def6e64 Added Kannala-Brandt fisheye projection and camera lens distortion coefficients: projection now supports fisheye via mjPROJ_FISHEYE, and distortion specifies up to mjNDISTCOEF = 8 coefficients for fisheye and perspective cameras via mjsCamera.distortion and mjModel.cam_distortion.

    [!WARNING] Breaking changes

    1. ca95109ec Fixed some Filament-specific rendering options that were not working as intended. These changes will affect the way all models are rendered by the Filament renderer.

      • The principal fix was to interpret material RGBA color values as linear colors instead of sRGB colors. This ensures that material colors defined in the model will match any texture colors also defined in the model. For example, the following two materials now appear identical (whereas previously they would not):
    <texture name="tex" rgb1="0.1 0.2 0.3" builtin="flat" />
    <material texture="tex" />
    <material rgba="0.1 0.2 0.3 1.0" />
    
      Because the above change can affect any model, other long-standing issues with the default rendering settings
      were fixed in the same release, so that their impact is concentrated in a single release.
    
    - The tonal ranges for shadows, midtones, and highlights have been updated to a neutral weight. Previously, the
      weights were incorrectly set to 1.0, resulting in oversaturated colors. As a result, scenes may now appear
      darker and light intensities may need to be increased to compensate.
    
    - The tone mapping and output color spaces for scenes without physical lights are now set to linear space
      instead of sRGB. (Recall that scenes without physical lights are rendered using a fallback lighting model
      [as described here](https://mujoco.readthedocs.io/en/stable/programming/rendering.html#reFilamentFallbackLighting).) Before this change, you may have noticed that such
      scenes appeared "washed out" when rendered with the filament renderer compared to the classic renderer. To
      compensate for the darker scenes in these scenarios, the default intensity of the headlight and environment
      light has also been adjusted.
    
    - The quality levels of the ambient occlusion settings have been reduced to match filament's recommended
      defaults. This change is less likely to be noticed visually and was included to improve performance.
    
    **Migration:** Add the following to your model to revert back to previous defaults:
    
    <custom>
       <text name="filament.material.base_color_type" data="srgb" />
       <text name="filament.cg.output_color_space"    data="srgb" />
       <text name="filament.cg.tone_mapping"          data="pbr_neutral" />
       <text name="filament.ao.quality"               data="ultra" />
       <text name="filament.ao.low_pass_filter"       data="ultra" />
       <text name="filament.ao.upsampling"            data="ultra" />
       <numeric name="filament.cg.shadows"            data="1 1 1 1" />
       <numeric name="filament.cg.midtones"           data="1 1 1 1" />
       <numeric name="filament.cg.highlights"         data="1 1 1 1" />
       <numeric name="filament.fallback.head_light_intensity" data="100000" />
       <numeric name="filament.fallback.scene_light_intensity" data="80000" />
       <numeric name="filament.fallback.environment_light_intensity" data="5000" />
       <numeric name="filament.fallback.environment_light_diffuse_scale" data="1" />
    </custom>
    
    Note that the `cg.output_color_space`, `cg.tone_mapping`, and all the `fallback` settings are only needed for
    scenes without physical lights.
    
    1. ed8323d45 Orthographic free and tracking cameras now derive their vertical view height from the camera distance and global/fovy (matching the perspective view height at the lookat point) and place the eye behind the model's bounding sphere so zooming scales the view without near-plane clipping. Previously, global/fovy was used directly as a fixed view height in length units (45 by default), so zooming had no visible effect and toggling orthographic made the view jump. Fixed orthographic cameras (camera/fovy) are unchanged. In Studio and simulate, the Free Camera field-of-view control shows the vertical view height in length units while in orthographic mode, and editing it changes the camera distance rather than global/fovy. For these cameras mjv_cameraFrustum now returns a vertical extent that depends on mjvCamera.distance.

      Migration: Models that set global/fovy to a length for an orthographic free camera now render zoomed in. Set global/fovy back to an angle in degrees (the default is 45); the view height then follows the camera distance.

    2. e11f9e4c0 Planar reflections in the Filament renderer are now energy conserving: diffuse base color is attenuated by one minus the Fresnel reflection weight (dielectrics only; metals are unchanged), so a surface with reflectance="1" is a pure mirror regardless of its base color. Previously, reflections were added on top of the fully lit diffuse surface, washing out reflections on bright materials.

    1. 4019e053c Added mjGEOM_DISC rendering-only geom type for flat double-sided discs and annuli (size = [r_out, r_in, 0]).

    2. 2a860e53f Added mjvOption.offset, an offset added to simulation coordinates when rendering, so that several simulations of one model can be drawn side by side.

    3. 77718b1fc Added image_diffuse_scale to mjrfLightParams to control the diffuse colour of image based lights.

    4. 6b907360c Fixed Filament planar reflections leaking geometry behind or crossing the mirror plane by clipping the reflection camera at the mirror plane with an oblique near-plane projection (#3902).

    5. 3f8569e2b Builtin textures with mark="cross" now draw a 2-pixel wide cross on even-sized textures so that it is centered.

    Compiler

    1. bbaec528d Sequentially appending elements to an mjSpec body tree now runs in $O(1)$ instead of rebuilding the model's tree lists, making procedural model construction up to ~250x faster.

    2. 50c5900d7 Added the facetexcoord attribute to mesh and updated XML saving to emit it when mjsMesh.userfacetexcoord is set. Previously, saving an inline textured mesh with per-corner UVs dropped userfacetexcoord, causing the saved XML to fail compilation or map UVs to the wrong corners (#3931, reported by @andrewkaufman).

    3. da306ace5 strippath no longer strips file names that match a registered resource provider, such as package:// URIs. These names are not filesystem paths, and the compiler already treats them as absolute when combining them with meshdir.

    Plugins

    1. da306ace5 Added a first-party resource provider plugin, plugin/package_uri, that serves ROS-style package:// URIs by locating packages through AMENT_PREFIX_PATH and ROS_PACKAGE_PATH without depending on ROS. It is not included in release packages: build it from source and load the resulting shared library with mj_loadPluginLibrary before parsing a model, so that URDF and MJCF files can reference ROS package assets unchanged. Contribution by @noah-wardlow.

    OpenUSD

    1. 2f754ec82 The native C++ OpenUSD exporter and LayerSink now author xformOp:translate (double3) and xformOp:orient (quatd) instead of xformOp:transform (matrix4d), avoiding shear artifacts when USD or external renderers interpolate between time samples.

    Models

    1. 9a1af89e6 Upgraded the 3x3x3 cube example model with calibrated mass and inertia, flush outer collision hulls, and an internal drive and 90-degree detent mechanism. Standalone defaults now use timestep="0.002", the discrete integrator, cone="elliptic", and face motor ctrlrange="-0.45 0.45" (previously timestep="0.01", integrator="implicitfast", and ctrlrange="-0.05 0.05"; motor commands must now exceed the ~0.17 N*m breakaway torque).

    Bug fixes

    1. 36a33b4f4 Fixed a memory leak in mujoco-core (introduced in 4.0.0) where import mujoco without glfw installed stored the ImportError in mujoco.rendering.classic.gl_context and kept every local variable on the importing call stack alive for the life of the process (#3928, reported by @adenzler-nvidia).

    2. 026907613 Fixed capsule-box collisions when the capsule's centerline intersects the box, which could miss the contact.

    3. ce23b6e70 Fixed floating-point cancellation and non-orthogonal fallback frames in mju_makeFrame and mjc_PlaneCylinder for plane-capsule and plane-cylinder contacts on tilted planes. Previously, axes parallel or nearly parallel to a tilted plane normal could produce non-orthogonal or singular contact frames and inaccurate contact depths (especially in single precision). Discovered via MJWarp issue 1949 and pull requests 1950 (@YannBerthelot) and 1989 (@etaoxing).

    4. 82196b63e Under the discrete integrator, negative flex damping is clamped to zero in the effective metric, like negative joint and tendon damping, and its force is integrated explicitly. Previously it made the metric indefinite.

    5. 82196b63e Under the discrete integrator, the ellipsoid fluid model contributes the dissipative part of its drag derivative to the effective metric. The symmetrized derivative used before is indefinite for slender shapes at small angles of attack.

    6. 3f8569e2b Fixed Filament cube textures with texuniform being scaled inversely; they now match the classic renderer.

  2. 4.0.1

    补丁

    OpenNavo 编辑 Homebrew 收录

    MuJoCo 4.0.1 修正 4.0.0 的稀疏求解结果错误,并跳过无法加载的插件库。

    MuJoCo 4.0.1 于 2026-11-11 发布,是给模拟机器人和机构的人用的物理引擎。这一版修正 4.0.0 的稀疏求解结果错误,并避免一个无法加载的插件库中止启动。官方说明:https://github.com/google-deepmind/mujoco/releases/tag/4.0.1

    • 新增按索引读取字符串向量一项的函数。
    • 附带 Studio 网页查看器,使其可在 Windows 上运行。
    • 修正 4.0.0 的稀疏 Cholesky 分解,它可能给 Newton 求解器错误的因子并导致发散(issue 3767)。
    • 跳过无法加载的插件库,而不是在启动时中止 simulate。
    • 修正圆柱边缘碰撞的单次多接触(issue 3748 和 3752)。
  3. 4.0.0

    OpenNavo 编辑 Homebrew 收录

    MuJoCo 4.0.0 于 2026-11-06 发布。本次更新新增推测性接触与弹塑性,并拆分 Python 包。

    • speculative 标志新增推测性接触,使高速运动的凸几何体不会在单个时间步内穿透薄障碍物。
    • 关节弹簧和肌腱弹簧可使用理想弹塑性。塑性变形存储在 mjData.plastic(mjSTATE_PLASTIC)中,关节以及空间肌腱和固定肌腱上均有 springyield。
    • 2D 和 3D flex 可使用连续介质弹塑性。2D 壳具有独立的拉伸与弯曲屈服应变,采用体积-偏量(von Mises J2)拉伸以及 2D 壳弯曲返回映射。
    • Python 发行版拆分为 mujoco-core(绑定与 C 库,仅依赖 numpy)、mujoco-studio(Studio 和 Filament 渲染器绑定)以及 mujoco(同时安装两者)。
    • 用 pip 升级拆分前的 mujoco 安装需先卸载,或执行 pip install --force-reinstall --no-deps mujoco mujoco-core mujoco-studio,以免 pip 删除已移入 mujoco-core 的文件。
  4. 3.17.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增线程池批量仿真、一维柔性杆弯曲和引用纹理,包含不兼容的 API/ABI 与模型行为变化。

    新增 C 批处理 API 和 Python mujoco.batch,在专用线程池中运行同一模型的多份仿真。任意线程数下结果与普通循环逐位一致,内存随工作线程数扩展。支持按需加载引用纹理和资产去重,并修复柔性体弹性、Filament、命名访问及错误清理。Python 的 Bazel 构建最初只覆盖核心绑定,不含渲染或查看器。

    young 为正的一维 flex 现在会弯曲,需要直线参考杆和 discrete 积分器。已设置 young 的旧模型可能改变行为;退化截面、零长度边或非直线参考杆会编译失败。插值 flex 支持自碰撞;较小的默认 flex arena 内存可能使 Newton 警告后回退至 CG。

    迁移:mj_setConst 不再推导 dampratio 阻尼、自动肌腱弹簧长度或模型统计,需直接编辑已编译字段。求解终止尺度改变,meaninertia 已弃用。mjNEQDATA 从 11 增至 12,ABI 不兼容。未显式写 relpose 的刚体 weld 若要直接设相对姿态,须先将 eq_data[11] 置零再调用 mj_setConst。mjs_fuseStatic/mjs_discardVisual 现在返回数量或 -1,错误应判断 <0 而非 !=0。mjs_addTexture(spec) 改为 mjs_addTexture(spec, NULL)。

    本说明为重点摘要,完整 API 与资产路径迁移细节见官方说明。

    https://github.com/google-deepmind/mujoco/releases/tag/3.17.0

  5. 3.16.0

    展开

    OpenNavo 编辑 Homebrew 收录

    编译时缩放、模型保存改进与多项 API 迁移。

    MuJoCo 3.16.0 — 版本说明

    重点:frame 可通过 scale、scaling、massscale 在编译时缩放;similar 默认保持按比例重力下的动力学,geometry 仅缩放空间尺寸和惯量。savecompiled、savecanonical 默认均为 true,可关闭以保留原始编写形式。新增 Bazel 构建支持、接触相对速度、程序化网格、flexcomp 网格资产引用及 Python 结构赋值。

    迁移注意:解码回调新增 char* error, int error_sz;资源提供商函数改名。mj_copyBack、mj_saveLastXML 对无法表达的修改报错,结构编辑后需重新编译再保存;API 添加的资产必须显式命名。replicate 关键帧按完整模型编写;inertiafromgeom="true" 下丢弃有质量的视觉几何体会报错,应使用 auto 或零质量。执行器增益应放在同种快捷方式或 general 的默认类中。settotalmass 已弃用,改为直接缩放质量/密度或使用 mj_setTotalmass 后调用 mj_setConst。

    Filament 的 mjrf 函数、类型及标志改名,枚举标志由整数改为字符串;移除 VSM 柔和阴影参数,改用 filament.shadows.type=pcss;移除 filament.msaa.enabled,改用 offsamples 或 mjrf_setSceneMsaa;移除公开调试编辑器 API。

    修复弹性刚度、布料接触、胶囊碰撞、肌腱缠绕及大量模型保存/编辑问题。弹性刚度修正可能改变现有模型行为。本说明为分类摘要,完整重命名表及迁移细节见官方版本说明。

    官方来源

  6. 3.15.0

    展开

    OpenNavo 编辑 Homebrew 收录

    修订执行器阻尼计算,新增引擎功能,并更新 `.mjz` 归档和模型序列化。包含一项破坏性 API 变更及实验性弹性功能的限制。

    引擎
    破坏性变更:修订 dampratio 的反射惯量计算为非插值 3D 柔性体新增实验性弹性柔性体力现在会考虑关节式顶点附件新增胶囊体多重接触及 insidesite 传感器属性移除已弃用的柔性体碰撞选项及相关结构柔性体弯曲因子保留跨坐标耦合
    通用
    Windows 写入的 .mjz 归档现在使用正斜杠重写归档及绝对、.. 或 URI 路径中的资源可正确解析模型序列化支持大于 2 GiB 的缓冲区

    MuJoCo 3.15.0 调整了 dampratio 在 mjModel.qpos0 处计算反射惯量的方式:现在使用操作空间惯量,并对多输出执行器的力输出取平均。多连杆运动链上的执行器阻尼可能降低;驱动跨越多个关节的腱或站点的执行器则会获得更准确的阻尼计算。这是一项破坏性 API 变更。已移除弃用的内部柔性体碰撞选项及相关 evpair 结构。

    非插值 3D 柔性体可通过 mjsFlex.elastic3d = 1 使用实验性简化 Stable Neo-Hookean 弹性。该功能要求离散积分器,且不能在 MJCF 中使用;默认值仍为 StVK。柔性体弯曲和拉伸现在会考虑关节式顶点附件。离散积分器使用 CG 求解器支持这些附件;附着于 mocap 刚体的弹性柔性体会触发编译器错误。其他引擎变更包括胶囊体多重接触,以及 insidesite 传感器的 enclosed 属性,用于报告有符号间隙或凸出量。柔性体弯曲因子还会保留跨坐标耦合。

    Windows 写入的 .mjz 归档现在使用正斜杠。对于重写归档,以及目录路径为绝对路径、包含 .. 或使用 URI 方案的情况,资源均可正确解析。mj_saveModel 和 mj_loadModelBuffer 的 buffer_sz 现在接受 mjtSize,支持大于 2 GiB 的模型。

    来源:https://github.com/google-deepmind/mujoco/releases/tag/3.15.0

  7. 3.14.0

    展开

    OpenNavo 编辑 Homebrew 收录

    MuJoCo 3.14.0 发行说明

    新增实验性的无穿透柔性接触和归档资源提供器,保存 MJCF 时保留 frame,并调整控制读取和 spec 签名 API,同时修复多项引擎与解析问题。

    常规
    为受支持的 dim-2 flex 新增实验性 IPC 接触。新增归档资源提供器,支持 .mjz 和 .zip 等容器。保存 MJCF 现在会保留 frame 变换及相对坐标内容。
    引擎
    mj_readCtrl 现支持多输入执行器;其 API 有变化。编辑后尚未编译的 mjsSpec,其签名现为 0。惯性警告现覆盖更多积分器分解过程。
    修复
    程序化 spec 编辑改为增量处理;构建 8,000 个 geom 约快 10 倍。修正力和力矩传感器报告的 weld 与 tendon 力。修复内存泄漏、GMSH 头部越界读取和稀疏 Newton 主元处理。

    MuJoCo 3.14.0 为 dim-2 flex 新增实验性 IPC 接触。该模式使用无摩擦接触,且保留的接触乘子不会由 mj_getState/mj_setState 捕获,因此不支持精确重放。归档资源提供器可挂载 .mjz 和 .zip 等容器,无需预先分配 VFS。保存 MJCF 时现在会保留 frame 变换和 frame 相对坐标内容;在 mjSpec 中更改 frame 的 pos 或 quat,也会在重新编译时生效。

    破坏性 API 变更:mj_readCtrl 现在遵循 mj_readSensor 的语义,支持多输入执行器,并根据情况返回指针或 NULL;控制历史缓冲区的大小要求也相应变化。结构编辑后,mjsElement.signature 在成功调用 mj_compile 前为 0。依赖其他未编译签名的代码必须先编译。mjs_setName 遇到重名失败时现在会保留原名称。

    其他变更包括扩大 mjWARN_INERTIA 的报告范围、增强稀疏 Newton 主元处理、将程序化编辑改为增量处理,以及修正 weld 和空间 tendon 的力报告。还修复执行器力限制默认值、启用 sleeping 时的有限差分调用、删除操作内存泄漏和截断 GMSH 文件头问题。

    来源:https://github.com/google-deepmind/mujoco/releases/tag/3.14.0

  8. 3.13.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增离散积分器、site 网格支持和 Python 3.15 支持。flex 积分行为有迁移要求,PBR metallic 回退颜色也有变化。

    引擎
    新增隐式处理刚度和阻尼的离散积分器。新增圆柱体 multicontact,并恢复惯性主元钳制。调整 Newton 锥体重分解策略,影响部分滑动接触场景。
    常规
    site 几何体可使用网格;新增 mj_insideSite 函数。支持 Python 3.15,包括 GIL 和 free-threading。
    其他
    使用旧 implicit/CG 行为的 flex 模型需要迁移。无 metallic 纹理时,PBR metallic 回退值由黑变白。

    MuJoCo 3.13.0 新增离散积分器,将约束求解与隐式速度更新合并。它会将关节、肌腱和执行器的刚度与阻尼纳入求解器度量,并在步进结束时计算约束弹簧阻尼器。语义和当前限制请参阅发布说明。

    此前在 implicit 或 implicitfast 配合 CG 求解器时可用的 flex 有效度量特殊处理已移除。依赖该行为的模型必须使用 integrator="discrete",并采用原始求解器 CG 或 Newton。使用旧设置时,flex 弹性或被动 flex 接触现在会触发带迁移说明的运行时错误。其他引擎变化包括为圆柱体几何体增加单次 multicontact;恢复稀疏惯性分解中非正主元的钳制及相应的 mjWARN_INERTIA 警告;以及调整 Newton 椭圆锥重分解策略,该策略可加快包含大量滑动接触的场景。Plane-Mesh 碰撞器经过重写,以修复错误并提升性能。

    site 几何体现在可引用网格,支持可视化、insidesite 传感器和 mj_insideSite。本版本还支持 Python 3.15;MJCF 自定义文本支持 CDATA 输入;触觉传感器新增 cutoff 属性;并新增无头 render.cc 示例及纸牌屋和拱门模型。.mjz 压缩包的根文件现命名为 model.xml。对于未提供 metallic 纹理的 PBR 材质,metallic 回退值现为白色,而非黑色。

    来源:MuJoCo 3.13.0 发布说明

  9. 3.12.0

    展开

    GitHub Release Homebrew 收录

    Version 3.12.0 (August 20, 2026)

    General

    1. 3f8db4c1 The MJCF grammar is now defined in a single source of truth schema file, 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.

    Actuation

    1. 279df98c Added the 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.
    2. 2f1843f4 The 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" with input="pos" and input="velocity" with input="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 converted kd.

    Engine

    1. 83e621d7 Optimized large-mesh convex collision detection with up to 2x speedup in certain cases.
    2. 55d13aec Replaced the per-step sparse Cholesky factorization of the flex block of the implicit effective metric M + K with its prefactored per-vertex 3x3 diagonal blocks. The blocks precondition the CG constraint solver and drive an iterative solve for 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.
    3. 86e98601 Rewrote cleaner box-box SAT collider.

    [!WARNING] Breaking API changes 9. 2a3554c8 Contacts of a flex with passive collisions 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 requires implicit or implicitfast with 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 Removed mjData.efm_L_rownnz, mjData.efm_L_rowadr and mjData.efm_L_colind. They described the sparsity of the effective-metric Cholesky factor, which no longer exists; mjData.efm_L now holds dense 3x3 blocks, 9 numbers per covered vertex. mjData.efm_active no 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 of bvactive from "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_weldid of 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.

    Models

    1. 2a3554c8 Added drape example model: three cloths draped over a sphere, demonstrating passive collisions. It replaces the sphere_passive model, which has been removed.
    2. 55d13aec Added 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.

    Rendering

    [!WARNING] Breaking API changes

    1. 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.

    2. 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 full intensity everywhere inside it, so that illuminance follows $E = I/d^2$ independent of the cutoff angle. Previously the filament renderer treated the entire cone as penumbra, dimming spotlights well below their rated intensity, increasingly so for narrow cutoffs.

      Migration: Set softness to 1 to reproduce the previous appearance of existing models.

    MJX

    [!WARNING] Breaking API changes 17. 5e3464f4 mjx.render and mjx.render_with_segmentation now return the updated mjx.Data as 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 sequential refit_bvh and render calls.

    **Migration:** Update unpacking calls from `pixels, depth = mjx.render(mx, d, rc)` to `pixels, depth, d = mjx.render(mx, d, rc)`.
    

    Bug fixes

    1. 95539261 Fixed a bug where models with pinned interpolated flex nodes (e.g. a 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.
    2. 8655446f Fixed a bug in the box-box collider where near-degenerate face clipping could generate contacts with spuriously large penetration depth between nearly touching thin boxes with positive margin, causing resting stacks to explode.
    3. fb07a9ca Fixed a bug in the box-box collider where penetrations deeper than a box's smallest half-size could produce no contacts, letting boxes tunnel through thin boxes. Fixes #1800.
    4. 54979947 Fixed the flex stretch stiffness operator, which was the Gauss-Newton Hessian of the stretch force rather than its Jacobian: the geometric (stress-proportional) term was missing. Only the tensile part of that term is added, since it is positive semi-definite exactly when the edge is in tension, and its consumers require an SPD operator; the stretch force itself is unchanged. This affects the implicit integrators and the implicit effective metric, so flexes using elastic2d="stretch" integrate slightly differently. Bending-only flexes are unaffected.

    OpenUSD

    1. 39e44588 Upgraded Newton USD schemas support to version 0.4.0:
      • 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.
      • Added support for NewtonSiteAPI to declare sites, MjcSiteAPI auto applies this schema, but remains as an extension for the mjc:group attribute.
      • Added support for NewtonMaterialAPI (newton:contactAdhesion, newton:torsionalFriction, newton:rollingFriction). This deprecates MjcMaterialAPI which will be removed in a future release.
      • Added support for 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.
      • Added support for NewtonArticulationRootAPI (newton:jointsAddMobility).

    [!CAUTION] Breaking ABI changes 23. 279df98c mjsActuator gained velrange and ffrange fields, changing its size and layout. The mjtGain and mjtDyn enums gained pid members, shifting the values of mjGAIN_USER and mjDYN_USER. 24. 596b6f43 mjResource gained an args field (changing its size and layout), used to hold optional extra encoding and decoding arguments formatted as URI query parameters (separated by &).

  10. 3.11.0

    展开

    GitHub Release Homebrew 收录

    Version 3.11.0 (July 27, 2026)

    Engine

    1. 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.

      [Image: Watch video](https://youtu.be/PdSdrqhSiZA)

    2. 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.

      [Image: Watch video](https://youtu.be/GioWwB36XHI)

    3. 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.

    4. 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.

    5. 14c0b0c9 mj_setConst now recomputes the mjModel.{body,geom,site}_sameframe flags, to account for changes in body/geom/site frames after compilation.

    6. 2444defc Added support for multiccd with arbitrarily large meshes.

    7. 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.

    8. 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

    1. ff629889 Changed the default value of sleep_tolerance from 1e-4 to 1e-3 (1mm/sec in SI units).
    2. 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) format mjData.M.
    3. 7e9ac58f Switched mjd_inverseFD to use the CSR-format mjData.M representation instead of the legacy mjData.qM for the mass matrix derivative. This changes the shape of the DmDq parameter from (nv x nM) to (nv x nC).
    4. 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.
    5. fa36015b Removed unneeded mjvScene argument from mjv_moveCamera.
    6. ba9a6503 Split up mjrfMeshData into mjrfMeshData and mjrfMeshConfig to allow reuploading of mesh data without having to recreate the mesh object. Introduces mjrf_defaultMeshConfig and mjrf_setMeshData functions.
    7. ba9a6503 Removed bytes field from mjrVertexAttribute.

    [!CAUTION] Breaking ABI changes

    1. 072e963f mjModel gained the actuator_ctrlspec field (input signature of each actuator), and mjsActuator gained ctrlspec, changing their size and layout. The mjtGain and mjtBias enums gained so3 members, shifting the values of mjGAIN_USER and mjBIAS_USER.
    2. d43c3ed4 Added texid, texuniform and texrepeat fields to mjvGeom.
    3. a264d0bc The mjContact struct gained an adhesion member, changing its size and layout.

    [!NOTE] Bug fixes

    1. dddb2767 Fixed a bug where body_margin excluded gap, causing the mid-phase collision filter to incorrectly prune in-gap contacts on multi-geom bodies.

    Actuation

    1. 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.

    2. 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.

    3. 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.

    [Image: Watch video](https://youtu.be/17XpwnqyCXs)

    1. 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.

    2. 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.

    3. 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".

    Solvers

    1. 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.

    2. 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.

    3. 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.

    4. 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.

    Compiler

    1. 4e1795b9 mj_encode now supports encoding of MJB and TXT files.

    2. 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.

    3. 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.

    4. 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.

    5. dc7581ac Added support for resource writing via mju_writeResource and the write callback in mjpResourceProvider.

    [!WARNING] Breaking API changes

    1. d83ef0b6 The return type of mj_encode and the mjfEncode callback changed from int to mjtSize (64-bit).

    [!NOTE] Bug fixes

    1. f5f9d9ef Fixed a bug in the mesh compiler where normals were scaled as vectors rather than covectors.

    Python bindings

    1. a07ae6f8 The bindings now support free threading (PEP 703) for Python 3.14.

    Documentation

    1. 1f1bfa9e Expanded documentation for spec.encode workflows and added detailed documentation for the MJZ Archive format (.mjz / .zip).