API reference¶
Generated from the docstrings, which mkdocstrings reads from the source, so the modules that need the simulator are
listed too (below: what each module needs).
Dependency layers: core → robots → motion → sim → tasks → worldmodels → policies →
algos → train / evaluate.
| Core | rotations, differentiable kinematics, networks, normalizers, Muon |
| Robots and state | the G1's specification; the Go2; the state layout |
| Motion | the motion library and its sources |
| Tasks | LAFAN1 tracking, hand-object tracking, HDMI's tasks, the muscle-actuated character, quadrotor and quadruped tracking: observations, rewards, terminations |
| World models | SuperTrack's, SuperMimic's, BlinkMimic's; the RigidFormer; inference copies; HOI, muscles, the hand, the quadrotor and MuJoCo models (mjcf) |
| Policies | the tracking policy and critic; the HOI, muscle, hand, quadrotor and quadruped policies |
| Algorithms | the algorithm interface and the replay buffer, SuperTrack, SuperMimic, BlinkMimic's and XMimic's options, the other tasks' algorithms |
| Commands | the training and evaluation commands and their arguments; named configurations |
| World-model benchmark | offline fits and scores on collected datasets; RoboKit's and mbrl-lib's recordings, fits, timing and plans |
| Simulator | SimulatorNotInstalled; Isaac Lab's launcher; RoboKit's and mbrl-lib's simulators on a world model |
What each module needs¶
Every module imports with the library alone, except:
| needs | modules |
|---|---|
the simulator (Isaac Lab 3, Newton, MuJoCo-Warp: scripts/setup.sh) |
ndm_gym.sim.rigid.isaaclab_mjwarp, ndm_gym.sim.rigid.hdmi_sim (they raise SimulatorNotInstalled), ndm_gym.sim.rigid.muscle_sim (Newton and MuJoCo-Warp), ndm_gym.sim.rigid.hand_sim, ndm_gym.sim.rigid.quadrotor_sim and ndm_gym.sim.rigid.quadruped_sim (MuJoCo-Warp), and the modules that import them at the top: ndm_gym.algos.hoi_algos, ndm_gym.train_hoi |
| Triton (PyTorch's CUDA builds for Linux) and a CUDA GPU | ndm_gym.kernels.*, ndm_gym.core.token_attention, ndm_gym.worldmodels.g1_fused, ndm_gym.worldmodels.hoi_fused: the fused kernels, imported where an option asks for them |
Simulator commands (ndm_gym.train, ndm_gym.evaluate, ndm_gym.wmbench.collect, ...) import without the simulator,
exposing arguments and simulator-free functions. For example, ndm_gym.wmbench.fit uses ndm_gym.train's arguments.
Running these commands requires the simulator or raises SimulatorNotInstalled. tests/test_packaging.py checks this list.