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
staged_position_reward
Curriculum reward that gates lifting bonus on reaching progress. Returns reaching * (1 + bringing), where both terms are Gaussian kernels over po
src/mjlab/tasks/manipulation/mdp/rewards.py:20
Function
stateless_reward_config
Config with a stateless class-based reward.
tests/test_rewards.py:114
Function
step_dependent_metric
(env)
tests/test_metrics_manager.py:67
Method
step_dt
Environment step size (physics_dt * decimation).
src/mjlab/envs/manager_based_rl_env.py:266
Function
stepping_stones
( **overrides: Any, )
src/mjlab/terrains/config.py:212
Function
string_to_slice
Convert a string representation of a slice to a slice object. Args: s: The string representation of the slice. Returns: The
src/mjlab/utils/lab_api/string.py:61
Method
struct
Access the underlying wrapped struct.
src/mjlab/sim/sim_data.py:236
Function
subtract_network_file
Create a network that subtracts second half from first half of inputs. For input [a, b, c, d], returns (a + b) - (c + d). This is sensitive to in
tests/test_learned_actuator.py:85
Method
sync_env_to_viewer
Copy env state to viewer; update reward figures; render other envs.
src/mjlab/viewer/native/viewer.py:207
Method
sync_env_to_viewer
Synchronize environment state to viewer.
src/mjlab/viewer/viser/viewer.py:498
Method
sync_env_to_viewer
(self)
tests/test_viewer_tick.py:25
Method
sync_viewer_to_env
Sync mouse perturbation to sim via ``qfrc_applied``. Mouse perturbation forces are converted from Cartesian body space (``xfrc_applied``) to
src/mjlab/viewer/native/viewer.py:399
Method
sync_viewer_to_env
Synchronize viewer state to environment (e.g., perturbations).
src/mjlab/viewer/viser/viewer.py:521
Method
sync_viewer_to_env
(self)
tests/test_viewer_tick.py:28
Method
target_geom_ids
Geom IDs of the target cube per env. Shape: (B, K).
src/mjlab/tasks/manipulation/mdp/commands.py:162
Method
target_ids
Local indices of targets controlled by this actuator.
src/mjlab/actuator/actuator.py:178
Method
target_ids
Target IDs for the controlled transmission.
src/mjlab/envs/mdp/actions/actions.py:145
Method
target_names
Names of targets controlled by this actuator.
src/mjlab/actuator/actuator.py:184
Method
target_names
Target names for the controlled transmission.
src/mjlab/envs/mdp/actions/actions.py:150
Function
target_position
Target position in EE frame.
src/mjlab/tasks/manipulation/mdp/observations.py:74
Method
target_realtime
(self)
src/mjlab/viewer/base.py:457
Function
tendon_armature
Randomize tendon armature. Triggers ``set_const_0``.
src/mjlab/envs/mdp/dr/tendon.py:106
Function
tendon_damping
Randomize tendon damping.
src/mjlab/envs/mdp/dr/tendon.py:24
Function
tendon_env
(device)
tests/test_domain_randomization.py:1407
Function
tendon_finger_entity
(fixtures_dir, device)
tests/test_actions.py:37
Function
tendon_friction
Randomize tendon friction loss (tendon_frictionloss).
src/mjlab/envs/mdp/dr/tendon.py:76
Method
tendon_len
Tendon lengths. Shape (num_envs, num_tendons).
src/mjlab/entity/data.py:386
Method
tendon_names
(self)
src/mjlab/entity/entity.py:439
Function
tendon_stiffness
Randomize tendon stiffness.
src/mjlab/envs/mdp/dr/tendon.py:50
Method
tendon_vel
Tendon velocities. Shape (num_envs, num_tendons).
src/mjlab/entity/data.py:391
Method
terminated
(self)
src/mjlab/managers/termination_manager.py:83
Method
terrain
(self)
src/mjlab/scene/scene.py:124
Function
terrain_entity
()
tests/test_terrain_proportion_spawning.py:15
Function
terrain_levels_vel
( env: ManagerBasedRlEnv, env_ids: torch.Tensor, command_name: str, asset_cfg: SceneEntityCfg = _DEFAU
src/mjlab/tasks/velocity/mdp/curriculums.py:25
Function
terrain_preset
Register a terrain preset into ALL_TERRAIN_PRESETS.
src/mjlab/terrains/config.py:31
Function
test_abs_operation
Values set directly within range, diversity across envs.
tests/test_domain_randomization.py:95
Function
test_accelerometer_sensor
Verify accelerometer reads non-zero acceleration when robot is on floor.
tests/test_builtin_sensor.py:105
Function
test_accepts_string_path
VideoRecorder accepts a string path for video_folder.
tests/test_video_recorder.py:57
Function
test_accumulator_carries
Fractional budget carries across ticks.
tests/test_viewer_tick.py:62
Function
test_actfrcrange_sum_clamp
A pos error big enough to make kp*err exceed effort_limit must be clamped at the joint, not allowed to ride through the unbounded element.
tests/test_builtin_pd_actuator.py:153
Function
test_action_dim
(device, orientation_weight, relative, expected_dim)
tests/test_differential_ik_action.py:122
Function
test_action_history_reset
Test that reset clears action history for all or specific environments.
tests/test_action_manager.py:87
Function
test_action_history_tracking
Test that action, prev_action, and prev_prev_action track history correctly.
tests/test_action_manager.py:51
Function
test_action_sets_entity_target
Each action type writes to correct entity.data field.
tests/test_actions.py:187
Function
test_active_terms_matches_registration_order
(mock_env: Mock)
tests/test_recorder_manager.py:290
Function
test_actuator_count_mismatch_rejected
()
tests/test_variants.py:574
Function
test_actuator_forcerange_not_set
We deliberately leave per-element forcerange unset; the limit lives on the joint. Inspection of actuator_force[i] thus shows the unclamped value.
tests/test_builtin_pd_actuator.py:175
Function
test_actuator_name_mismatch_rejected
()
tests/test_variants.py:585
Function
test_actuator_parameters
(g1_model, actuator_config, stiffness, damping)
tests/test_g1_constants.py:37
Function
test_actuator_parameters
(go1_model, actuator_config, stiffness, damping)
tests/test_go1_constants.py:33
Function
test_add_actuators_wrong_namespace_error_includes_hint
Error message includes namespace hint when name exists in another namespace.
tests/test_entity.py:790
Function
test_add_operation
Values = default + sample, within expected bounds.
tests/test_domain_randomization.py:137
Function
test_agent_cfg_serializable_after_runner_creation
dump_yaml must be called before runner creation. The runner mutates agent_cfg in-place (e.g. resolve_symmetry_config injects non-serializable obj
tests/test_runner.py:398
Function
test_air_time_tracking
Verify contact sensors track time spent in/out of contact when enabled. Tests the track_air_time feature which monitors how long each contact point
tests/test_contact_sensor.py:525
Function
test_all_actuator_types_preserve_xml_properties
All builtin actuator types preserve XML armature/frictionloss.
tests/test_actuator.py:254
Function
test_all_presets_generate_terrain
Each preset can generate terrain without error.
tests/test_terrain_config.py:73
Function
test_all_presets_return_sub_terrain_cfg
()
tests/test_terrain_config.py:19
Function
test_all_tasks_have_play_config
All tasks should be loadable in play mode.
tests/test_task_configs.py:28
Function
test_all_tasks_loadable
All registered tasks should be loadable without errors.
tests/test_task_configs.py:16
Function
test_all_terms_none_skipped
A group whose every term is None is skipped rather than raising.
tests/test_observation_manager.py:41
Function
test_all_terrains_cfg_matches_presets
()
tests/test_terrain_config.py:51
Function
test_allocate_worlds_largest_remainder_sums_to_nworld
Largest-remainder rounding must always allocate exactly nworld worlds.
tests/test_variants.py:191
Function
test_allocate_worlds_proportional
()
tests/test_variants.py:154
Function
test_allocate_worlds_rejects_all_zero
()
tests/test_variants.py:186
Function
test_allocate_worlds_rejects_negative_weight
()
tests/test_variants.py:181
Function
test_allocate_worlds_single_variant
()
tests/test_variants.py:167
Function
test_allocate_worlds_uniform
()
tests/test_variants.py:161
Function
test_allocate_worlds_zero_weight_skips_variant
A zero-weight variant gets zero worlds; the rest split nworld.
tests/test_variants.py:172
Function
test_append_wrong_batch_raises
Appending wrong batch size raises error.
tests/test_delay_buffer.py:281
Function
test_apply_body_impulse_basic
Impulse is applied and cleared after duration expires.
tests/test_events.py:591
Function
test_apply_body_impulse_initial_cooldown
The first call after init/reset enters cooldown, not an immediate impulse. Regression test for #973.
tests/test_events.py:708
Function
test_apply_body_impulse_reset_clears
reset() zeros forces and resets internal state.
tests/test_events.py:674
Function
test_apply_body_impulse_with_offset
body_point_offset adds cross-product contribution to torque.
tests/test_events.py:644
Function
test_apply_delta_pose_zero_rotation_is_finite_and_identity
Zero rotation delta should return finite values and preserve input pose.
tests/test_lab_api_math.py:15
Function
test_armature_applied
(device)
tests/test_builtin_dcmotor_actuator.py:484
Function
test_armature_applied_once
Joint armature must come from the position element only; double-applying would silently double dof_armature.
tests/test_builtin_pd_actuator.py:109
Function
test_articulated_same_topology_validates
Articulated variants with matching topology pass validation (build still rejects via floating-base check; this verifies validation itself does not
tests/test_variants.py:487
Function
test_assignment_fn_overrides_weights
When assignment_fn is set, it dictates the per-world variant indices.
tests/test_variants.py:204
Function
test_assignment_fn_rejects_out_of_range_index
()
tests/test_variants.py:261
Function
test_assignment_fn_rejects_wrong_length
()
tests/test_variants.py:244
Function
test_assignment_fn_seeded_is_nworld_invariant
Per-world independent RNG draws make world W's variant a function of W alone, independent of nworld.
tests/test_variants.py:223
Function
test_attach_metadata_to_onnx
Test that metadata can be attached to ONNX models.
tests/test_rl_exporter.py:44
Function
test_auto_reset_false_explicit_reset_works
After auto_reset=False, calling reset(env_ids=...) resets those envs.
tests/test_auto_reset.py:73
Function
test_auto_reset_false_obs_differs_from_auto_reset_true
Terminal obs (auto_reset=False) differs from post-reset obs (auto_reset=True).
tests/test_auto_reset.py:146
Function
test_auto_reset_false_preserves_terminal_state
With auto_reset=False, done envs are NOT reset and obs is the terminal state.
tests/test_auto_reset.py:48
Function
test_auto_reset_false_requires_manual_reset_before_next_step
Raw env should reject another step until done envs are explicitly reset.
tests/test_auto_reset.py:93
Function
test_auto_reset_false_user_loop_pattern
Example: run your own training loop against an auto_reset=False env. The pattern is: 1. After step(), derive done_ids from terminated | truncat
tests/test_auto_reset.py:111
Function
test_auto_reset_true_resets_done_envs
With auto_reset=True (default), done envs are reset during step.
tests/test_auto_reset.py:35
Function
test_axes_selectivity
Only the specified axes are modified; others stay at defaults.
tests/test_domain_randomization.py:246
Function
test_back_emf_reduces_torque_at_velocity
Same V, joint moving at omega: tau = K * (V - K * omega) / R.
tests/test_builtin_dcmotor_actuator.py:176
Function
test_backfill_after_per_batch_reset
After resetting a row, the next append back-fills its entire history for that row.
tests/test_circular_buffer.py:139
Function
test_backfill_multidimensional_data
First-push backfill works for >2D data whose trailing dims differ from batch. Regression for #1045: the backfill broadcast hard-coded a 3D conditio
tests/test_circular_buffer.py:164
Function
test_base_action_applies_scale_and_offset
BaseAction: processed = raw * scale + offset.
tests/test_actions.py:105
Function
test_base_action_clip
BaseAction: clip clamps only matched actuators; others stay unclipped.
tests/test_actions.py:221
Function
test_base_action_reset_zeros_specific_envs
BaseAction.reset() zeros raw_action for specified env_ids only.
tests/test_actions.py:124
Function
test_base_term_all_hooks_are_no_ops
Base RecorderTerm hooks do nothing; __call__ raises NotImplementedError.
tests/test_recorder_manager.py:383
Function
test_basic_contact_detection
Verify that contact sensors detect collisions between a falling box and ground. Tests that when a box is placed just above ground and simulation st
tests/test_contact_sensor.py:127
Function
test_basic_proportions
(terrain_entity: TerrainEntity)
tests/test_terrain_proportion_spawning.py:54
Function
test_basic_raycast_hit_detection
Verify rays detect the ground plane and return correct distances.
tests/test_raycast_sensor.py:28
Function
test_batch_consistency
Multiple envs with different orientations get independent rewards.
tests/test_velocity_rewards.py:174
← previous
next →
1,901–2,000 of 2,812, ranked by callers