MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

Functiontest_bias_compensation_produces_identical_physical_behavior
Envs with different biases should have identical physics when compensated. If env0 has bias=0 and env1 has bias=0.3, and we want both to reach phys
tests/test_encoder_bias.py:218
Functiontest_body_com_offset_recompute
body_ipos modification triggers correct recomputation.
tests/test_events.py:788
Functiontest_body_ipos_recompute_matches_set_const
Modify body_ipos: GPU recompute matches CPU mj_setConst.
tests/test_events.py:873
Functiontest_body_mass_recompute_invweight
dof_invweight0 changes after body_mass modification.
tests/test_events.py:767
Functiontest_body_mass_recompute_matches_set_const
Modify body_mass: GPU recompute matches CPU mj_setConst.
tests/test_events.py:841
Functiontest_body_mass_recompute_subtreemass
body_subtreemass is correctly recomputed after body_mass change.
tests/test_events.py:750
Functiontest_body_mode_contacts
Test contact detection with body mode.
tests/test_contact_sensor.py:474
Functiontest_body_quat_only_specified_axes
Yaw-only perturbation: roll/pitch of result match default.
tests/test_domain_randomization.py:586
Functiontest_bridge_caches_wrappers
WarpBridge caches wrapper objects.
tests/test_sim_data.py:78
Functiontest_bridge_preserves_memory_on_slice_assign
Slice assignment preserves memory addresses (CUDA graph safe).
tests/test_sim_data.py:56
Functiontest_bridge_raises_on_setattr
Direct assignment raises AttributeError with helpful message.
tests/test_sim_data.py:67
Functiontest_bridge_wraps_arrays
WarpBridge wraps warp arrays as TorchArray.
tests/test_sim_data.py:49
Functiontest_builtin_actuator_with_internal_attach_prefix
Builtin actuator resolves joints through internal attach prefix.
tests/test_actuator.py:120
Functiontest_builtin_and_custom_actuators
Builtin actuators use batched path, custom actuators use compute().
tests/test_actuator_builtin_group.py:111
Functiontest_builtin_group_mismatched_indices
Controls are written correctly when actuator order differs from joint order.
tests/test_actuator_builtin_group.py:138
Functiontest_builtin_pd_actuator_compute
BuiltinPositionActuator writes position targets to ctrl.
tests/test_actuator.py:33
Functiontest_builtin_sensor_errors_on_duplicate_name
Verify BuiltinSensorCfg throws error when name conflicts with XML sensor.
tests/test_builtin_sensor.py:312
Functiontest_cache_invalidated_by_reset
Verify that reset() invalidates the cache.
tests/test_sensor_caching.py:134
Functiontest_cache_invalidated_by_update
Verify that update() invalidates the cache.
tests/test_sensor_caching.py:113
Functiontest_cache_invalidated_on_reset
Test that observation cache is invalidated when environments are reset.
tests/test_observation_delay.py:626
Functiontest_cam_fovy_abs
Set fovy to absolute range, check bounds.
tests/test_domain_randomization.py:984
Functiontest_cam_intrinsic_dr_changes_rendered_image
Per-env cam_intrinsic DR produces different images across envs.
tests/test_camera_sensor.py:297
Functiontest_cam_pos_add
Add offset to camera positions, check default + offset.
tests/test_domain_randomization.py:1005
Functiontest_cam_quat_zero_unchanged
Zero RPY range preserves default quaternion.
tests/test_domain_randomization.py:1031
Functiontest_camera_cfg
CameraCfg should add cameras to spec.
tests/test_spec_config.py:252
Functiontest_camera_clone_data
clone_data=True returns independent tensors.
tests/test_camera_sensor.py:216
Functiontest_camera_create_new
Camera sensor can create a new camera (not wrap existing).
tests/test_camera_sensor.py:124
Functiontest_camera_create_on_parent_body
Camera sensor can create a new camera attached to a body.
tests/test_camera_sensor.py:407
Functiontest_camera_depth_shape
Depth data has correct shape [num_envs, height, width].
tests/test_camera_sensor.py:81
Functiontest_camera_partial_env_ids
Subset of envs randomized, others unchanged.
tests/test_domain_randomization.py:1098
Functiontest_camera_rgb_and_depth
Both RGB and depth can be requested simultaneously.
tests/test_camera_sensor.py:103
Functiontest_camera_rgb_depth_segmentation
All three data types can be requested simultaneously.
tests/test_camera_sensor.py:384
Functiontest_camera_rgb_not_all_zeros
RGB data should contain non-zero values when scene has objects.
tests/test_camera_sensor.py:155
Functiontest_camera_rgb_shape
RGB data has correct shape [num_envs, height, width, 3].
tests/test_camera_sensor.py:58
Functiontest_camera_segmentation_content
Segmentation contains typed MuJoCo ids for geom hits and background.
tests/test_camera_sensor.py:354
Functiontest_camera_segmentation_returns_bchw
()
tests/test_manipulation_observations.py:37
Functiontest_camera_segmentation_shape
Segmentation data has correct shape [num_envs, height, width, 2].
tests/test_camera_sensor.py:331
Functiontest_camera_sensor_context_created
Scene creates SensorContext when camera sensors are present.
tests/test_camera_sensor.py:243
Functiontest_camera_target_cube_mask_filters_to_geom_hits
()
tests/test_manipulation_observations.py:59
Functiontest_camera_wrap_existing_overrides_fovy
Wrapping an existing camera can override its fovy.
tests/test_camera_sensor.py:175
Functiontest_capped_clears_each_tick
Capped resets to False each tick; only True when deadline hit.
tests/test_viewer_tick.py:224
Functiontest_capped_false_when_no_remaining_budget
Deadline hit with no remaining budget is NOT capped (transient stall).
tests/test_viewer_tick.py:236
Functiontest_cfg_params_accessible_on_term
(mock_env: Mock)
tests/test_recorder_manager.py:315
Functiontest_circular_buffer_basic_append
Basic append and chronological retrieval (oldest -> newest).
tests/test_circular_buffer.py:16
Functiontest_circular_buffer_first_append_fills
First append back-fills whole history for each batch row.
tests/test_circular_buffer.py:69
Functiontest_circular_buffer_overwrite
Overwrites oldest once capacity reached.
tests/test_circular_buffer.py:35
Functiontest_circular_buffer_reset_single_batch
Reset clears values and counters for specified batch rows.
tests/test_circular_buffer.py:48
Functiontest_class_based_metric_reset_targets_correct_envs
Class-based term's reset() is called with the correct env_ids.
tests/test_metrics_manager.py:90
Functiontest_class_based_reward_reset
Test that class-based reward terms are tracked and have reset called.
tests/test_rewards.py:125
Functiontest_close_propagates_to_all_terms
(mock_env: Mock)
tests/test_recorder_manager.py:232
Functiontest_cnn_onnx_export_matches_actor
as_onnx() with SpatialSoftmaxCNNModel matches the original model.
tests/test_runner.py:305
Functiontest_cnn_onnx_export_to_file
SpatialSoftmaxCNNModel exports to a valid ONNX file.
tests/test_runner.py:323
Functiontest_cnn_onnx_runtime_roundtrip_matches_pytorch
Exported CNN .onnx file produces the same outputs as PyTorch via onnxruntime.
tests/test_runner.py:348
Functiontest_cogging_bypasses_effort_limit
Cogging is added *after* the forcerange clamp (MuJoCo's intentional model: ``effort_limit`` bounds electromagnetic torque, cogging is mechanical).
tests/test_builtin_dcmotor_actuator.py:303
Functiontest_cogging_contributes_torque
At ctrl=0 (no electromagnetic torque), qfrc_actuator equals the cogging term ``A * sin(Np * q + phi)`` evaluated at the joint angle.
tests/test_builtin_dcmotor_actuator.py:278
Functiontest_cogging_packed_into_biasprm
``cogging=(A, Np, phi)`` packs into ``biasprm[0:3]``.
tests/test_builtin_dcmotor_actuator.py:262
Functiontest_collinear_points_fallback
Collinear points don't define a plane, should fall back to [0, 0, 1].
tests/test_terrain_utils.py:89
Functiontest_collision_basic_properties
CollisionCfg should set basic collision properties.
tests/test_spec_config.py:58
Functiontest_collision_dict_field_resolution
CollisionCfg should support dict-based field resolution.
tests/test_spec_config.py:95
Functiontest_collision_disable_other_geoms
CollisionCfg should disable non-matching geoms when requested.
tests/test_spec_config.py:151
Functiontest_collision_geom_count
(g1_model)
tests/test_g1_constants.py:105
Functiontest_collision_geom_count
Go1 should have 4 foot collision geoms.
tests/test_go1_constants.py:80
Functiontest_collision_margin_gap_solmix
CollisionCfg should set margin, gap, and solmix on matched geoms.
tests/test_spec_config.py:113
Functiontest_collision_margin_gap_solmix_dict
CollisionCfg should support dict-based margin, gap, solmix overrides.
tests/test_spec_config.py:130
Functiontest_collision_regex_matching
CollisionCfg should support regex pattern matching.
tests/test_spec_config.py:72
Functiontest_collision_validation
CollisionCfg should validate parameters.
tests/test_spec_config.py:184
Functiontest_compile_empty_scene
Test compiling an empty scene.
tests/test_scene.py:161
Functiontest_compile_scene_with_entities
Test compiling a scene with entities.
tests/test_scene.py:171
Functiontest_compute_data_called_once_per_cache_period
Verify _compute_data is only called once when cache is valid.
tests/test_sensor_caching.py:155
Functiontest_compute_without_update_returns_cached
Test that compute(update_history=False) returns cached result. This test verifies the fix for the double-push bug where calling compute() multipl
tests/test_observation_delay.py:532
Functiontest_constant_delay
Test observation with constant delay (min_lag = max_lag = 2).
tests/test_observation_delay.py:69
Functiontest_contact_fields
Verify all contact sensor output fields have correct shapes and values. Tests that force, torque, dist, pos, and normal fields are properly populat
tests/test_contact_sensor.py:171
Functiontest_contact_overlays_env_switch
env_switch requests scene update only when contacts are enabled.
tests/test_viser_update_policy.py:104
Functiontest_contains_and_get_term_for_null_manager
NullRecorderManager has no terms: `in` is always False and get_term raises.
tests/test_recorder_manager.py:375
Functiontest_contains_for_recorder_manager
`in` reflects whether a term name is registered on the manager.
tests/test_recorder_manager.py:367
Functiontest_counts_sum_to_num_envs
Total terrain_types length must always equal num_envs.
tests/test_terrain_proportion_spawning.py:65
Functiontest_create_site_mesh_box
Test box site mesh creation.
tests/test_viser_conversions.py:467
Functiontest_create_site_mesh_capsule
Test capsule site mesh creation.
tests/test_viser_conversions.py:434
Functiontest_create_site_mesh_cylinder
Test cylinder site mesh creation.
tests/test_viser_conversions.py:458
Functiontest_create_site_mesh_ellipsoid
Test ellipsoid site mesh creation.
tests/test_viser_conversions.py:446
Functiontest_create_site_mesh_rgba_fallback
Test that all-zero RGBA falls back to gray.
tests/test_viser_conversions.py:476
Functiontest_create_site_mesh_sphere
Test sphere site mesh creation.
tests/test_viser_conversions.py:421
Functiontest_critic_observation_corruption_always_disabled
Critic observations should always have corruption disabled.
tests/test_task_configs.py:87
Functiontest_ctrl_ids_follow_natural_joint_order
Test that entity.indexing.ctrl_ids are in actuator definition order. ctrl_ids follow actuator definition order for simplicity. ONNX export builds
tests/test_entity.py:525
Functiontest_ctrllimited_true_would_clip_internally
Demonstrate that ctrllimited=True clips control internally (the bug). This test shows what would happen with the bug: commanding at vs beyond the
tests/test_spec_utils.py:105
Functiontest_current_length_counts_and_clamps
current_length counts per-batch valid frames and clamps to max_len.
tests/test_circular_buffer.py:83
Functiontest_custom_distribution
A user-defined Distribution works end-to-end.
tests/test_domain_randomization.py:1568
Functiontest_custom_entity_subclass
Test that custom Entity subclasses work through the scene.
tests/test_entity.py:613
Functiontest_custom_operation
A user-defined Operation works end-to-end.
tests/test_domain_randomization.py:1541
Functiontest_cutoff_parameter
Verify cutoff parameter propagates to MuJoCo model.
tests/test_builtin_sensor.py:335
Functiontest_data_reflects_physics_after_step_and_update
Verify sensor data reflects physics state after step + update cycle.
tests/test_sensor_caching.py:181
Functiontest_dataid_assigned_per_world
Each world's geom_dataid points to its variant's meshes.
tests/test_variants.py:1022
Functiontest_dc_motor_corner_velocity_transition
DC motor transitions correctly at corner velocity where curves intersect.
tests/test_dc_actuator.py:213
Functiontest_dc_motor_effort_limit_constrains_output
Continuous effort_limit constrains output below saturation_effort.
tests/test_dc_actuator.py:137
Functiontest_dc_motor_linear_torque_speed_curve
DC motor torque varies linearly between zero and max velocity.
tests/test_dc_actuator.py:99
Functiontest_dc_motor_negative_velocity_behavior
DC motor handles negative velocities symmetrically.
tests/test_dc_actuator.py:175
Functiontest_dc_motor_stall_torque
DC motor produces full saturation_effort at zero velocity.
tests/test_dc_actuator.py:25
Functiontest_dc_motor_warns_when_effort_limit_exceeds_saturation
DcMotorActuatorCfg warns when effort_limit > saturation_effort.
tests/test_dc_actuator.py:274
Functiontest_dc_motor_warns_when_effort_limit_is_inf
DcMotorActuatorCfg warns when effort_limit is inf.
tests/test_dc_actuator.py:254
Functiontest_dc_motor_zero_torque_at_max_velocity
DC motor produces zero torque at maximum velocity.
tests/test_dc_actuator.py:62
← previousnext →2,001–2,100 of 2,812, ranked by callers