MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

Functiontest_scalar_material_fields_scale_use_defaults
Scale operation uses compiled defaults for scalar material fields.
tests/test_domain_randomization.py:1729
Functiontest_scale_operation
Values = default * sample, within expected bounds.
tests/test_domain_randomization.py:114
Functiontest_scene_entity_cfg_in_params_not_mutated
SceneEntityCfg in params should not be mutated when resolved.
tests/test_manager_config_immutability.py:125
Functiontest_scene_initialize
Test that scene initialization sets up entities.
tests/test_scene.py:259
Functiontest_scene_requires_live_refresh
Base scene sets needs_update when contact overlays are visible.
tests/test_viser_update_policy.py:66
Functiontest_scene_reset
Test that reset calls reset on all entities.
tests/test_scene.py:288
Functiontest_scene_spec_fn_adds_site
Test that spec_fn can add elements to the scene spec.
tests/test_scene.py:384
Functiontest_scene_spec_fn_cross_entity_tendon
Test that spec_fn can create tendons between two entities.
tests/test_scene.py:399
Functiontest_scene_update
Test that update calls update on all entities.
tests/test_scene.py:308
Functiontest_scene_with_entities
Test creating a scene with multiple entities.
tests/test_scene.py:143
Functiontest_scene_write_data_to_sim
Test that write_data_to_sim calls the method on all entities.
tests/test_scene.py:320
Functiontest_scene_write_zip
Scene.write produces a directory; with zip=True, a zip archive.
tests/test_xml_utils.py:97
Functiontest_select_default_values_uses_per_world_variant_defaults
Per-world defaults are indexed by env first, then by entity.
tests/test_variants.py:1205
Functiontest_select_gpus_all_option
Selects all GPUs when 'all' is specified.
tests/test_gpu_selection.py:52
Functiontest_select_gpus_cpu_mode_empty_cuda_visible_devices
Selects CPU mode when CUDA_VISIBLE_DEVICES is empty.
tests/test_gpu_selection.py:108
Functiontest_select_gpus_cpu_mode_explicit
Selects CPU mode when None is specified.
tests/test_gpu_selection.py:99
Functiontest_select_gpus_empty_segments
Handles empty segments in CUDA_VISIBLE_DEVICES.
tests/test_gpu_selection.py:79
Functiontest_select_gpus_mig_uuids
Handles MIG GPU UUIDs in CUDA_VISIBLE_DEVICES.
tests/test_gpu_selection.py:118
Functiontest_select_gpus_respects_user_order
Preserves the order specified by the user.
tests/test_gpu_selection.py:89
Functiontest_select_gpus_single_gpu
Correctly selects a single GPU.
tests/test_gpu_selection.py:61
Functiontest_select_gpus_with_non_contiguous_devices
Handles non-contiguous CUDA_VISIBLE_DEVICES correctly.
tests/test_gpu_selection.py:32
Functiontest_select_gpus_with_spaces
Handles CUDA_VISIBLE_DEVICES with spaces correctly.
tests/test_gpu_selection.py:70
Functiontest_select_gpus_with_visible_devices_set
Respects CUDA_VISIBLE_DEVICES when selecting GPUs.
tests/test_gpu_selection.py:22
Functiontest_sense_graph_captured
Verify sense_graph is captured on CUDA.
tests/test_camera_sensor.py:200
Functiontest_sensor_count_mismatch_rejected
()
tests/test_variants.py:659
Functiontest_sensor_matches_ground_truth_when_site_aligned
Sensor and entity both equal hand-computed projected gravity for a tilted base.
tests/test_projected_gravity_sensor.py:117
Functiontest_setting_spec_fn_on_variant_cfg_raises
VariantEntityCfg.spec_fn is unused; setting it should fail loudly.
tests/test_variants.py:368
Functiontest_shared_delay_actual_verification
Verify that per_env=False gives same lag across all envs.
tests/test_observation_delay.py:380
Functiontest_shared_random
All entities within same env get same value, envs differ.
tests/test_domain_randomization.py:339
Functiontest_shared_term_name_noise_models_are_per_group
Each group owns its own noise model instance when they share a term name. ConstantNoiseCfg(op="add") shifts the additive-bias tensor by the configu
tests/test_observation_noise.py:237
Functiontest_should_submit_scene_update
()
tests/test_viser_update_policy.py:48
Functiontest_should_update_cameras
()
tests/test_viser_update_policy.py:40
Functiontest_sim_reset_restores_initial_state
Test that sim.reset() restores qpos/qvel to initial values.
tests/test_sim.py:96
Functiontest_sim_reset_selective
Test that sim.reset() only affects specified environments.
tests/test_sim.py:121
Functiontest_simulation_config_is_piped
Test that SimulationCfg values are applied to both mj_model and wp_model.
tests/test_sim.py:44
Functiontest_single_entity_keyframe
Test that a single entity produces one merged keyframe.
tests/test_scene.py:475
Functiontest_single_env_without_expand
num_envs=1 works without expand_model_fields, no accumulation.
tests/test_domain_randomization.py:369
Functiontest_single_step_history
Test observation with history_length=1.
tests/test_observation_history.py:67
Functiontest_single_step_ignored_when_running
()
tests/test_viewer_tick.py:148
Functiontest_single_step_while_paused
()
tests/test_viewer_tick.py:137
Functiontest_single_variant_builds
A single variant degenerates cleanly; useful for templated variant sets.
tests/test_variants.py:330
Functiontest_site_origin_is_physical_with_world_alignment
ray_alignment only controls direction, not origin position. When a calf body pitches, the foot site swings to its physical position (site_xpos).
tests/test_raycast_sensor.py:1186
Functiontest_site_quat_randomization_changes_sensor
The full DR path: running ``dr.site_quat`` perturbs the gravity observation. This is what the G1 example configs rely on -- randomizing the IMU sit
tests/test_projected_gravity_sensor.py:179
Functiontest_site_rejected
()
tests/test_builtin_dcmotor_actuator.py:470
Functiontest_site_transmission_rejected
()
tests/test_builtin_pd_actuator.py:99
Functiontest_slew_rate_limits_voltage
``slew_rate`` rate-limits ``ctrl``: after one step, effective voltage is far below the requested input.
tests/test_builtin_dcmotor_actuator.py:365
Functiontest_slot_metadata_alignment_invariant
variant_slot_specs[v] aligns with slots positionally for every variant.
tests/test_variants.py:851
Functiontest_slot_metadata_articulated_per_body_slots
Articulated variants produce slots per (body, role).
tests/test_variants.py:772
Functiontest_slot_metadata_captures_visual_role_from_zero_contact_bits
A geom with contype=0 and conaffinity=0 is classified as visual.
tests/test_variants.py:815
Functiontest_slot_metadata_ordinals_are_zero_based_per_body_and_role
Within a (body, role), slot ordinals are 0..max-1.
tests/test_variants.py:835
Functiontest_slot_metadata_padding_derivable_from_specs
A slot held by some variants but not others is unfilled (None) for those.
tests/test_variants.py:744
Functiontest_slot_metadata_single_variant_single_geom
()
tests/test_variants.py:688
Functiontest_slot_metadata_source_geom_names_record_padding_as_none
source_geom_names has None where a variant doesn't fill a slot.
tests/test_variants.py:992
Functiontest_slot_metadata_template_name_under_reserved_prefix
Every template slot name starts with the reserved mjlab/pad/ prefix.
tests/test_variants.py:801
Functiontest_slot_metadata_visual_before_collision
Slot ordering: visual slots come before collision slots per body.
tests/test_variants.py:727
Functiontest_slot_metadata_visual_collision_split
Visual and collision geoms on the same body get distinct slots.
tests/test_variants.py:709
Functiontest_slow_speed
()
tests/test_viewer_tick.py:83
Functiontest_small_valid_plane_still_fits
A tiny but planar patch should not be rejected as degenerate.
tests/test_terrain_utils.py:104
Functiontest_soft_limits_all_limited
All-limited joints should have finite soft limits.
tests/test_entity_data.py:415
Functiontest_soft_limits_all_unlimited
All-unlimited joints should have infinite soft limits.
tests/test_entity_data.py:426
Functiontest_soft_limits_unlimited_joints_are_infinite
Unlimited joints must have [-inf, inf] soft limits, not [0, 0].
tests/test_entity_data.py:399
Functiontest_sort_actuators
sort_actuators=True reorders ctrl to match joint definition order.
tests/test_actuator_builtin_group.py:160
Functiontest_spatial_frame_sensor_accepts_multiple_types
Verify spatial frame sensors accept body, xbody, geom, site, camera.
tests/test_builtin_sensor.py:246
Functiontest_stairs_terrains_cfg_structure
()
tests/test_terrain_config.py:44
Functiontest_stale_cache_without_update
Verify that without update(), cache returns stale data.
tests/test_sensor_caching.py:219
Functiontest_stateless_class_reward_no_reset
Test that stateless class-based rewards without reset don't break reset.
tests/test_rewards.py:149
Functiontest_status_snapshot
()
tests/test_viewer_tick.py:212
Functiontest_step_mode_fires_every_call
Step-mode events fire unconditionally on every apply() call.
tests/test_events.py:536
Functiontest_step_trigger_writes_video
VideoRecorder writes a readable mp4 when the step trigger fires.
tests/test_video_recorder.py:29
Functiontest_step_zero_applies_immediately
()
tests/test_envs_curriculums.py:116
Functiontest_stepping
Physics steps match sim-time budget.
tests/test_viewer_tick.py:49
Functiontest_stone_size_decreases_with_difficulty
Average stone size should be smaller at higher difficulty.
tests/test_terrains.py:74
Functiontest_string_keyed_ranges
Per-component DR with regex patterns.
tests/test_domain_randomization.py:306
Functiontest_string_keyed_ranges_no_match_raises
Pattern matching no names raises ValueError.
tests/test_domain_randomization.py:324
Functiontest_strip_buffer_textures
Stripping buffer textures removes them and enables XML roundtrip.
tests/test_xml_utils.py:11
Functiontest_substep_reset_zeroes_accumulators
Reset zeroes substep accumulators for the given env_ids.
tests/test_metrics_manager.py:157
Functiontest_subtree_mode_contacts
Test contact detection with subtree mode.
tests/test_contact_sensor.py:492
Functiontest_sync_model_fields_copies_only_requested_env_fields
Viewer model sync copies explicit fields and leaves others unchanged.
tests/test_variants.py:1747
Functiontest_targets_cleared_on_reset
Entity.reset() zeros all targets.
tests/test_actuator.py:70
Functiontest_template_geom_contype_matches_slot_role
Template contype/conaffinity are derived from slot role (union of variants).
tests/test_variants.py:865
Functiontest_template_geoms_use_mjlab_pad_prefix
All entity mesh-geom names in the compiled template use mjlab/pad/ prefix.
tests/test_variants.py:886
Functiontest_tendon_and_site_targets_only_allocated_when_needed
Test that tendon/site targets are only allocated when actuators use them.
tests/test_entity.py:750
Functiontest_tendon_armature_no_accumulation
Repeated scale does not accumulate.
tests/test_domain_randomization.py:1445
Functiontest_tendon_field_scale
Scale operation on tendon fields: result = default * sample.
tests/test_domain_randomization.py:1420
Functiontest_term_major_ordering
Test that history flattening uses term-major ordering. Term-major: [A_t0, A_t1, ..., A_tH-1, B_t0, B_t1, ..., B_tH-1] Time-major: [A_t0, B_t0, ..
tests/test_observation_history.py:547
Functiontest_terminal_action_available_at_record_pre_reset
record_pre_reset fires before _reset_idx, so action_manager.action is intact. In step(), the sequence is: record_pre_reset(reset_env_ids) <-
tests/test_recorder_manager.py:69
Functiontest_termination_later_stage_wins
()
tests/test_envs_curriculums.py:176
Functiontest_termination_log_keys
()
tests/test_envs_curriculums.py:267
Functiontest_termination_params_unchanged_before_threshold
()
tests/test_envs_curriculums.py:169
Functiontest_termination_params_updated
()
tests/test_envs_curriculums.py:162
Functiontest_termination_shape_validation_rejects_bad_compute_output
Termination terms must return one boolean per environment.
tests/test_terminations.py:119
Functiontest_terms_called_in_registration_order
(mock_env: Mock)
tests/test_recorder_manager.py:248
Functiontest_terrain_aware_aligned_with_slope
Robot pitched to match a slope → terrain-aware reward ≈ 1.
tests/test_velocity_rewards.py:115
Functiontest_terrain_aware_flat_ground_matches_world_up
On flat terrain, terrain-aware and world-up should give same reward.
tests/test_velocity_rewards.py:154
Functiontest_terrain_aware_upright_on_slope_penalized
Robot staying vertical on a slope → terrain-aware reward < 1.
tests/test_velocity_rewards.py:135
Functiontest_terrain_edge_reached_at_edge
(mock_terrain_env)
tests/test_terminations.py:165
Functiontest_terrain_edge_reached_no_terrain
(mock_terrain_env)
tests/test_terminations.py:181
Functiontest_terrain_edge_reached_skips_early_steps
(mock_terrain_env)
tests/test_terminations.py:173
Functiontest_terrain_edge_reached_within_bounds
(mock_terrain_env)
tests/test_terminations.py:159
Functiontest_terrain_importer_end_to_end
Flat patches flow through generator → importer with correct shape and bounds.
tests/test_flat_patch_sampling.py:121
← previousnext →2,601–2,700 of 2,812, ranked by callers