From 9cf1f6eba42516bee1a051d193d7f511e3bce932 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Mon, 18 Sep 2023 15:14:33 -0700 Subject: [PATCH] Remove `mjOption.collision` and associated `option/collision` attribute. PiperOrigin-RevId: 566427090 Change-Id: I6e5873b8db707586820b17b53c7ab4bbff0f0b2b --- doc/APIreference/APItypes.rst | 12 -- doc/XMLreference.rst | 8 - doc/XMLschema.rst | 6 +- doc/changelog.rst | 33 ++-- doc/computation.rst | 27 ++-- doc/includes/references.h | 6 - include/mujoco/mjmodel.h | 8 - include/mujoco/mjxmacro.h | 1 - introspect/enums.py | 10 -- introspect/structs.py | 5 - simulate/simulate.cc | 2 - src/engine/engine_collision_driver.c | 157 +++++++++----------- src/engine/engine_io.c | 1 - src/xml/xml_native_reader.cc | 15 +- src/xml/xml_native_writer.cc | 2 - test/engine/engine_collision_driver_test.cc | 16 -- test/header_test.cc | 1 - unity/Runtime/Bindings/MjBindings.cs | 6 - 18 files changed, 108 insertions(+), 208 deletions(-) diff --git a/doc/APIreference/APItypes.rst b/doc/APIreference/APItypes.rst index 2fd10428..706a6e28 100644 --- a/doc/APIreference/APItypes.rst +++ b/doc/APIreference/APItypes.rst @@ -174,18 +174,6 @@ Numerical integrator types. These values are used in ``m->opt.integrator``. .. mujoco-include:: mjtIntegrator - -.. _mjtCollision: - -mjtCollision -~~~~~~~~~~~~ - -Collision modes specifying how candidate geom pairs are generated for near-phase collision checking. These values are -used in ``m->opt.collision``. - -.. mujoco-include:: mjtCollision - - .. _mjtCone: mjtCone diff --git a/doc/XMLreference.rst b/doc/XMLreference.rst index 0de9e1c3..aff1d69a 100644 --- a/doc/XMLreference.rst +++ b/doc/XMLreference.rst @@ -1931,14 +1931,6 @@ adjust it properly through the XML. Implicit-in-velocity Euler method, and :at:`implicitfast`, which drops the Coriolis and centrifugal terms. See :ref:`Numerical Integration` for more details. -.. _option-collision: - -:at:`collision`: :at-val:`[all, predefined, dynamic], "all"` - This attribute specifies which geom pairs should be checked for collision; recall :ref:`Collision` in the Computation - chapter. "predefined" means that only the explicitly-defined contact :ref:`pairs ` are checked. - "dynamic" means that only the contact pairs generated dynamically are checked. "all" means that the contact pairs - from both sources are checked. - .. _option-cone: :at:`cone`: :at-val:`[pyramidal, elliptic], "pyramidal"` diff --git a/doc/XMLschema.rst b/doc/XMLschema.rst index 2a890c51..0bdc4640 100644 --- a/doc/XMLschema.rst +++ b/doc/XMLschema.rst @@ -224,11 +224,11 @@ | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | | | | | :ref:`o_margin` | :ref:`o_solref` | :ref:`o_solimp` | :ref:`integrator` | | | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | -| | | | :ref:`collision` | :ref:`cone` | :ref:`jacobian` | :ref:`solver` | | +| | | | :ref:`cone` | :ref:`jacobian` | :ref:`solver` | :ref:`iterations` | | | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | -| | | | :ref:`iterations` | :ref:`ls_iterations` | :ref:`noslip_iterations` | :ref:`mpr_iterations` | | +| | | | :ref:`ls_iterations` | :ref:`noslip_iterations` | :ref:`mpr_iterations` | :ref:`sdf_iterations` | | | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | -| | | | :ref:`sdf_iterations` | :ref:`sdf_initpoints` | | | | +| | | | :ref:`sdf_initpoints` | | | | | | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | +------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |_| option |br| |_| |L| | | .. table:: | diff --git a/doc/changelog.rst b/doc/changelog.rst index 1945d26d..20e8110c 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -62,35 +62,46 @@ General - Renamed ``mjData.solver_iter`` to ``solver_niter``. Both this member and ``mjData.solver_nnz`` are now integer vectors of length ``mjNISLAND``. -8. Added a new :ref:`dyntype`, ``filterexact``, which updates first-order filter states with + 8. Removed ``mjOption.collision`` and the associated ``option/collision`` attribute. + + **Migration:** + + - For models which have ``