rickstaa / stable-gym

This package contains several gymnasium environments with positive definite cost functions, designed for compatibility with stable RL agents.
https://rickstaa.dev/stable-gym
MIT License
12 stars 2 forks source link

build(deps-dev): bump mujoco from 2.3.7 to 3.0.0 #333

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps mujoco from 2.3.7 to 3.0.0.

Release notes

Sourced from mujoco's releases.

3.0.0

New features

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

    • 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: Open In Colab
    • 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.
  2. 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.
  3. 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.

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

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

  6. Added capability to initialize composite particles from OBJ files. Fixes #642 and #674.

General

[!IMPORTANT] Breaking API changes

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

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

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

  4. 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.
  5. Removed mjOption.collision and the associated option/collision attribute.

    Migration:

... (truncated)

Changelog

Sourced from mujoco's changelog.

Version 3.0.0 (October 18, 2023)

New features ^^^^^^^^^^^^

  1. Added simulation on GPU and TPU via the new :doc: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: |colab|
    • The MJX API is compatible with MuJoCo but is missing some features in this release. See the outline of :ref:MJX feature parity <MjxFeatureParity> for more details.

.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/mjx/tutorial.ipynb

.. youtube:: QewlEqIZi1o :align: right :width: 240px

  1. 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 :ref:documentation<exWriting> for more details.

.. youtube:: ra2bTiZHGlw :align: right :width: 240px

  1. Added new low-level model element called flex, used to define deformable objects. These simplicial complexes <https://en.wikipedia.org/wiki/Simplicial_complex>__ 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 :ref:deformable<deformable> section contains the low-level flex definition. The :ref:flexcomp<body-flexcomp> element, similar to :ref:composite<body-composite> is a convenience macro for creating deformables, and supports the GMSH tetrahedral file format.

    • Added shell <https://github.com/deepmind/mujoco/blob/main/plugin/elasticity/shell.cc>__ 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 :ref:deformable<CDeformable> and :ref:composite<CComposite>, and both are modifiable by the first-party elasticity plugins <https://github.com/google-deepmind/mujoco/tree/main/plugin/elasticity>__. We expect some of this functionality to be unified in the future.

.. youtube:: Vc1tq0fFvQA :align: right :width: 240px

... (truncated)

Commits
  • 8f9c690 Add MJX and bump version number to 3.0.0.
  • 3f3d5a3 Fix contactcompare swapping condition.
  • d0bdb78 Disable island discovery for models with flexes.
  • 18e4e10 Mention fluid force documentation in the changelog.
  • 50b4f02 Add elasticity plugin README.
  • 65e66d0 Fluid force documentation: Rename d to r, update description of passive v...
  • 317d6d9 Move edge creation after element reordering in mjCFlex.
  • 139a8ae Add flex and elasticity documentation. Fixes #873.
  • db067a3 Update SdfLib to latest version.
  • 393cfec Don't use PluginTest as the fixture name in xml_native_writer_test
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
rickstaa commented 1 year ago

[!WARNING] Don't merge unless https://github.com/Farama-Foundation/Gymnasium/pull/746 has been released.

dependabot[bot] commented 1 year ago

Superseded by #338.