Increase default sleep_tolerance from 1e-4 to 1e-3.

PiperOrigin-RevId: 945696845
Change-Id: I77caa0b6c0966da986451ff9eee5aecaf4e30106
This commit is contained in:
Yuval Tassa
2026-07-10 07:14:06 -07:00
committed by Copybara-Service
parent 40feb498a1
commit ff629889da
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ adjust it properly through the XML.
.. _option-sleep_tolerance:
:at:`sleep_tolerance`: :at-val:`real, "1e-4"`
:at:`sleep_tolerance`: :at-val:`real, "1e-3"`
Velocity tolerance below which :ref:`sleeping<Sleeping>` is allowed.
.. _option-sdf_iterations:
+2
View File
@@ -33,6 +33,8 @@ General
exclusively in the compressed sparse row (CSR) format ``mjData.M``.
- :ref:`mju_round` now breaks ties away from zero rather than towards :math:`+\infty`. This only affects
negative half-integers, e.g. ``mju_round(-2.5)`` now returns -3 rather than -2.
- Changed the default value of :ref:`sleep_tolerance<option-sleep_tolerance>` from 1e-4 to 1e-3 (1mm/sec in SI
units).
Version 3.10.0 (June 22, 2026)
------------------------------
+1 -1
View File
@@ -446,7 +446,7 @@ high-performance tensor/matrix operations optimized for fixed tile sizes.
.. note::
Consider increasing the sleep tolerance setting (e.g., ``sleep_tolerance="0.01"`` in XML options or
``spec.option.sleep_tolerance = 0.01`` in Python) from its default value (0.0001) to more quickly
``spec.option.sleep_tolerance = 0.01`` in Python) from its default value (0.001) to more quickly
sleep objects.
.. _mjwBatch:
+1 -1
View File
@@ -310,7 +310,7 @@ int main(int argc, char** argv) {
" --integrator=I Euler Euler, RK4, Implicit, ImplicitFast\n"
" --iterations=N 100 solver iterations limit\n"
" --tolerance=X 1e-8 solver tolerance\n"
" --sleep_tolerance=X 1e-4 sleep tolerance\n"
" --sleep_tolerance=X 1e-3 sleep tolerance\n"
" --noslip_iterations=N 0 noslip solver iterations limit\n"
" --help (or no arguments) print this help message\n"
"\n"
+1 -1
View File
@@ -63,7 +63,7 @@ void mj_defaultOption(mjOption* opt) {
opt->ccd_tolerance = 1e-6;
// sleep settings
opt->sleep_tolerance = 1e-4;
opt->sleep_tolerance = 1e-3;
// physical constants
opt->gravity[0] = 0;