Rename inteval attribute in mjLROpt to interval.
PiperOrigin-RevId: 509275105 Change-Id: I0ffb9cf485a504843ed255f0b4f24e9285a1c273
This commit is contained in:
committed by
Copybara-Service
parent
db28c31f05
commit
ace5b74f83
@@ -297,7 +297,7 @@ disable length range computations altogether, include this element and set mode=
|
||||
:at:`inttotal`: :at-val:`real, "10"`
|
||||
The total time interval (in seconds) for running the internal simulation, for each actuator and actuator direction.
|
||||
Each simulation is initialized at qpos0. It is expected to settle after inttotal time has passed.
|
||||
:at:`inteval`: :at-val:`real, "2"`
|
||||
:at:`interval`: :at-val:`real, "2"`
|
||||
The time interval at the end of the simulation over which length data is collected and analyzed. The maximum (or
|
||||
respectively minimum) length achieved during this interval is recorded. The difference between the maximum and
|
||||
minimum is also recorded and is used as a measure of divergence. If the simulation settles, this difference will be
|
||||
@@ -308,7 +308,7 @@ disable length range computations altogether, include this element and set mode=
|
||||
prevent actuators from having infinite length.
|
||||
:at:`tolrange`: :at-val:`real, "0.05"`
|
||||
This determines the threshold for detecting divergence and generating a compiler error. The range of actuator lengths
|
||||
observed during inteval is divided by the overall range computed via simulation. If that value is larger than
|
||||
observed during interval is divided by the overall range computed via simulation. If that value is larger than
|
||||
tolrange, a compiler error is generated. So one way to suppress compiler errors is to simply make this attribute
|
||||
larger, but in that case the results could be inaccurate.
|
||||
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`accel` | :at:`maxforce` | :at:`timeconst` | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`timestep` | :at:`inttotal` | :at:`inteval` | |
|
||||
| | | | :at:`timestep` | :at:`inttotal` | :at:`interval` | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
| | | | :at:`tolrange` | | | |
|
||||
| | | +-------------------------+-------------------------+-------------------------+ |
|
||||
|
||||
@@ -9,6 +9,7 @@ General
|
||||
^^^^^^^
|
||||
|
||||
- The ``mjd_transitionFD`` function no longer triggers sensor calculation unless explicitly requested.
|
||||
- Corrected the spelling of the ``inteval`` attribute to ``interval`` in the ``mjLROpt`` struct.
|
||||
|
||||
Python bindings
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -586,13 +586,13 @@ struct mjLROpt_ { // options for mj_setLengthRange()
|
||||
mjtNum timeconst; // time constant for velocity reduction; min 0.01
|
||||
mjtNum timestep; // simulation timestep; 0: use mjOption.timestep
|
||||
mjtNum inttotal; // total simulation time interval
|
||||
mjtNum inteval; // evaluation time interval (at the end)
|
||||
mjtNum interval; // evaluation time interval (at the end)
|
||||
mjtNum tolrange; // convergence tolerance (relative to range)
|
||||
};
|
||||
typedef struct mjLROpt_ mjLROpt;
|
||||
struct mjVFS_ { // virtual file system for loading from memory
|
||||
int nfile; // number of files present
|
||||
char filename[mjMAXVFS][mjMAXVFSNAME]; // file name without path
|
||||
char filename[mjMAXVFS][mjMAXVFSNAME]; // file name without path
|
||||
int filesize[mjMAXVFS]; // file size in bytes
|
||||
void* filedata[mjMAXVFS]; // buffer with file data
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user