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_terrain_normal_from_sensors
Mock env/sensors, verify subsampling + concatenation.
tests/test_terrain_utils.py:126
Function
test_terrain_preset_decorator
Custom preset is registered in ALL_TERRAIN_PRESETS.
tests/test_terrain_config.py:56
Function
test_texture_cfg
TextureCfg should add textures to spec.
tests/test_spec_config.py:203
Function
test_texture_extraction
Test texture extraction with a simple textured model.
tests/test_viser_conversions.py:94
Function
test_thermal_decays_torque
I^2R heating raises T, which raises effective resistance and decays torque over time.
tests/test_builtin_dcmotor_actuator.py:394
Function
test_tilted_plane
Points on z = 0.5*x plane → normal perpendicular to that.
tests/test_terrain_utils.py:31
Function
test_toggle_actions_dispatch_by_action_enum
()
tests/test_native_viewer_actions.py:18
Function
test_torch_array_ops_work
TorchArray supports PyTorch operations.
tests/test_sim_data.py:40
Function
test_torch_array_shares_memory
TorchArray modifications affect underlying warp array.
tests/test_sim_data.py:31
Function
test_tracking_no_state_estimation_observations
No-state-estimation tasks remove observations that depend on state estimation.
tests/test_tracking_task.py:51
Function
test_tracking_play_disables_rsi_randomization
Tracking play tasks should disable RSI randomization.
tests/test_tracking_task.py:75
Function
test_tracking_play_uses_start_sampling_mode
Tracking play tasks should use sampling_mode='start'.
tests/test_tracking_task.py:100
Function
test_tracking_runner_does_not_register_artifact_for_tensorboard
use_artifact is NOT called when using the tensorboard logger.
tests/test_runner.py:585
Function
test_tracking_runner_registers_artifact_for_wandb_logger_types
use_artifact is called for both legacy 'wandb' and current 'WandbLogWriter' logger types. Regression test: rsl-rl-lib 5.4 renamed the WandB logger
tests/test_runner.py:546
Function
test_tracking_tasks_have_motion_command
All tracking tasks should have a 'motion' command of type MotionCommandCfg.
tests/test_tracking_task.py:23
Function
test_tracking_tasks_have_self_collision_sensor
All tracking tasks should have a self_collision sensor.
tests/test_tracking_task.py:36
Function
test_training_mode_observation_corruption_enabled
Training mode tasks should have observation corruption enabled for policy.
tests/test_task_configs.py:68
Function
test_tuple_names_with_consistent_ids
Tuple names with matching IDs should validate without error.
tests/test_scene_entity_config.py:149
Function
test_two_actuated_entities_write_ctrl
Test that two identical actuated entities write controls to the correct global positions.
tests/test_scene.py:508
Function
test_two_ctrls_per_target_with_pos_then_vel_layout
Each target gets one <position> + one <velocity>, in halves.
tests/test_builtin_pd_actuator.py:83
Function
test_tyro_cli_calls_have_tyro_flags
Ensure all tyro.cli() calls include config=mjlab.TYRO_FLAGS.
tests/test_tyro_flags.py:62
Function
test_tyro_defaults
Regression test for #677 due to incompatibilities between declared types and default values of the env configs.
tests/test_tyro_defaults.py:10
Function
test_unitree_g1_conversion
Test conversion with Unitree G1 robot.
tests/test_viser_conversions.py:37
Function
test_unitree_go1_conversion
Test conversion with Unitree Go1 robot.
tests/test_viser_conversions.py:66
Function
test_unknown_reward_param_raises
()
tests/test_envs_curriculums.py:194
Function
test_unknown_termination_param_raises
()
tests/test_envs_curriculums.py:203
Function
test_unnamed_freejoint_gets_default_name
Test that an unnamed freejoint is auto-named during entity init.
tests/test_entity.py:229
Function
test_unsorted_stages_raise
()
tests/test_envs_curriculums.py:215
Function
test_update_history_false_doesnt_modify_buffer
Test that update_history=False doesn't modify the buffer.
tests/test_observation_history.py:200
Function
test_update_period_actual_verification
Verify that update_period controls lag update frequency.
tests/test_observation_delay.py:420
Function
test_update_period_changes_only_on_schedule
Lags update only at scheduled intervals.
tests/test_delay_buffer.py:184
Function
test_validate_specs_directly_rejects_zero_root_bodies
Empty worldbody fails with a clear root-body message.
tests/test_variants.py:670
Function
test_validation_error_format
Error messages use the standardized mjlab.entity prefix and Hint suffix.
tests/test_variants.py:629
Function
test_value_matches_lag_per_env
Delayed values correctly match current lags.
tests/test_delay_buffer.py:62
Function
test_variant_order_irrelevant_per_variant_compile
Reordering the variant dict does not change per-variant per-world fields.
tests/test_variants.py:936
Function
test_velocity_actuator_continuous_joint
Velocity actuator compiles for continuous joints with no range.
tests/test_spec_utils.py:171
Function
test_velocity_actuator_forces_clipped_to_effort_limit
Velocity actuator force is bounded by effort_limit.
tests/test_spec_utils.py:193
Function
test_velocity_mode_pid
P-only velocity tracking: tau = K * kp * (target - qdot) / R.
tests/test_builtin_dcmotor_actuator.py:221
Function
test_velocity_only
Zero pos target, joint at rest: qfrc = kd * vel_target.
tests/test_builtin_pd_actuator.py:133
Function
test_velocity_tasks_have_twist_command
All velocity tasks should have a velocity command.
tests/test_velocity_task.py:41
Function
test_viscous_damping_default_preserves_xml
viscous_damping=None preserves XML joint damping (0.8).
tests/test_actuator.py:270
Function
test_viscous_damping_explicit_overrides_xml
Explicit viscous_damping overrides XML damping.
tests/test_actuator.py:281
Function
test_viscous_damping_explicit_zero_overrides_xml
Explicit 0.0 overrides XML damping (distinguishes None from 0.0).
tests/test_actuator.py:294
Function
test_viscous_damping_produces_passive_force
Nonzero viscous_damping produces a dissipative passive force.
tests/test_actuator.py:307
Function
test_viser_builds_per_world_mesh_handles_for_variants
Viser dynamic meshes must not collapse all worlds onto env0's mesh.
tests/test_variants.py:1276
Function
test_viser_convex_hulls_are_per_variant
Convex-hull handles must differ across variants, not all show env0's hull.
tests/test_variants.py:1402
Function
test_visual_collision_split_inertia_matches_independent_compile
Per-world body_mass matches independent compile when variants have visual+collision split. This verifies the slot-driven reference compile preserve
tests/test_variants.py:902
Function
test_voltage_mode_rejects_pid_gains
()
tests/test_builtin_dcmotor_actuator.py:460
Function
test_voltage_mode_steady_state
At rest, ctrl = V -> tau = K * V / R.
tests/test_builtin_dcmotor_actuator.py:144
Function
test_voltage_mode_voltage_limit_zero_is_noop
Docstring promises ``voltage_limit=0`` disables clamping. Verify against MuJoCo's ``dcmotor_voltage`` (which only clamps when ``Vmax > 0``).
tests/test_builtin_dcmotor_actuator.py:159
Function
test_wildcard_warns_about_unactuated_namespaces
Wildcard matching joints should warn about unactuated tendons.
tests/test_entity.py:812
Function
test_world_up_identity_gives_max_reward
Perfectly upright robot on flat ground → reward ≈ 1.
tests/test_velocity_rewards.py:99
Function
test_world_up_tilted_gives_lower_reward
30° roll → reward significantly below 1.
tests/test_velocity_rewards.py:107
Function
test_write_no_traversal_escape
Asset keys with path traversal must not escape the output directory.
tests/test_scene.py:206
Function
test_write_root_com_velocity
COM velocity write must produce the same qvel as manual conversion.
tests/test_entity_data.py:155
Function
test_write_skips_unreferenced_assets
write() only includes assets referenced in the generated XML.
tests/test_scene.py:194
Function
test_write_velocity_uses_qpos_not_xquat
Test write_root_velocity uses qpos (not stale xquat). Writing pose then velocity without forward() must work. This would fail if write_root_veloc
tests/test_entity_data.py:125
Function
test_write_zip
Test exporting scene to zip file.
tests/test_scene.py:185
Function
test_xml_actuator_auto_detection_rejects_general_actuator
Auto-detection raises for non-standard actuators when command_field is None.
tests/test_xml_actuator.py:168
Function
test_xml_actuator_explicit_command_field_bypasses_detection
Explicit command_field allows non-standard XML actuators.
tests/test_xml_actuator.py:146
Function
test_xml_actuator_no_matching_actuators_raises_error
XmlActuator raises error when no targets have matching XML actuators.
tests/test_xml_actuator.py:61
Function
test_xml_actuator_underactuated_with_wildcard
XmlActuator filters to joints with XML actuators when using wildcard.
tests/test_xml_actuator.py:44
Function
test_xml_actuator_with_internal_attach_prefix
XML actuator matches targets through internal attach prefix.
tests/test_actuator.py:141
Function
test_xml_armature_frictionloss_preserved_by_default
Builtin actuator preserves XML armature/frictionloss when not set.
tests/test_actuator.py:178
Function
test_xml_sensors_auto_discovered
Verify sensors defined in entity XML are automatically discovered and exposed.
tests/test_builtin_sensor.py:275
Function
test_xpos_matches_qpos_after_forward
sim.step() leaves xpos stale; sim.forward() makes it match qpos. In MuJoCo, mj_step = mj_step1 (forward kinematics + forces) + mj_step2 (integrat
tests/test_sim.py:145
Function
test_zero_delay_returns_current
Test that delay with min_lag=max_lag=0 returns current observation.
tests/test_observation_delay.py:121
Function
tilted_grid
( **overrides: Any, )
src/mjlab/terrains/config.py:265
Function
time_out
Terminate when the episode length exceeds its maximum.
src/mjlab/envs/mdp/terminations.py:19
Method
time_outs
(self)
src/mjlab/managers/termination_manager.py:79
Function
to_camel_case
Converts a string from snake case to camel case. Args: snake_str: A string in snake case (i.e. with '_') to: Convention to conver
src/mjlab/utils/lab_api/string.py:20
Function
to_snake_case
Converts a string from camel case to snake case. Args: camel_str: A string in camel case. Returns: A string in snake case (i
src/mjlab/utils/lab_api/string.py:48
Method
to_tuple
Convert to tuple representation.
src/mjlab/utils/color.py:15
Method
to_zip
Deprecated. Use ``write(output_dir, zip=True)`` instead.
src/mjlab/scene/scene.py:88
Method
to_zip
Write the MjSpec to a zip file.
src/mjlab/entity/entity.py:642
Method
total_action_dim
(self)
src/mjlab/managers/action_manager.py:106
Function
track_angular_velocity
Reward heading error for heading-controlled envs, angular velocity for others. The commanded xy angular velocities are assumed to be zero.
src/mjlab/tasks/velocity/mdp/rewards.py:47
Function
track_linear_velocity
Reward for tracking the commanded base linear velocity. The commanded z velocity is assumed to be zero.
src/mjlab/tasks/velocity/mdp/rewards.py:27
Function
tracking_task_ids
Get all tracking task IDs.
tests/test_tracking_task.py:12
Function
transform_points
r"""Transform input points in a given frame to a target frame. This function transform points from a source frame to a target frame. The transfor
src/mjlab/utils/lab_api/math.py:962
Function
transform_poses_from_frame_A_to_frame_B
Transforms poses from one coordinate frame to another preserving relative poses. Args: src_poses: Input pose sequence (shape [T, 4, 4]) f
src/mjlab/utils/lab_api/math.py:1848
Method
transmission_type
Transmission type of this actuator.
src/mjlab/actuator/actuator.py:189
Function
unique_obs_func
(env)
tests/test_observation_delay.py:384
Function
unproject_depth
r"""Un-project depth image into a pointcloud. This function converts orthogonal or perspective depth images into points given the calibration mat
src/mjlab/utils/lab_api/math.py:1131
Function
unscale_transform
De-normalizes a given input tensor from range of [-1, 1] to (lower, upper). .. note:: It uses pytorch broadcasting functionality to deal
src/mjlab/utils/lab_api/math.py:52
Method
unwrapped
Get the unwrapped environment.
src/mjlab/utils/wrappers/video_recorder.py:77
Method
unwrapped
(self)
src/mjlab/viewer/base.py:107
Method
unwrapped
(self)
src/mjlab/viewer/viser/overlays.py:24
Method
unwrapped
(self)
src/mjlab/rl/vecenv_wrapper.py:48
Method
unwrapped
Get the unwrapped environment (base case for wrapper chains).
src/mjlab/envs/manager_based_rl_env.py:286
Method
unwrapped
(self)
tests/test_viser_update_policy.py:36
Method
update
Update renderer with simulation data.
src/mjlab/viewer/offscreen_renderer.py:78
Method
update
( self, sim_data, env_idx: int = 0, scene_offset: np.ndarray | None = None )
src/mjlab/viewer/viser/camera_viewer.py:154
Method
update
Push new data and refresh visible plots.
src/mjlab/viewer/viser/term_plotter.py:193
Method
update
Push latest camera images/frustums to GUI.
src/mjlab/viewer/viser/overlays.py:162
Method
update
Push new values and re-render the bars. Args: terms: List of ``(term_name, value_array)`` tuples.
src/mjlab/viewer/viser/reward_bar_panel.py:52
Method
update
Update actuator state after a simulation step. Base implementation does nothing. Override in subclasses that need per-step updates. Args
src/mjlab/actuator/actuator.py:377
Method
update
(self, dt: float)
src/mjlab/sensor/contact_sensor.py:371
Function
variant_a
()
tests/test_variants.py:533
Function
variant_b_slide
()
tests/test_variants.py:536
← previous
next →
2,701–2,800 of 2,812, ranked by callers