MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

Functiontest_jointpos_sensor
Verify joint pos sensor returns correctly shaped tensor for scalar joint values.
tests/test_builtin_sensor.py:72
Functiontest_keyframe_base_position
(g1_model)
tests/test_g1_constants.py:52
Functiontest_keyframe_ctrl_maps_joint_pos_to_actuators
Test keyframe ctrl values match init_state joint positions.
tests/test_entity.py:416
Functiontest_keyframe_ctrl_underactuated
Test ctrl is correctly constructed for an underactuated system.
tests/test_entity.py:442
Functiontest_keyframe_joint_positions
Test that keyframe joint positions match the configuration.
tests/test_g1_constants.py:60
Functiontest_keyframe_joint_positions
Test that keyframe joint positions match the configuration.
tests/test_go1_constants.py:48
Functiontest_kr_packed_into_gainprm
The XML compiler derives K and R from the nominal triplet.
tests/test_builtin_dcmotor_actuator.py:110
Functiontest_lag_one_delay
Test lag=1 returns previous observation.
tests/test_observation_delay.py:149
Functiontest_learned_mlp_dc_motor_zero_torque_at_max_velocity
Test that DC motor produces zero torque at max velocity.
tests/test_learned_actuator.py:384
Functiontest_learned_mlp_history_indexing
Test that history_length uses consecutive timesteps.
tests/test_learned_actuator.py:150
Functiontest_learned_mlp_inherits_dc_motor_limits
Test that DC motor saturation_effort and velocity limits apply.
tests/test_learned_actuator.py:346
Functiontest_learned_mlp_input_order_pos_vel
Verify input_order='pos_vel' concatenates position then velocity.
tests/test_learned_actuator.py:197
Functiontest_learned_mlp_input_order_vel_pos
Verify input_order='vel_pos' concatenates velocity then position.
tests/test_learned_actuator.py:232
Functiontest_learned_mlp_multi_joint_reshaping
Test that multi-joint reshaping works correctly.
tests/test_learned_actuator.py:423
Functiontest_learned_mlp_network_loads
Verify network loads from TorchScript file and initializes.
tests/test_learned_actuator.py:123
Functiontest_learned_mlp_reset_clears_history
Test reset zeroes history buffers for specified environments.
tests/test_learned_actuator.py:303
Functiontest_learned_mlp_scaling_applied
Test pos_scale, vel_scale, torque_scale are applied correctly.
tests/test_learned_actuator.py:267
Functiontest_light_cfg
LightCfg should add lights to spec.
tests/test_spec_config.py:236
Functiontest_light_dir_add
Add offset to light direction, check default + offset.
tests/test_domain_randomization.py:1072
Functiontest_light_pos_abs
Set light position to absolute range, check bounds.
tests/test_domain_randomization.py:1051
Functiontest_list_to_csv_str
Test CSV string conversion utility.
tests/test_rl_exporter.py:25
Functiontest_log_uniform_distribution
Log-uniform produces values in [lo, hi], skewed toward lower.
tests/test_domain_randomization.py:195
Functiontest_ls_parallel_is_deprecated
Setting the removed ls_parallel option warns instead of erroring.
tests/test_sim.py:90
Functiontest_lugre_subtracts_friction
LuGre friction subtracts a velocity-dependent force after the ``effort_limit`` clamp (mechanical, like cogging).
tests/test_builtin_dcmotor_actuator.py:413
Functiontest_manager_preserves_class_func
Managers should not mutate class-based func to instance. When term_cfg.func is a class, _resolve_common_term_cfg instantiates it. Without copying
tests/test_manager_config_immutability.py:62
Functiontest_mat_rgba_abs
Values within range, diversity across envs.
tests/test_domain_randomization.py:1647
Functiontest_mat_rgba_invalid_name
ValueError for unknown material name.
tests/test_domain_randomization.py:1770
Functiontest_mat_texrepeat_abs
Texture repeat randomizes S/T axes for selected materials.
tests/test_domain_randomization.py:1699
Functiontest_mat_texrepeat_scale_uses_defaults
Scale operation uses compiled defaults and both S/T axes by default.
tests/test_domain_randomization.py:1750
Functiontest_material_cfg
MaterialCfg should add materials to spec.
tests/test_spec_config.py:221
Functiontest_material_cfg_geom_assignment
MaterialCfg.geom_names_expr assigns material to matching geoms.
tests/test_spec_config.py:264
Functiontest_material_colors
Test that material colors are properly applied.
tests/test_viser_conversions.py:142
Functiontest_materials_merged_under_variant_prefix
Both variants' materials end up in the merged spec, name-prefixed.
tests/test_variants.py:1079
Functiontest_matid_assigned_per_world
Each world's geom_matid points to its variant's material.
tests/test_variants.py:1090
Functiontest_matid_minus_one_when_variant_has_no_material
A variant slot without a material yields geom_matid == -1 in its worlds.
tests/test_variants.py:1121
Functiontest_merge_mixed_visual_geoms
Regression: merging each visual-compat subgroup must preserve visuals.
tests/test_viser_conversions.py:363
Functiontest_merge_sites_multiple
Test merging multiple sites combines them correctly.
tests/test_viser_conversions.py:506
Functiontest_merge_sites_single
Test merging a single site returns the site mesh.
tests/test_viser_conversions.py:497
Functiontest_mesh_with_texture_coordinates
Test meshes with texture coordinates (Issue #225).
tests/test_viser_conversions.py:212
Functiontest_metrics_step_shape_validation_rejects_bad_compute_output
Step metrics must return one scalar per environment.
tests/test_metrics_manager.py:224
Functiontest_metrics_substep_shape_validation_rejects_bad_compute_output
Substep metrics must return one scalar per environment.
tests/test_metrics_manager.py:232
Functiontest_minimal_scene_creation
Test creating a minimal scene with no entities.
tests/test_scene.py:133
Functiontest_mismatched_cols_falls_back_to_even
When proportions length != num_cols, should fall back to even.
tests/test_terrain_proportion_spawning.py:156
Functiontest_mismatched_joint_structure_raises
()
tests/test_variants.py:319
Functiontest_mixed_builtin_actuators
Multiple builtin actuator types can coexist and all use batched path.
tests/test_actuator_builtin_group.py:94
Functiontest_mixed_delay_and_no_delay_terms
Test group with both delayed and non-delayed terms.
tests/test_observation_delay.py:478
Functiontest_mixed_terms_concatenated
Test group with both history and non-history terms concatenated.
tests/test_observation_history.py:454
Functiontest_motor_actuator_batched
BuiltinMotorActuator writes effort targets via batched path.
tests/test_actuator_builtin_group.py:79
Functiontest_motor_const_path
Physical params pack K = sqrt(Kt*Ke) and R verbatim.
tests/test_builtin_dcmotor_actuator.py:127
Functiontest_mpkpe_correct_error
Test MPKPE computes the correct mean global error.
tests/test_tracking_metrics.py:51
Functiontest_mpkpe_uses_global_reference
MPKPE must read the global reference, not the drift-cancelled one. Pins issue #1006: setting body_pos_relative_w to match the robot exactly would
tests/test_tracking_metrics.py:64
Functiontest_mpkpe_zero_when_positions_match
Test MPKPE is zero when global positions are identical.
tests/test_tracking_metrics.py:37
Functiontest_multi_frame_body_exclusion
Each frame excludes only its own parent body, not others. body_a has a platform geom directly below site_b. Frame B's rays should skip body_b's o
tests/test_raycast_sensor.py:932
Functiontest_multi_frame_height_scan
height_scan works correctly with multi-frame sensors.
tests/test_raycast_sensor.py:988
Functiontest_multi_frame_heights
Sites at different Z offsets produce proportional distances.
tests/test_raycast_sensor.py:908
Functiontest_multi_frame_multiple_rays_per_frame
Multi-frame with grid pattern: verifies reshape ordering.
tests/test_raycast_sensor.py:1146
Functiontest_multi_frame_shapes
Multi-frame sensor produces correct output shapes.
tests/test_raycast_sensor.py:874
Functiontest_multi_geom_body_padding
Sphere (3 geoms) + cone (5 geoms) -> body padded to 5 mesh geoms.
tests/test_variants.py:298
Functiontest_multi_slot_air_time_and_primary_names
Multi-slot air-time stays per-primary, primaries are exposed by name. Regression for issue #914: previously `num_slots > 1` with `track_air_time`
tests/test_contact_sensor.py:746
Functiontest_multi_slot_pattern_matching
Verify pattern lists create separate tracking slots for each matched geom. When passing a list of patterns like ["left_foot_geom", "right_foot_geom
tests/test_contact_sensor.py:219
Functiontest_multi_step_history_flattened
Test observation with history_length=3 and flattened.
tests/test_observation_history.py:87
Functiontest_multi_step_history_not_flattened
Test observation with history_length=3 and not flattened.
tests/test_observation_history.py:109
Functiontest_multiple_entities_merged_keyframe
Test that multiple entities produce a single merged keyframe.
tests/test_scene.py:487
Functiontest_multiple_freejoints_raises
An entity with more than one freejoint is rejected at construction.
tests/test_entity.py:246
Functiontest_multiple_sensors
Verify multiple sensors can be registered and return correctly shaped data.
tests/test_builtin_sensor.py:146
Functiontest_multiple_sensors
Test multiple contact sensors in the same scene.
tests/test_contact_sensor.py:599
Functiontest_multiple_terms_have_independent_state
(mock_env: Mock)
tests/test_recorder_manager.py:269
Functiontest_multiple_terms_with_different_noise
Test multiple observation terms with different noise configs.
tests/test_observation_noise.py:279
Functiontest_names_preserve_user_order_when_preserving_order
With preserve_order=True, names stay in the user-specified order.
tests/test_scene_entity_config.py:196
Functiontest_names_reordered_to_match_ids_when_not_preserving_order
With preserve_order=False, names are reordered to internal order.
tests/test_scene_entity_config.py:170
Functiontest_names_to_ids_sets_slice_when_all
Providing full set of names resolves ids and collapses to slice(None).
tests/test_scene_entity_config.py:89
Functiontest_nan_before_delay_buffer
NaN should be sanitized before entering delay buffer.
tests/test_observation_nan_handling.py:232
Functiontest_nan_before_history_buffer
NaN should be sanitized before entering history buffer.
tests/test_observation_nan_handling.py:276
Functiontest_nan_check_dict_output
NaN checking should work with non-concatenated dict output.
tests/test_observation_nan_handling.py:206
Functiontest_nan_check_final_only
Final-only checking should check concatenated result.
tests/test_observation_nan_handling.py:176
Functiontest_nan_check_per_term_identifies_source
Per-term checking should identify which term has NaN.
tests/test_observation_nan_handling.py:140
Functiontest_nan_detection_function
Test that nan_detection correctly identifies NaN/Inf environments.
tests/test_terminations.py:47
Functiontest_nan_detection_with_termination_manager
Test that nan_detection is properly logged by termination manager.
tests/test_terminations.py:67
Functiontest_nan_disabled_policy_no_check
Policy='disabled' should pass through NaNs unchanged.
tests/test_observation_nan_handling.py:32
Functiontest_nan_error_policy_raises
Policy='error' should raise ValueError with context.
tests/test_observation_nan_handling.py:114
Functiontest_nan_guard_captures_and_dumps_on_nan
NaN guard should capture states and dump when NaN detected.
tests/test_nan_guard.py:63
Functiontest_nan_guard_captures_high_indexed_envs
NaN guard should capture NaN in high-indexed environments beyond max_envs_to_dump.
tests/test_nan_guard.py:298
Functiontest_nan_guard_captures_mocap_state
NaN guard should capture and restore mocap body poses.
tests/test_nan_guard.py:366
Functiontest_nan_guard_creates_latest_symlinks
NaN guard should create latest symlinks that work correctly.
tests/test_nan_guard.py:331
Functiontest_nan_guard_detects_correct_env_ids
NaN guard should correctly identify which environments have NaN/Inf.
tests/test_nan_guard.py:113
Functiontest_nan_guard_disabled_by_default
NaN guard should be disabled by default with no overhead.
tests/test_nan_guard.py:53
Functiontest_nan_guard_only_dumps_once
NaN guard should only dump once per training run.
tests/test_nan_guard.py:235
Functiontest_nan_guard_respects_buffer_size
NaN guard should only keep last K states in buffer.
tests/test_nan_guard.py:265
Functiontest_nan_guard_saves_model
NaN guard should save model file alongside state dump.
tests/test_nan_guard.py:147
Functiontest_nan_guard_with_complex_model
NaN guard should work with complex robot model.
tests/test_nan_guard.py:182
Functiontest_nan_handling_with_clipping
NaN handling should work correctly with clipping applied.
tests/test_observation_nan_handling.py:378
Functiontest_nan_handling_with_multiple_groups
NaN handling should work independently for multiple groups.
tests/test_observation_nan_handling.py:317
Functiontest_nan_handling_with_scaling
NaN handling should work correctly with scaling applied.
tests/test_observation_nan_handling.py:351
Functiontest_nan_sanitize_policy_silently_fixes
Policy='sanitize' should zero NaNs without warning.
tests/test_observation_nan_handling.py:55
Functiontest_nan_warn_policy_logs_and_sanitizes
Policy='warn' should log warning and sanitize.
tests/test_observation_nan_handling.py:83
Functiontest_negative_inf_handling
Test that negative infinity is also handled.
tests/test_observation_nan_handling.py:407
Functiontest_no_accumulation
3x with fixed value produces same result as 1x (uses defaults).
tests/test_domain_randomization.py:170
Functiontest_no_contacts
Test sensor behavior when no contacts occur.
tests/test_contact_sensor.py:643
Functiontest_no_delay_by_default
Test that observations work without delay (default behavior).
tests/test_observation_delay.py:49
Functiontest_no_double_append_on_first_call
Test that first call with update_history=True only appends once, not twice.
tests/test_observation_history.py:485
← previousnext →2,301–2,400 of 2,812, ranked by callers