MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

↓ 2 callersMethoddebug_vis
Draw arrows for active impulse forces.
src/mjlab/envs/mdp/events.py:554
↓ 2 callersFunctiondetect_command_field
Detect which ``ActuatorCmd`` field an XML actuator expects as ctrl input. Uses strict predicates that match the invariants set by MuJoCo's ``mjs_
src/mjlab/utils/mujoco.py:63
↓ 2 callersMethoddetect_nans
Detect NaN/Inf values in physics state (qpos, qvel, qacc, qacc_warmstart). Args: data: MuJoCo simulation data containing physics state.
src/mjlab/utils/nan_guard.py:90
↓ 2 callersMethoddevice
(self)
src/mjlab/scene/scene.py:132
↓ 2 callersFunctiondof_width
Get the dimensionality of the joint in qvel.
src/mjlab/utils/mujoco.py:82
↓ 2 callersMethodedit_spec
(self, spec: mujoco.MjSpec)
src/mjlab/utils/spec_config.py:132
↓ 2 callersFunctionensure_asset_downloaded
Download and verify an asset if needed.
src/mjlab/scripts/gcs.py:67
↓ 2 callersFunctionevaluate_run
Evaluate a single run and return metrics with metadata.
scripts/benchmarks/generate_report.py:31
↓ 2 callersFunctionfade
(t)
src/mjlab/terrains/heightfield_terrains.py:141
↓ 2 callersFunctionfilter_exp
Filter names based on regex patterns.
src/mjlab/utils/string.py:24
↓ 2 callersMethodfind_tendons
( self, name_keys: str | Sequence[str], tendon_subset: Sequence[str] | None = None, preserve_o
src/mjlab/entity/entity.py:569
↓ 2 callersFunctionflat
(**overrides: Any)
src/mjlab/terrains/config.py:41
↓ 2 callersMethodflush
(self)
tests/test_variants.py:1332
↓ 2 callersFunctionformat_time_ago
Format a duration in seconds as a human-readable time-ago string.
src/mjlab/viewer/viser/viewer.py:50
↓ 2 callersMethodfrom_task
(task_id: str)
src/mjlab/scripts/train.py:43
↓ 2 callersFunctionget_go1_robot_cfg
Get a fresh Go1 robot configuration instance. Returns a new EntityCfg instance each time to avoid mutation issues when the config is shared acros
src/mjlab/asset_zoo/robots/unitree_go1/go1_constants.py:134
↓ 2 callersMethodget_term_cfg
Get the configuration of a specific event term by name.
src/mjlab/managers/event_manager.py:208
↓ 2 callersMethodget_visualizable_terms
Return ``(name, func)`` pairs for class-based terms with debug_vis.
src/mjlab/managers/reward_manager.py:140
↓ 2 callersFunctiongroup
(bias: float)
tests/test_observation_noise.py:248
↓ 2 callersFunctionhsv_to_rgb
Convert HSV to RGB color space. Args: hsv: HSV color representation. Returns: RGB color tuple with values in range [0, 1].
src/mjlab/utils/color.py:88
↓ 2 callersMethodinitialize
(self)
src/mjlab/viewer/offscreen_renderer.py:69
↓ 2 callersFunctionjoint_torques_l2
Penalize joint torques applied on the articulation using L2 squared kernel.
src/mjlab/envs/mdp/rewards.py:32
↓ 2 callersFunctionmake_lift_cube_env_cfg
Create base cube lifting task configuration.
src/mjlab/tasks/manipulation/lift_cube_env_cfg.py:23
↓ 2 callersFunctionmake_velocity_env_cfg
Create base velocity tracking task configuration.
src/mjlab/tasks/velocity/velocity_env_cfg.py:39
↓ 2 callersFunctionmatrix_from_euler
Convert rotations given as Euler angles (intrinsic) in radians to rotation matrices. Args: euler_angles: Euler angles in radians. Sh
src/mjlab/utils/lab_api/math.py:406
↓ 2 callersFunctionmaybe_print_top_level_help
Print a top-level usage message and exit if argv is bare -h/--help. The ``train`` and ``play`` entrypoints use a two-stage tyro parse with ``add_
src/mjlab/scripts/_cli.py:6
↓ 2 callersFunctionnon_default_option_fields
Return option field names that differ from MjSpec defaults.
src/mjlab/utils/spec.py:52
↓ 2 callersMethodon_env_switch
Reset debug visuals when switching selected environment.
src/mjlab/viewer/viser/overlays.py:184
↓ 2 callersMethodon_env_switch
Request a scene refresh when switching environments with contacts enabled.
src/mjlab/viewer/viser/overlays.py:212
↓ 2 callersMethodon_viewer_pause
Called when the viewer pause state changes.
src/mjlab/managers/command_manager.py:84
↓ 2 callersFunctionpose_in_A_to_pose_in_B
Converts poses from one coordinate frame to another. Transforms matrices representing point C in frame A to matrices representing the same po
src/mjlab/utils/lab_api/math.py:1674
↓ 2 callersMethodprefixed_name
Get the full name with entity prefix if applicable.
src/mjlab/sensor/builtin_sensor.py:188
↓ 2 callersFunctionqpos_width
Get the dimensionality of the joint in qpos.
src/mjlab/utils/mujoco.py:89
↓ 2 callersFunctionquat_slerp
Performs spherical linear interpolation (SLERP) between two quaternions. This function does not support batch processing. Args: q1:
src/mjlab/utils/lab_api/math.py:1696
↓ 2 callersMethodqueue
Queue environment debug visualizers for the current frame.
src/mjlab/viewer/viser/overlays.py:189
↓ 2 callersFunctionrebuild_gui
()
src/mjlab/scripts/visualize_terrain.py:328
↓ 2 callersMethodrecord_post_reset
(self, env_ids: torch.Tensor)
tests/test_recorder_manager.py:165
↓ 2 callersMethodrecord_post_step
Called at the end of every ``env.step()`` with fresh observations. At this point ``obs_buf`` holds the new observation for every environment and
src/mjlab/managers/recorder_manager.py:113
↓ 2 callersMethodrecord_post_step
(self)
tests/test_recorder_manager.py:135
↓ 2 callersMethodrecord_pre_reset
Called in ``env.step()`` before terminated environments are reset. **What is available:** - ``obs_buf`` contains the observation from the *e
src/mjlab/managers/recorder_manager.py:69
↓ 2 callersMethodrecord_pre_reset
(self, env_ids: torch.Tensor)
tests/test_recorder_manager.py:131
↓ 2 callersFunctionreflected_inertia
Compute reflected inertia of a single-stage gearbox.
src/mjlab/utils/actuator.py:17
↓ 2 callersMethodrequest_reset
(self)
src/mjlab/viewer/base.py:220
↓ 2 callersMethodrequest_speed_down
(self)
src/mjlab/viewer/base.py:232
↓ 2 callersMethodrequest_speed_up
(self)
src/mjlab/viewer/base.py:229
↓ 2 callersMethodrequest_toggle_pause
(self)
src/mjlab/viewer/base.py:223
↓ 2 callersMethodreset
(self, env_ids: torch.Tensor | None = None)
src/mjlab/sim/sim.py:473
↓ 2 callersMethodreset
(self)
src/mjlab/viewer/base.py:111
↓ 2 callersMethodreset
( self, env_ids: torch.Tensor | slice | None = None )
src/mjlab/managers/termination_manager.py:88
↓ 2 callersMethodreset
(self, env_ids: torch.Tensor | slice | None = None)
src/mjlab/managers/action_manager.py:140
↓ 2 callersMethodreset
( self, env_ids: torch.Tensor | slice | None = None )
src/mjlab/managers/reward_manager.py:100
↓ 2 callersMethodresume
(self)
src/mjlab/viewer/base.py:267
↓ 2 callersFunctionrgb_to_hsv
Convert RGB to HSV color space. Args: rgb: RGB color tuple with values in range [0, 1]. Returns: HSV color representation.
src/mjlab/utils/color.py:53
↓ 2 callersFunctionrun_evaluate
Run policy evaluation and compute metrics.
src/mjlab/tasks/tracking/scripts/evaluate.py:50
↓ 2 callersFunctionrun_play
(task_id: str, cfg: PlayConfig)
src/mjlab/scripts/play.py:59
↓ 2 callersMethodseed
(self, seed: int = -1)
src/mjlab/rl/vecenv_wrapper.py:61
↓ 2 callersMethodseed
(seed: int = -1)
src/mjlab/envs/manager_based_rl_env.py:507
↓ 2 callersFunctionseeded_assignment
(seed: int)
tests/test_variants.py:229
↓ 2 callersMethodset_context
(self, ctx: SensorContext)
src/mjlab/sensor/camera_sensor.py:208
↓ 2 callersMethodset_effort_limit
Set effort limits for specified environments. Args: env_ids: Environment indices to update. effort_limit: New effort limits. Shape: (
src/mjlab/actuator/pd_actuator.py:138
↓ 2 callersMethodset_gains
Set PD gains for specified environments. Args: env_ids: Environment indices to update. kp: New proportional gains. Shape: (num_envs,
src/mjlab/actuator/pd_actuator.py:112
↓ 2 callersFunctionspec_fn
()
tests/test_entity.py:467
↓ 2 callersMethodstep
Step the environment and optionally record video. Args: action: Action tensor. Returns: Tuple of (obs, reward, terminated, t
src/mjlab/utils/wrappers/video_recorder.py:85
↓ 2 callersMethodsync_viewer_to_env
(self)
src/mjlab/viewer/base.py:199
↓ 2 callersMethodtick
Advance one tick: drain actions, step physics, maybe render. Returns True when a render frame was produced, False otherwise.
src/mjlab/viewer/base.py:368
↓ 2 callersFunctionunitree_g1_ppo_runner_cfg
Create RL runner configuration for Unitree G1 velocity task.
src/mjlab/tasks/velocity/config/g1/rl_cfg.py:10
↓ 2 callersFunctionunitree_g1_tracking_ppo_runner_cfg
Create RL runner configuration for Unitree G1 tracking task.
src/mjlab/tasks/tracking/config/g1/rl_cfg.py:10
↓ 2 callersFunctionunitree_go1_ppo_runner_cfg
Create RL runner configuration for Unitree Go1 velocity task.
src/mjlab/tasks/velocity/config/go1/rl_cfg.py:10
↓ 2 callersFunctionunmake_pose
Splits transformation matrices into positions and rotation matrices. Args: pose: Batch of pose matrices with last 2 dimensions of (4, 4).
src/mjlab/utils/lab_api/math.py:1633
↓ 2 callersMethodupdate_env_idx
Update the displayed environment index.
src/mjlab/viewer/viser/term_plotter.py:147
↓ 2 callersMethodupdate_relative_body_poses
Recompute ``body_pos_relative_w`` and ``body_quat_relative_w``. Called after ``reset_to_frame`` so that termination checks that compare relat
src/mjlab/tasks/tracking/mdp/commands.py:377
↓ 2 callersFunctionupdate_robots
()
src/mjlab/scripts/visualize_terrain.py:124
↓ 2 callersMethodupdate_scene
()
src/mjlab/viewer/viser/viewer.py:447
↓ 2 callersMethodupdate_visualizers
(self, visualizer: DebugVisualizer)
src/mjlab/envs/manager_based_rl_env.py:514
↓ 2 callersMethodvalidate
Optional validation method to be overridden by subclasses.
src/mjlab/utils/spec_config.py:60
↓ 2 callersMethodvalidate
Validate collision configuration parameters.
src/mjlab/utils/spec_config.py:200
↓ 2 callersFunctionvalidate_variant_specs
Validate that all variant specs share the same kinematic topology. Performs recursive body-tree, joint, and primitive-geom comparison; spec-level
src/mjlab/entity/variants.py:631
↓ 2 callersFunctionverify_file_hash
Verify file integrity using SHA256.
src/mjlab/scripts/gcs.py:54
↓ 2 callersMethodwrite_joint_position
( self, position: torch.Tensor, joint_ids: torch.Tensor | slice | None = None, env_ids: torch.
src/mjlab/entity/data.py:148
↓ 2 callersMethodwrite_joint_velocity
( self, velocity: torch.Tensor, joint_ids: torch.Tensor | slice | None = None, env_ids: torch.
src/mjlab/entity/data.py:162
↓ 2 callersMethodwrite_root_pose
( self, pose: torch.Tensor, env_ids: torch.Tensor | slice | None = None )
src/mjlab/entity/data.py:95
↓ 2 callersFunctionyam_lift_cube_vision_ppo_runner_cfg
()
src/mjlab/tasks/manipulation/config/yam/rl_cfg.py:59
↓ 2 callersFunctionyam_multi_cube_seg_env_cfg
Multi-cube task: depth + segmentation mask for goal conditioning.
src/mjlab/tasks/manipulation/config/yam/env_cfgs.py:175
↓ 2 callersFunctionyaw_quat
Extract the yaw component of a quaternion. Args: quat: The orientation in (w, x, y, z). Shape is (..., 4) Returns: A quatern
src/mjlab/utils/lab_api/math.py:566
↓ 1 callersMethod__call__
Apply noise to input data.
src/mjlab/utils/noise/noise_model.py:29
↓ 1 callersMethod__init__
( self, noise_model_cfg: noise_cfg.NoiseModelCfg, num_envs: int, device: str )
src/mjlab/utils/noise/noise_model.py:15
↓ 1 callersMethod__init__
(self, cfg: RecorderTermCfg, env: ManagerBasedRlEnv)
src/mjlab/managers/recorder_manager.py:65
↓ 1 callersMethod__init__
(self, cfg: ActionTermCfg, env: ManagerBasedRlEnv)
src/mjlab/managers/action_manager.py:47
↓ 1 callersMethod__init__
(self, cfg: CommandTermCfg, env: ManagerBasedRlEnv)
src/mjlab/managers/command_manager.py:50
↓ 1 callersMethod__init__
(self, cfg: LiftingCommandCfg, env: ManagerBasedRlEnv)
src/mjlab/tasks/manipulation/mdp/commands.py:24
↓ 1 callersMethod__init__
( self, motion_file: str, body_indexes: torch.Tensor, device: str = "cpu" )
src/mjlab/tasks/tracking/mdp/commands.py:37
↓ 1 callersMethod__init__
(self, actor, motion)
src/mjlab/tasks/tracking/rl/runner.py:21
↓ 1 callersMethod__init__
(self, cfg, env)
tests/test_recorder_manager.py:252
↓ 1 callersMethod__setitem__
Set item(s) in the tensor using standard indexing.
src/mjlab/sim/sim_data.py:67
↓ 1 callersMethod_adaptive_sampling
(self, env_ids: torch.Tensor)
src/mjlab/tasks/tracking/mdp/commands.py:249
↓ 1 callersMethod_add_actuators
(self)
src/mjlab/entity/entity.py:199
↓ 1 callersMethod_add_contact_sensor_to_spec
( self, scene_spec: mujoco.MjSpec, sensor_name: str, primary_name: str, secondary_name: st
src/mjlab/sensor/contact_sensor.py:613
↓ 1 callersMethod_add_entities
(self)
src/mjlab/scene/scene.py:208
↓ 1 callersMethod_add_env_origin_sites
(self)
src/mjlab/terrains/terrain_entity.py:262
↓ 1 callersMethod_add_env_selection_marker
Draw a downward arrow above the selected environment.
src/mjlab/viewer/native/viewer.py:304
← previousnext →401–500 of 2,812, ranked by callers