MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

↓ 1 callersMethodcompute
(self, env_ids: torch.Tensor | slice | None = None)
src/mjlab/managers/curriculum_manager.py:112
↓ 1 callersMethodcompute
(self, dt: float)
src/mjlab/managers/command_manager.py:109
↓ 1 callersMethodcompute
(self)
src/mjlab/managers/metrics_manager.py:224
↓ 1 callersMethodcompute_group
( self, group_name: str, update_history: bool = False )
src/mjlab/managers/observation_manager.py:320
↓ 1 callersFunctioncompute_pose_error
Compute the position and orientation error between source and target frames. Args: t01: Position of source frame. Shape is (N, 3).
src/mjlab/utils/lab_api/math.py:867
↓ 1 callersFunctioncompute_viewports
Lay plots in a strip on the right.
src/mjlab/viewer/native/viewer.py:703
↓ 1 callersFunctioncopy_material_data
Copy material data from *src* to *dst*. Copies appearance settings (rgba, specular, shininess, ...) and texture bindings. The ``name`` field is N
src/mjlab/utils/spec.py:523
↓ 1 callersFunctioncopy_mesh_data
Copy mesh geometry from *src* to *dst*. Copies vertex/face data, file path, scale, reference frame, and smoothing settings. The ``name`` field is
src/mjlab/utils/spec.py:464
↓ 1 callersFunctioncopy_texture_data
Copy texture data from *src* to *dst*. Copies the file path or builtin/data fields, format, dimensions, and color settings. The ``name`` field is
src/mjlab/utils/spec.py:491
↓ 1 callersFunctioncopysign
Create a new floating-point tensor with the magnitude of input and the sign of other, element-wise. Note: The implementation follows from
src/mjlab/utils/lab_api/math.py:129
↓ 1 callersMethodcreate_debug_vis_gui
Add per-term debug visualization checkboxes.
src/mjlab/managers/command_manager.py:203
↓ 1 callersFunctioncreate_env_cfg
( pattern: Literal["grid", "pinhole"], alignment: Literal["base", "yaw", "world"], )
scripts/demos/raycast_sensor.py:79
↓ 1 callersFunctioncreate_env_cfg
()
scripts/demos/body_impulse.py:100
↓ 1 callersFunctioncreate_muscle_actuator
Create a MuJoCo <muscle> actuator with muscle dynamics. Muscles use special activation dynamics and force-length-velocity curves. They can actuat
src/mjlab/utils/spec.py:412
↓ 1 callersMethoddebug_vis
(self, visualizer: "DebugVisualizer")
src/mjlab/managers/command_manager.py:60
↓ 1 callersMethoddecrease_speed
(self)
src/mjlab/viewer/base.py:252
↓ 1 callersFunctiondisable_collision
Disables collision for a geom.
src/mjlab/utils/spec.py:223
↓ 1 callersFunctiondownload_with_progress
Download file with progress bar.
src/mjlab/scripts/gcs.py:32
↓ 1 callersMethodedit_spec
(self, spec: mujoco.MjSpec)
src/mjlab/utils/spec_config.py:88
↓ 1 callersMethodedit_spec
(self, spec: mujoco.MjSpec)
src/mjlab/utils/spec_config.py:329
↓ 1 callersMethodedit_spec
(self, spec: mujoco.MjSpec)
src/mjlab/utils/spec_config.py:370
↓ 1 callersFunctionensure_default_checkpoint
Ensure default checkpoint is available and return its absolute path.
src/mjlab/scripts/gcs.py:98
↓ 1 callersFunctionensure_default_motion
Ensure default motion file is available and return its absolute path.
src/mjlab/scripts/gcs.py:104
↓ 1 callersFunctionexpand_model_fields
( model: mjwarp.Model, nworld: int, fields_to_expand: list[str], )
src/mjlab/sim/randomization.py:20
↓ 1 callersMethodexport_policy_to_onnx
Export policy to ONNX format using legacy export path. Overrides the base implementation to set dynamo=False, avoiding warnings about dynamic
src/mjlab/rl/runner.py:34
↓ 1 callersFunctionexport_scene
Export a task scene or entity to a directory.
src/mjlab/scripts/export_scene.py:37
↓ 1 callersFunctionexport_spec
Write a spec's XML and referenced mesh assets to a directory. Creates ``scene.xml`` and an ``assets/`` subdirectory containing only the assets re
src/mjlab/utils/spec.py:66
↓ 1 callersFunctionfactory
(env)
tests/test_action_manager.py:21
↓ 1 callersMethodfinalize
Post-graph: compute raycast hit positions.
src/mjlab/sensor/sensor_context.py:118
↓ 1 callersMethodfind_geoms
(self, query_names: tuple[str, ...], preserve_order: bool = False)
tests/test_scene_entity_config.py:55
↓ 1 callersMethodfind_sites
(self, query_names: tuple[str, ...], preserve_order: bool = False)
tests/test_scene_entity_config.py:58
↓ 1 callersFunctionfind_tyro_cli_calls
Find all tyro.cli() calls and check if they have TYRO_FLAGS. Returns a list of (filepath, line_number, has_tyro_flags) tuples.
tests/test_tyro_flags.py:12
↓ 1 callersFunctionfoot_height
Per-foot vertical clearance above terrain. Returns: Tensor of shape [B, F] where F is the number of frames (feet).
src/mjlab/tasks/velocity/mdp/observations.py:14
↓ 1 callersMethodforward
(self, x, time_step)
src/mjlab/tasks/tracking/rl/runner.py:32
↓ 1 callersMethodfrom_existing
Wrap an existing sensor already defined in entity XML.
src/mjlab/sensor/builtin_sensor.py:294
↓ 1 callersMethodfrom_intrinsic_matrix
Create from 3x3 intrinsic matrix [fx, 0, cx, 0, fy, cy, 0, 0, 1]. Args: intrinsic_matrix: Flattened 3x3 intrinsic matrix. width: Imag
src/mjlab/sensor/raycast_sensor.py:138
↓ 1 callersFunctiongenerate_dashboard_html
Generate the HTML dashboard content.
scripts/benchmarks/generate_report.py:89
↓ 1 callersFunctiongenerate_html_report
Generate static HTML dashboard from evaluation data.
scripts/benchmarks/generate_report.py:63
↓ 1 callersFunctiongenerate_random_rotation
Generates a random rotation matrix using Euler angles. Args: rot_boundary: Range for random rotation angles around each axis (x, y, z).
src/mjlab/utils/lab_api/math.py:1875
↓ 1 callersFunctiongenerate_random_translation
Generates a random translation vector. Args: pos_boundary: Range for random translation values in 3D space. Returns: 3-eleme
src/mjlab/utils/lab_api/math.py:1902
↓ 1 callersMethodgenerate_rays
Generate ray pattern. Args: mj_model: MuJoCo model (unused for grid pattern). device: Device for tensor operations. Returns:
src/mjlab/sensor/raycast_sensor.py:65
↓ 1 callersMethodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/curriculum_manager.py:76
↓ 1 callersFunctionget_checkpoint_path
Get path to model checkpoint in input directory. The checkpoint file is resolved as: `<log_path>/<run_dir>/<checkpoint>`. If `run_dir` and `chec
src/mjlab/utils/os.py:23
↓ 1 callersFunctionget_cube_spec
( cube_size: float = 0.02, mass: float = 0.05, rgba: tuple[float, float, float, float] = (0.8, 0.2, 0.2,
src/mjlab/tasks/manipulation/config/yam/env_cfgs.py:27
↓ 1 callersMethodget_depth
Get depth data for a camera. Args: cam_idx: MuJoCo camera ID. Returns: Tensor of shape [num_envs, height, width, 1] (float32).
src/mjlab/sensor/sensor_context.py:161
↓ 1 callersFunctionget_free_joint
Returns the free joint. None if no free joint exists.
src/mjlab/utils/spec.py:213
↓ 1 callersFunctionget_git_commit
Get current git commit SHA.
scripts/benchmarks/measure_throughput.py:171
↓ 1 callersMethodget_next_state
Gets the next state of the motion.
src/mjlab/scripts/csv_to_npz.py:153
↓ 1 callersMethodget_observations
(self)
src/mjlab/viewer/base.py:109
↓ 1 callersMethodget_observations
(self)
src/mjlab/rl/vecenv_wrapper.py:64
↓ 1 callersMethodget_rgb
Get unpacked RGB data for a camera. Args: cam_idx: MuJoCo camera ID. Returns: Tensor of shape [num_envs, height, width, 3] (uint
src/mjlab/sensor/sensor_context.py:123
↓ 1 callersMethodget_segmentation
Get per-pixel segmentation data for a camera. Args: cam_idx: MuJoCo camera ID. Returns: Tensor of shape [num_envs, height, width
src/mjlab/sensor/sensor_context.py:193
↓ 1 callersMethodget_term
Always raises KeyError since there are no terms.
src/mjlab/managers/recorder_manager.py:249
↓ 1 callersMethodget_term_cfg
(self, group_name: str, term_name: str)
src/mjlab/managers/observation_manager.py:231
↓ 1 callersFunctionhf_pyramid_slope
( **overrides: Any, )
src/mjlab/terrains/config.py:72
↓ 1 callersFunctionhf_pyramid_slope_inv
( **overrides: Any, )
src/mjlab/terrains/config.py:85
↓ 1 callersFunctionimport_packages
Import all sub-packages in a package recursively. It is easier to use this function to import all sub-packages in a package recursively than to m
src/mjlab/utils/lab_api/tasks/importer.py:15
↓ 1 callersMethodincrease_speed
(self)
src/mjlab/viewer/base.py:247
↓ 1 callersFunctioninterpolate_rotations
Interpolates between two rotation matrices. Args: R1: First rotation matrix. (4x4). R2: Second rotation matrix. (4x4). nu
src/mjlab/utils/lab_api/math.py:1732
↓ 1 callersFunctionis_lambda_expression
Checks if the input string is a lambda expression. Args: name: The input string. Returns: Whether the input string is a lamb
src/mjlab/utils/lab_api/string.py:92
↓ 1 callersMethodis_running
(self)
src/mjlab/viewer/base.py:203
↓ 1 callersFunctionlaunch_training
(task_id: str, args: TrainConfig | None = None)
src/mjlab/scripts/train.py:182
↓ 1 callersFunctionload_cached_results
Load previously evaluated results from cache.
scripts/benchmarks/generate_report.py:779
↓ 1 callersMethodload_managers
Load and initialize all managers. Order is important! Event and command managers must be loaded first, then action and observation managers,
src/mjlab/envs/manager_based_rl_env.py:299
↓ 1 callersFunctionload_throughput_data
Load throughput benchmark data if available.
scripts/benchmarks/generate_report.py:54
↓ 1 callersFunctionmain
()
src/mjlab/scripts/play.py:300
↓ 1 callersFunctionmain
()
src/mjlab/scripts/list_envs.py:43
↓ 1 callersFunctionmain
()
src/mjlab/scripts/visualize_terrain.py:94
↓ 1 callersFunctionmain
()
src/mjlab/scripts/train.py:230
↓ 1 callersFunctionmain
()
src/mjlab/scripts/export_scene.py:75
↓ 1 callersFunctionmain
CLI entry point for viz-nan command.
src/mjlab/scripts/nan_viz.py:172
↓ 1 callersFunctionmain
Run demo with pretrained tracking policy.
src/mjlab/scripts/demo.py:14
↓ 1 callersFunctionmain
()
src/mjlab/tasks/tracking/scripts/evaluate.py:211
↓ 1 callersFunctionmain
()
scripts/tools/terrain_explorer.py:59
↓ 1 callersFunctionmain
()
scripts/tools/render_terrain_gallery.py:292
↓ 1 callersFunctionmain
()
scripts/demos/differential_ik.py:39
↓ 1 callersFunctionmain
()
scripts/demos/contact_sensor_decimation.py:255
↓ 1 callersFunctionmain
Run throughput benchmarks on all configured tasks.
scripts/benchmarks/measure_throughput.py:211
↓ 1 callersFunctionmain
()
typings/postprocess_stubs.py:97
↓ 1 callersFunctionmake_empty_figure
( title: str, grid_size: tuple[int, int], yrange: tuple[float, float], history: int, alpha: float, )
src/mjlab/viewer/native/viewer.py:729
↓ 1 callersFunctionmake_plane
Create finite plane using box geometry. Uses box instead of MuJoCo plane to avoid infinite extent in terrain grids. Thickness prevents penetratio
src/mjlab/terrains/utils.py:113
↓ 1 callersFunctionmake_pose
Creates transformation matrices from positions and rotation matrices. Args: pos: Batch of position vectors with last dimension of 3.
src/mjlab/utils/lab_api/math.py:1612
↓ 1 callersFunctionmake_tracking_env_cfg
Create base tracking task configuration.
src/mjlab/tasks/tracking/tracking_env_cfg.py:40
↓ 1 callersFunctionmeasure_env_sps
Measure full environment step throughput in env steps per second.
scripts/benchmarks/measure_throughput.py:105
↓ 1 callersFunctionmeasure_physics_sps
Measure raw physics stepping in env steps per second. Runs num_steps worth of physics (i.e., num_steps * decimation sim.step calls) and reports t
scripts/benchmarks/measure_throughput.py:83
↓ 1 callersFunctionorthogonalize_perspective_depth
Converts perspective depth image to orthogonal depth image. Perspective depth images contain distances measured from the camera's optical center.
src/mjlab/utils/lab_api/math.py:1039
↓ 1 callersFunctionpatch_init
()
typings/postprocess_stubs.py:70
↓ 1 callersFunctionperlin
(x, y, p)
src/mjlab/terrains/heightfield_terrains.py:152
↓ 1 callersFunctionpose_inv
Computes the inverse of transformation matrices. The inverse of a pose matrix [R t; 0 1] is [R.T -R.T*t; 0 1]. Args: pose: Batch of
src/mjlab/utils/lab_api/math.py:1648
↓ 1 callersMethodpostprocess_rays
POST-GRAPH: Convert Warp outputs to PyTorch, compute hit positions.
src/mjlab/sensor/raycast_sensor.py:771
↓ 1 callersMethodprefixed_name
The sensor name as it appears in the MuJoCo model.
src/mjlab/sensor/sensor.py:28
↓ 1 callersMethodprepare
Pre-graph: transform rays to world frame.
src/mjlab/sensor/sensor_context.py:113
↓ 1 callersMethodprepare_rays
PRE-GRAPH: Transform local rays to world frame. Reads body/site/geom poses via PyTorch and writes world-frame ray origins and directions into
src/mjlab/sensor/raycast_sensor.py:691
↓ 1 callersMethodprocess
Classify actuators into builtin groups and custom actuators. Non-delayed builtins go into direct index groups. Delayed builtins with matching
src/mjlab/actuator/builtin_group.py:77
↓ 1 callersFunctionpyramid_stairs_inv
( **overrides: Any, )
src/mjlab/terrains/config.py:58
↓ 1 callersFunctionquat_box_minus
The box-minus operator (quaternion difference) between two quaternions. Args: q1: The first quaternion in (w, x, y, z). Shape is (N, 4).
src/mjlab/utils/lab_api/math.py:590
↓ 1 callersFunctionquat_unique
Convert a unit quaternion to a standard form where the real part is non-negative. Quaternion representations have a singularity since ``q`` and `
src/mjlab/utils/lab_api/math.py:152
↓ 1 callersFunctionrandom_rough
( **overrides: Any, )
src/mjlab/terrains/config.py:99
↓ 1 callersMethodrandomize_env_origins
Randomize the environment origins to random sub-terrains.
src/mjlab/terrains/terrain_entity.py:236
↓ 1 callersMethodraycast_kernel
IN-GRAPH: Execute BVH-accelerated raycast kernel.
src/mjlab/sensor/raycast_sensor.py:749
← previousnext →701–800 of 2,812, ranked by callers