Copybara import of the project:
-- 5b525ccaef3d7184d3167815be63ed630781a064 by Kevin Zakka <kevinarmandzakka@gmail.com>: Add command line scripts to MJX docs. COPYBARA_INTEGRATE_REVIEW=https://github.com/google-deepmind/mujoco/pull/2196 from kevinzakka:typo-fixes 5b525ccaef3d7184d3167815be63ed630781a064 PiperOrigin-RevId: 691497203 Change-Id: I7c5d6a8fcbd2a42939673cee5eadb30bebdad833
This commit is contained in:
committed by
Copybara-Service
parent
70d944b458
commit
a9737c60e8
+24
@@ -165,6 +165,30 @@ Minimal example
|
|||||||
pos = jax.jit(batched_step)(vel)
|
pos = jax.jit(batched_step)(vel)
|
||||||
print(pos)
|
print(pos)
|
||||||
|
|
||||||
|
.. _MjxCli:
|
||||||
|
|
||||||
|
Helpful Command Line Scripts
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
We provide two command line scripts with the ``mujoco-mjx`` package:
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
mjx-testspeed --mjcf=/PATH/TO/MJCF/ --base_path=.
|
||||||
|
|
||||||
|
This command takes in a path to an MJCF file along with optional arguments (use ``--help`` for more information)
|
||||||
|
and computes helpful metrics for performance tuning. The command will output, among other things, the total
|
||||||
|
simulation time, the total steps per second and the total realtime factor (here total is across all available
|
||||||
|
devices).
|
||||||
|
|
||||||
|
.. code-block:: shell
|
||||||
|
|
||||||
|
mjx-viewer --help
|
||||||
|
|
||||||
|
This command launches the MJX model in the simulate viewer, allowing you to visualize and interact with the model.
|
||||||
|
Note this steps the simulation using MJX physics (not C MuJoCo) so it can be helpful for example for debugging
|
||||||
|
solver parameters.
|
||||||
|
|
||||||
.. _MjxFeatureParity:
|
.. _MjxFeatureParity:
|
||||||
|
|
||||||
Feature Parity
|
Feature Parity
|
||||||
|
|||||||
Reference in New Issue
Block a user