Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mujocolab/mjlab
/ functions
Functions
2,812 in github.com/mujocolab/mjlab
⨍
Functions
2,812
◇
Types & classes
316
↳
Endpoints
15
Function
test_no_history_by_default
Test that observations work without history (default behavior).
tests/test_observation_history.py:47
Function
test_no_spiral
()
tests/test_viewer_tick.py:248
Function
test_no_stone_centers_inside_platform
No stone center should fall inside the platform.
tests/test_terrains.py:60
Function
test_no_substep_terms_no_overhead
When no per_substep terms exist, compute_substep is a no-op.
tests/test_metrics_manager.py:343
Function
test_no_variants_unchanged
()
tests/test_variants.py:1013
Function
test_noise_abs_operation
Test noise with 'abs' operation (replaces data with bias).
tests/test_observation_noise.py:152
Function
test_noise_add_operation
Test noise with 'add' operation.
tests/test_observation_noise.py:94
Function
test_noise_applied_when_corruption_enabled
Test that noise is applied when enable_corruption=True.
tests/test_observation_noise.py:36
Function
test_noise_not_applied_when_corruption_disabled
Test that noise is NOT applied when enable_corruption=False.
tests/test_observation_noise.py:65
Function
test_noise_scale_operation
Test noise with 'scale' operation.
tests/test_observation_noise.py:123
Function
test_noise_tensor_caching
Test that tensor conversion is cached across multiple calls.
tests/test_observation_noise.py:210
Function
test_noise_with_per_dimension_bias
Test noise with per-dimension bias (tuple).
tests/test_observation_noise.py:181
Function
test_non_builtin_delayed_not_fused
Delayed non-builtin actuators remain in custom_actuators.
tests/test_builtin_group.py:78
Function
test_non_foot_collision_geoms
(g1_model)
tests/test_g1_constants.py:93
Function
test_none_terms_are_skipped
None terms in config are skipped without error.
tests/test_metrics_manager.py:114
Function
test_none_terms_skipped
(mock_env: Mock)
tests/test_recorder_manager.py:299
Function
test_notebook_mjlab_imports_resolve
Every ``from mjlab... import X`` in a notebook must resolve.
tests/test_notebooks.py:102
Function
test_null_metrics_manager
NullMetricsManager doesn't crash and returns empty dict on reset.
tests/test_metrics_manager.py:107
Function
test_null_recorder_manager_no_ops
()
tests/test_recorder_manager.py:335
Function
test_num_slots_greater_than_one
Test behavior with num_slots > 1.
tests/test_contact_sensor.py:674
Function
test_observation_fn_tracks_site_orientation
The observation fn reflects IMU site tilt; the entity-data version does not. With the base upright but the IMU site rolled 30 deg about x, projecte
tests/test_projected_gravity_sensor.py:145
Function
test_observation_shared_terms_between_groups
Terms shared between policy and critic groups get independent settings.
tests/test_manager_config_immutability.py:78
Function
test_onnx_export_matches_actor
as_onnx() model produces the same output as the full actor with normalization.
tests/test_runner.py:200
Function
test_onnx_export_without_normalization
as_onnx() works when normalization is disabled.
tests/test_runner.py:213
Function
test_onnx_motion_model_clamps_out_of_bounds_time_step
_OnnxMotionModel clamps time_step beyond motion length to last frame.
tests/test_runner.py:508
Function
test_onnx_motion_model_policy_matches_actor
_OnnxMotionModel actions output matches calling the actor directly.
tests/test_runner.py:463
Function
test_onnx_motion_model_returns_correct_motion_frame
_OnnxMotionModel returns the motion data at the requested time step.
tests/test_runner.py:482
Function
test_onnx_runtime_roundtrip_matches_pytorch
Exported .onnx file produces the same outputs as PyTorch via onnxruntime.
tests/test_runner.py:225
Function
test_operation_instance_abs
Passing an Operation instance works identically to the string.
tests/test_domain_randomization.py:1471
Function
test_out_of_terrain_bounds_includes_border_width
(mock_grid_terrain_env)
tests/test_terminations.py:233
Function
test_out_of_terrain_bounds_outside
(mock_grid_terrain_env)
tests/test_terminations.py:225
Function
test_out_of_terrain_bounds_within
(mock_grid_terrain_env)
tests/test_terminations.py:219
Function
test_padding_slots_get_disabled
Shorter variant's padding geom slots have dataid == -1.
tests/test_variants.py:1140
Function
test_pair_friction_abs
Values set directly within range, diverse across envs.
tests/test_domain_randomization.py:1821
Function
test_pair_friction_add
Values = default + sample; no accumulation after 3 calls.
tests/test_domain_randomization.py:1855
Function
test_pair_friction_axes_selectivity
Only the targeted axis changes; others stay at their original values.
tests/test_domain_randomization.py:1876
Function
test_pair_friction_by_name
Targeting pair by name only modifies that pair.
tests/test_domain_randomization.py:1959
Function
test_pair_friction_invalid_name
ValueError for unknown pair name.
tests/test_domain_randomization.py:2115
Function
test_pair_friction_isotropic_roll
isotropic=True with roll axes mirrors roll2 = roll1; tangent axes unchanged.
tests/test_domain_randomization.py:2067
Function
test_pair_friction_isotropic_roll_dict_ranges
isotropic=True with dict-int ranges containing roll axis triggers roll2 = roll1.
tests/test_domain_randomization.py:2089
Function
test_pair_friction_isotropic_shared
isotropic=True + shared_random=True: all pairs same value, tangent2 == tangent1.
tests/test_domain_randomization.py:2038
Function
test_pair_friction_isotropic_tangent
isotropic=True mirrors tangent2 = tangent1; spin and roll axes unchanged.
tests/test_domain_randomization.py:2016
Function
test_pair_friction_multi_axis
axes=[0, 1] randomizes both tangent components; axes 2-4 stay unchanged.
tests/test_domain_randomization.py:1895
Function
test_pair_friction_partial_env_ids
Randomizing a subset of envs leaves the others unchanged.
tests/test_domain_randomization.py:1917
Function
test_pair_friction_scale
Values = default * sample; no accumulation after 3 calls.
tests/test_domain_randomization.py:1834
Function
test_pair_friction_shared_random
All pairs in the same env get the same value; envs differ.
tests/test_domain_randomization.py:1939
Function
test_pair_friction_string_ranges
Dict with pair name patterns randomizes the matched pairs correctly.
tests/test_domain_randomization.py:1984
Function
test_partial_env_ids
Randomizing subset of envs leaves others unchanged.
tests/test_domain_randomization.py:391
Function
test_partial_misses
Half invalid points with junk z values → still correct normal.
tests/test_terrain_utils.py:53
Function
test_partial_override_preserves_other_field
Setting only armature preserves XML frictionloss, and vice versa.
tests/test_actuator.py:224
Function
test_partial_reset_then_backfill
Partial reset returns zeros until next append backfills.
tests/test_delay_buffer.py:251
Function
test_patches_avoid_step_boundary
Patches must not land near a sharp height discontinuity.
tests/test_flat_patch_sampling.py:22
Function
test_patches_respect_edge_margin
No patch center should be within patch_radius of the heightfield edge.
tests/test_flat_patch_sampling.py:77
Function
test_pause_stops_physics
()
tests/test_viewer_tick.py:108
Function
test_pd_gains
PD gains scale/abs on Builtin, Xml, and Ideal actuators.
tests/test_events.py:272
Function
test_pd_gains_accepts_operation_object
dr.scale / dr.abs Operation objects produce the same result as strings.
tests/test_events.py:423
Function
test_pd_gains_multi_env
Independent values per environment.
tests/test_events.py:326
Function
test_pd_gains_rejects_unsupported_operation
Operations other than scale/abs raise ValueError.
tests/test_events.py:461
Function
test_pd_superposition
Both targets nonzero: qfrc = kp * pos_target + kd * vel_target.
tests/test_builtin_pd_actuator.py:142
Function
test_per_substep_averaging
Substep terms are averaged across substeps; step terms evaluated once.
tests/test_metrics_manager.py:127
Function
test_performance
Test conversion performance with a complex model.
tests/test_viser_conversions.py:187
Function
test_perlin_terrain_generation
Verify that Perlin noise terrain generates a valid TerrainOutput.
tests/test_perlin_terrain.py:15
Function
test_perlin_terrain_resolution
Verify that higher resolution increases pixel count.
tests/test_perlin_terrain.py:58
Function
test_perlin_terrain_with_border
Verify Perlin noise terrain with a border.
tests/test_perlin_terrain.py:80
Function
test_pid_mode_requires_gains
()
tests/test_builtin_dcmotor_actuator.py:443
Function
test_pinhole_camera_pattern_num_rays
Verify pinhole pattern generates width * height rays.
tests/test_raycast_sensor.py:460
Function
test_pinhole_from_intrinsic_matrix
Verify from_intrinsic_matrix creates correct config.
tests/test_raycast_sensor.py:486
Function
test_pinhole_from_mujoco_camera
Verify pinhole pattern can be created from MuJoCo camera.
tests/test_raycast_sensor.py:502
Function
test_pinhole_from_mujoco_camera_fovy_mode
Verify pinhole pattern works with MuJoCo camera using fovy (not sensorsize).
tests/test_raycast_sensor.py:540
Function
test_play_mode_disables_push_robot
Play mode tasks should disable push_robot event.
tests/test_task_configs.py:138
Function
test_play_mode_episode_length
Play mode tasks should have infinite episode length.
tests/test_task_configs.py:40
Function
test_play_mode_observation_corruption_disabled
Play mode tasks should have observation corruption disabled for policy.
tests/test_task_configs.py:49
Function
test_play_training_action_structure_match
Play and training configs should have matching action structure.
tests/test_task_configs.py:127
Function
test_play_training_observation_structure_match
Play and training configs should have matching observation structure.
tests/test_task_configs.py:105
Function
test_position_action_subtracts_encoder_bias
JointPositionAction should subtract encoder_bias from commands.
tests/test_encoder_bias.py:194
Function
test_position_actuator_allows_setpoints_beyond_joint_limits
Verify that position actuators allow commanding setpoints beyond joint limits. This is the core fix: position actuators have ctrllimited=False, all
tests/test_spec_utils.py:26
Function
test_position_actuator_batched
BuiltinPositionActuator writes position targets via batched path.
tests/test_actuator_builtin_group.py:64
Function
test_position_actuator_ctrlrange_matches_forcerange
Commanding to ctrlrange limits produces forces matching forcerange.
tests/test_actuator_builtin_group.py:184
Function
test_position_actuator_forces_clipped_to_effort_limit
Verify that actuator forces are clipped to effort_limit, not control limits. While control setpoints aren't clipped, forces must still be limited t
tests/test_spec_utils.py:70
Function
test_position_mode_pid_at_rest
kd=0, no Vmax clamp: tau = K * kp * (target - q) / R.
tests/test_builtin_dcmotor_actuator.py:192
Function
test_position_mode_voltage_clamp
Huge position error -> PID voltage saturates at Vmax.
tests/test_builtin_dcmotor_actuator.py:205
Function
test_position_only
Zero vel target: qfrc = kp * pos_target.
tests/test_builtin_pd_actuator.py:124
Function
test_posture_regularization
Posture weight biases joints toward target when task error is zero.
tests/test_differential_ik_action.py:386
Function
test_preset_compiles_across_difficulty
Every terrain preset must generate compilable MuJoCo geometry across the full difficulty range. Difficulty 0 is exercised explicitly because curricu
tests/test_terrains.py:117
Function
test_preset_overrides
()
tests/test_terrain_config.py:27
Function
test_prev_next_env_actions_wrap_and_succeed
()
tests/test_native_viewer_actions.py:34
Function
test_primitive_geom_count_mismatch_rejected
()
tests/test_variants.py:552
Function
test_primitive_geom_role_mismatch_rejected
()
tests/test_variants.py:563
Function
test_proportions_are_respected_approximately
With large num_envs, actual distribution should track proportions.
tests/test_terrain_proportion_spawning.py:169
Function
test_pseudo_inertia_alpha_only_scales_mass
alpha-only: mass and inertia scale by e^{2α}, ipos unchanged.
tests/test_domain_randomization.py:821
Function
test_pseudo_inertia_d_isotropic_vs_per_axis
d_range=(r,r) gives same result as d1=d2=d3=(r,r).
tests/test_domain_randomization.py:879
Function
test_pseudo_inertia_no_accumulation
3x with alpha=0.1 gives same result as 1x (uses defaults each time).
tests/test_domain_randomization.py:916
Function
test_pseudo_inertia_partial_env_ids
Randomizing only env 0 leaves env 1 unchanged.
tests/test_domain_randomization.py:936
Function
test_pseudo_inertia_physical_consistency
After wide perturbation, J ≻ 0, mass > 0, triangle inequality holds.
tests/test_domain_randomization.py:682
Function
test_pseudo_inertia_t1_shifts_com
t1-only: mass unchanged, ipos[0] shifts by exactly t1.
tests/test_domain_randomization.py:852
Function
test_pseudo_inertia_zero_perturbation_offset_body
Zero perturbation preserves physics for a body with non-trivial ipos/iquat. Since ``eigh`` returns eigenvalues in ascending order while MuJoCo may
tests/test_domain_randomization.py:769
Function
test_pseudo_inertia_zero_perturbation_unchanged
All ranges (0, 0): mass, ipos, inertia, iquat equal defaults (1e-5).
tests/test_domain_randomization.py:734
Function
test_pyramid_stairs_border_present_at_zero_difficulty
At difficulty 0 the step height collapses to 0, but the flat border frame must still be generated as solid, non-degenerate geometry (regression for
tests/test_terrains.py:87
Function
test_qfrc_actuator_matches_motor_command_with_gear
qfrc_actuator should equal actuator_force projected through joint gear.
tests/test_entity_data.py:520
Function
test_qfrc_actuator_slices_joint_dofs_only
qfrc_actuator should expose only articulated joint DoFs.
tests/test_entity_data.py:498
← previous
next →
2,401–2,500 of 2,812, ranked by callers