Add a disable flag for sensors.
PiperOrigin-RevId: 469473066 Change-Id: I296ed790c6261c4fb15b349540edcb77e53e0567
This commit is contained in:
committed by
Copybara-Service
parent
83ce236479
commit
090fe2db3f
@@ -86,8 +86,9 @@ mjtDisableBit
|
||||
mjDSBL_FILTERPARENT = 1<<9, // remove collisions with parent body
|
||||
mjDSBL_ACTUATION = 1<<10, // apply actuation forces
|
||||
mjDSBL_REFSAFE = 1<<11, // integrator safety: make ref[0]>=2*timestep
|
||||
mjDSBL_SENSOR = 1<<12, // sensors
|
||||
|
||||
mjNDISABLE = 12 // number of disable flags
|
||||
mjNDISABLE = 13 // number of disable flags
|
||||
} mjtDisableBit;
|
||||
|
||||
| Defined in `mjmodel.h <https://github.com/deepmind/mujoco/blob/main/include/mujoco/mjmodel.h>`_
|
||||
|
||||
@@ -94,9 +94,9 @@ in the second column of the table have the following meaning:
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`filterparent` | :at:`actuation` | :at:`refsafe` | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`override` | :at:`energy` | :at:`fwdinv` | |
|
||||
| | | | :at:`sensor` | :at:`override` | :at:`energy` | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`sensornoise` | :at:`multiccd` | | |
|
||||
| | | | :at:`fwdinv` | :at:`sensornoise` | :at:`multiccd` | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
+--------------------------+----+------------------------------------------------------------------------------------+
|
||||
| |_|:el:`size` | \* | .. table:: |
|
||||
@@ -1847,6 +1847,9 @@ from its default.
|
||||
simulation timestep. Recall that solref[0] is the stiffness of the virtual spring-damper used for constraint
|
||||
stabilization. If this setting is enabled, the solver uses max(solref[0], 2*timestep) in place of solref[0]
|
||||
separately for each active constraint.
|
||||
:at:`sensor`: :at-val:`[disable, enable], "enable"`
|
||||
This flag disables all computations related to sensors. When disabled, sensor values will remain constant, either
|
||||
zeros if disabled at the start of simulation, or, if disabled at runtime, whatever value was last computed.
|
||||
:at:`override`: :at-val:`[disable, enable], "disable"`
|
||||
This flag enables to :ref:`Contact override <COverride>` mechanism explained above.
|
||||
:at:`energy`: :at-val:`[disable, enable], "disable"`
|
||||
@@ -4265,7 +4268,7 @@ specify them independently.
|
||||
If true, the internal state (activation) associated with this actuator is automatically clamped to :at:`actrange` at
|
||||
runtime. If false, activation clamping is disabled. If auto, activation clamping will automatically be set to true
|
||||
if :at:`actrange` is defined without explicitly setting this attribute to "true". See the :ref:`Activation clamping <CActRange>`
|
||||
section for more details.
|
||||
section for more details.
|
||||
:at:`ctrlrange`: :at-val:`real(2), "0 0"`
|
||||
Range for clamping the control input. The compiler expects the first value to be smaller than the second value.
|
||||
:at:`forcerange`: :at-val:`real(2), "0 0"`
|
||||
|
||||
@@ -40,6 +40,7 @@ General
|
||||
the free camera at model load time.
|
||||
- Added ``mjv_defaultFreeCamera`` which sets the default free camera, respecting the above attributes.
|
||||
- ``simulate`` now supports taking a screenshot via a button in the File section or via ``Ctrl-P``.
|
||||
- Added a disable flag for sensors.
|
||||
|
||||
Deleted/deprecated features
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user