MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

↓ 1 callersMethod_add_flat_patch_sites
(self)
src/mjlab/terrains/terrain_entity.py:303
↓ 1 callersMethod_add_grid_lights
(self, spec: mujoco.MjSpec)
src/mjlab/terrains/terrain_generator.py:360
↓ 1 callersMethod_add_initial_state_keyframe
(self)
src/mjlab/entity/entity.py:323
↓ 1 callersMethod_add_sensors
(self)
src/mjlab/scene/scene.py:266
↓ 1 callersMethod_add_terrain
(self)
src/mjlab/scene/scene.py:247
↓ 1 callersMethod_add_terrain_border
(self, spec: mujoco.MjSpec)
src/mjlab/terrains/terrain_generator.py:333
↓ 1 callersMethod_add_terrain_origin_sites
(self)
src/mjlab/terrains/terrain_entity.py:281
↓ 1 callersMethod_append_point
Append a new point to the ring buffer.
src/mjlab/viewer/native/viewer.py:640
↓ 1 callersMethod_apply_actuator_controls
(self)
src/mjlab/entity/entity.py:1260
↓ 1 callersMethod_apply_spec_editors
(self)
src/mjlab/entity/entity.py:188
↓ 1 callersFunction_axis_angle_rotation
Return the rotation matrices for one of the rotations about an axis of which Euler angles describe, for each value of the angle given. Args:
src/mjlab/utils/lab_api/math.py:375
↓ 1 callersMethod_build_default_root_state
Build default root state tensor, uniform across all worlds.
src/mjlab/entity/entity.py:1167
↓ 1 callersFunction_build_perturbation_U
Build the upper-triangular perturbation matrix U from 10 parameters. .. code-block:: U = e^alpha * [[e^d1, s12, s13, t1],
src/mjlab/envs/mdp/dr/body.py:239
↓ 1 callersMethod_build_selector_gui
Build flat checkboxes with a filter input for term selection.
src/mjlab/viewer/viser/term_plotter.py:90
↓ 1 callersMethod_build_spec
(self)
src/mjlab/entity/entity.py:156
↓ 1 callersFunction_build_terrain_mesh
Generate a single terrain patch and return a merged trimesh (or raise).
scripts/tools/terrain_explorer.py:33
↓ 1 callersFunction_central_fd_orientation
Central finite-difference rotation Jacobian via axis-angle.
tests/test_differential_ik_action.py:290
↓ 1 callersFunction_central_fd_position
Central finite-difference position Jacobian.
tests/test_differential_ik_action.py:269
↓ 1 callersFunction_check_reserved_names
(spec: mujoco.MjSpec, variant_name: str)
src/mjlab/entity/variants.py:430
↓ 1 callersFunction_cholesky_4x4
Analytical Cholesky for batched 4x4 SPD matrices. Avoids ``torch.linalg.cholesky`` (and the cuSOLVER library it loads), which allocates several G
src/mjlab/envs/mdp/dr/body.py:39
↓ 1 callersMethod_clip_effort
(self, effort: torch.Tensor)
src/mjlab/actuator/dc_actuator.py:140
↓ 1 callersMethod_clip_effort
(self, effort: torch.Tensor)
src/mjlab/actuator/pd_actuator.py:108
↓ 1 callersFunction_collapse_defaults
Collapse duplicate nested defaults with the same class name. MjSpec.to_xml() emits ``<default class="X"><default class="X">...`` after ``attach(p
src/mjlab/utils/xml.py:37
↓ 1 callersFunction_collect_notebook_imports
Return (imports, written_modules) where imports is a list of (cell_index, module, name) tuples for every ``from mjlab... import`` in the notebook,
tests/test_notebooks.py:76
↓ 1 callersFunction_collect_written_modules
Return the set of mjlab modules the notebook creates via %%writefile.
tests/test_notebooks.py:62
↓ 1 callersFunction_color_for
(index: int)
src/mjlab/viewer/viser/term_plotter.py:28
↓ 1 callersFunction_colorize_segmentation
Map typed segmentation pairs to distinct RGB colors.
src/mjlab/viewer/viser/camera_viewer.py:16
↓ 1 callersFunction_compare_body_signatures
( ref_variant: str, ref: BodySignature, other_variant: str, other: BodySignature, )
src/mjlab/entity/variants.py:503
↓ 1 callersFunction_compare_geoms_for_body
Compare geoms within a matching body across two variants. Mesh geoms may differ in count per ``(body, role)``; they form padded slots and are not
src/mjlab/entity/variants.py:464
↓ 1 callersFunction_compare_inertial_modes
( ref_variant: str, ref_modes: dict[str, InertialMode], other_variant: str, other_modes: dict[str, Ine
src/mjlab/entity/variants.py:553
↓ 1 callersMethod_compute_camera_fov_aspect
(self)
src/mjlab/viewer/viser/camera_viewer.py:104
↓ 1 callersMethod_compute_data
Compute and return the sensor data. Subclasses must implement this method to compute the sensor's data. This is called by the `data` property
src/mjlab/sensor/sensor.py:114
↓ 1 callersMethod_compute_env_origins_grid
( self, num_envs: int, env_spacing: float )
src/mjlab/terrains/terrain_entity.py:367
↓ 1 callersMethod_compute_frame_blend
Computes the frame blend for the motion.
src/mjlab/scripts/csv_to_npz.py:113
↓ 1 callersMethod_compute_indexing
(self, model: mujoco.MjModel, device: str)
src/mjlab/entity/entity.py:1179
↓ 1 callersMethod_compute_render_extent
Compute a stable extent for offscreen rendering. MuJoCo scales z-near/z-far and shadow clip with ``model.stat.extent``. In large scenes this
src/mjlab/viewer/offscreen_renderer.py:240
↓ 1 callersFunction_compute_slot_metadata
Compute slot list and per-variant slot specs. Walks each variant's body tree, buckets mesh geoms by ``(body_path, role)``, and assigns ordinals d
src/mjlab/entity/variants.py:775
↓ 1 callersMethod_compute_velocities
Computes the velocities of the motion.
src/mjlab/scripts/csv_to_npz.py:123
↓ 1 callersFunction_cone_4col_spec
Cone: 1 visual + 4 collision geoms (more than sphere).
tests/test_variants.py:58
↓ 1 callersFunction_configure_29
Configure PyTorch CUDA and cuDNN backends for PyTorch 2.9+.
src/mjlab/utils/torch.py:30
↓ 1 callersMethod_configure_gym_env_spaces
(self)
src/mjlab/envs/manager_based_rl_env.py:522
↓ 1 callersFunction_configure_mediapy
Point mediapy at the bundled imageio-ffmpeg binary.
src/mjlab/__init__.py:65
↓ 1 callersFunction_configure_pre29
Configure PyTorch CUDA and cuDNN backends for PyTorch <2.9.
src/mjlab/utils/torch.py:38
↓ 1 callersFunction_configure_warp
Configure Warp globally for mjlab.
src/mjlab/__init__.py:36
↓ 1 callersFunction_contains_warp_arrays
Check if an object or its attributes contain any Warp arrays.
src/mjlab/sim/sim_data.py:167
↓ 1 callersFunction_create_geom_mesh
(mj_model: mujoco.MjModel, geom_id: int)
src/mjlab/viewer/viser/scene.py:1306
↓ 1 callersMethod_create_individual_boxes
Original approach with individual boxes.
src/mjlab/terrains/primitive_terrains.py:655
↓ 1 callersMethod_create_merged_boxes
Create merged boxes for similar heights to reduce geom count.
src/mjlab/terrains/primitive_terrains.py:555
↓ 1 callersMethod_create_reward_debug_vis_gui
Add per-reward debug visualization checkboxes.
src/mjlab/viewer/viser/viewer.py:406
↓ 1 callersMethod_create_sensor_debug_vis_gui
Add per-sensor debug visualization checkboxes.
src/mjlab/viewer/viser/viewer.py:384
↓ 1 callersFunction_cube_color
Generate a distinct color for cube i of n using HSV hue rotation.
src/mjlab/tasks/manipulation/config/yam/env_cfgs.py:168
↓ 1 callersMethod_debug_vis_impl
(self, visualizer: "DebugVisualizer")
src/mjlab/managers/command_manager.py:64
↓ 1 callersFunction_decompose_pseudo_inertia_J
Decompose pseudo-inertia matrix to MuJoCo body fields (exact). Extracts ``body_mass``, ``body_ipos``, ``body_inertia`` (principal moments), and `
src/mjlab/envs/mdp/dr/body.py:187
↓ 1 callersFunction_detect_inertial_mode
(body: mujoco.MjsBody)
src/mjlab/entity/variants.py:408
↓ 1 callersFunction_determine_target_axes
Determine which axes to randomize.
src/mjlab/envs/mdp/dr/_core.py:235
↓ 1 callersFunction_display_scale
Return a power-of-10 multiplier that brings *lo*/*hi* into a readable range. Values in [0.01, 100] render as clean decimals in MuJoCo's ``%g`` ti
src/mjlab/viewer/native/viewer.py:688
↓ 1 callersFunction_dummy_term
(mock_env)
tests/test_observation_manager.py:25
↓ 1 callersMethod_dump_buffer
Write buffered states to disk.
src/mjlab/utils/nan_guard.py:135
↓ 1 callersFunction_eigh_3x3_jacobi
Batched eigendecomposition for 3x3 symmetric matrices via Jacobi. Avoids ``torch.linalg.eigh`` (and the cuSOLVER library it loads), which allocates
src/mjlab/envs/mdp/dr/body.py:69
↓ 1 callersFunction_expected_aabb_half
Reference aabb half-size computation matching MuJoCo ComputeAABB.
tests/test_domain_randomization.py:1176
↓ 1 callersFunction_expected_projected_gravity
Ground-truth projected gravity for a body with world orientation ``q``. proj = R(q)^T @ g_world, computed from an explicit rotation matrix so it do
tests/test_projected_gravity_sensor.py:48
↓ 1 callersFunction_expected_rbound
Reference rbound computation matching MuJoCo GetRBound.
tests/test_domain_randomization.py:1161
↓ 1 callersFunction_extract_python_source
Return Python source for a cell, or None if it has no Python to parse. Handles ``%%writefile path.py`` cells by returning their body (only when the
tests/test_notebooks.py:32
↓ 1 callersFunction_extract_variant_geom_spec
Snapshot a source mesh geom's attributes for slot-aware compile.
src/mjlab/entity/variants.py:738
↓ 1 callersMethod_extract_yaw_rotation
Extract yaw-only rotation matrix (rotation around Z axis). Handles the singularity at ±90° pitch by falling back to the Y-axis when the X-axi
src/mjlab/sensor/raycast_sensor.py:829
↓ 1 callersMethod_find_actuator_for_target
Find an actuator that targets the given target.
src/mjlab/actuator/xml_actuator.py:125
↓ 1 callersMethod_find_targets
Find target IDs and names based on transmission type. Args: cfg: Action configuration. Returns: Tuple of (target_ids, target_nam
src/mjlab/envs/mdp/actions/actions.py:100
↓ 1 callersMethod_forward_paused
Hook for subclasses to run forward kinematics while paused.
src/mjlab/viewer/base.py:205
↓ 1 callersMethod_generate_curriculum_terrains
(self, spec: mujoco.MjSpec)
src/mjlab/terrains/terrain_generator.py:248
↓ 1 callersMethod_generate_random_terrains
(self, spec: mujoco.MjSpec)
src/mjlab/terrains/terrain_generator.py:213
↓ 1 callersFunction_geom_groups_to_vec6
Convert geom group tuple to mujoco_warp vec6 format. In the vec6 format, -1 means include and 0 means exclude.
src/mjlab/sensor/raycast_sensor.py:38
↓ 1 callersMethod_geom_subgroup_visual_fingerprint
( mj_model: mujoco.MjModel, geom_ids: list[int], is_mocap: bool )
src/mjlab/viewer/viser/scene.py:416
↓ 1 callersFunction_get_cartpole_cfg
(swing_up: bool = False)
src/mjlab/tasks/cartpole/cartpole_env_cfg.py:72
↓ 1 callersMethod_get_extra_env_ids
Return nearest neighboring env ids to render as context. We render a small local neighborhood around ``env_idx`` instead of the first N envir
src/mjlab/viewer/offscreen_renderer.py:133
↓ 1 callersMethod_handle_gui_reset
Reset environment(s) and apply GUI-selected command state.
src/mjlab/viewer/viser/viewer.py:320
↓ 1 callersMethod_identify_joints
(self)
src/mjlab/entity/entity.py:168
↓ 1 callersMethod_import_ground_plane
(self, name: str)
src/mjlab/terrains/terrain_entity.py:255
↓ 1 callersFunction_import_registered_packages
Auto-discover and import packages registered via entry points. Looks for packages registered under the 'mjlab.tasks' entry point group. Each disc
src/mjlab/__init__.py:46
↓ 1 callersMethod_init_delay_buffer
Create delay buffer. Called during initialize().
src/mjlab/actuator/actuator.py:261
↓ 1 callersMethod_init_reward_plots
Create per-term figures and histories.
src/mjlab/viewer/native/viewer.py:610
↓ 1 callersMethod_init_with_variants
Per-world mesh path: build model with per-world geom_dataid. ``self._mj_model`` remains a single host-side template model. The actual simulat
src/mjlab/sim/sim.py:245
↓ 1 callersMethod_initialize_bias_shape
Initialize bias tensor shape based on data and configuration.
src/mjlab/utils/noise/noise_model.py:69
↓ 1 callersMethod_interpolate_motion
Interpolates the motion to the output fps.
src/mjlab/scripts/csv_to_npz.py:69
↓ 1 callersFunction_iter_mjlab_imports
Yield (module, name) for every ``from mjlab... import name`` in source.
tests/test_notebooks.py:52
↓ 1 callersMethod_joint_dof_field
Return a generalized-force field sliced to this entity's joint DoFs.
src/mjlab/entity/data.py:237
↓ 1 callersMethod_load_motion
Loads the motion from the csv file.
src/mjlab/scripts/csv_to_npz.py:44
↓ 1 callersFunction_make_arm_spec
Helper: single-joint arm with a motor actuator.
tests/test_actuator.py:99
↓ 1 callersFunction_make_cam_light_env
Create an env with camera and light fields expanded.
tests/test_domain_randomization.py:963
↓ 1 callersFunction_make_cfg
Build a cfg with sensible PID defaults. ``extra`` forwards any other BuiltinDcMotorActuatorCfg kwarg (effort_limit, integral_gain, thermal, delay_
tests/test_builtin_dcmotor_actuator.py:53
↓ 1 callersFunction_make_env_cfg
One-step episode (time_out fires after a single step).
tests/test_recorder_manager.py:418
↓ 1 callersFunction_make_mat_env
(device, num_envs=NUM_ENVS)
tests/test_domain_randomization.py:1629
↓ 1 callersFunction_make_mock_action_term
Create a mock action term factory.
tests/test_action_manager.py:18
↓ 1 callersFunction_make_quat_env
Create an env with body_quat, geom_quat, site_quat expanded.
tests/test_domain_randomization.py:490
↓ 1 callersMethod_maybe_log_debug_timings
Log lightweight Viser pipeline timing in debug mode.
src/mjlab/viewer/viser/viewer.py:462
↓ 1 callersMethod_modify_action_space
(self)
src/mjlab/rl/vecenv_wrapper.py:96
↓ 1 callersMethod_pack
Returns (motorconst, resistance, nominal) for set_to_dcmotor.
src/mjlab/actuator/builtin_actuator.py:290
↓ 1 callersFunction_populate_dependent_fields
Populate per-world Warp arrays for the geometry-dependent fields. Compiles each variant's *source* spec in isolation (small, single-entity spec)
src/mjlab/entity/variants.py:1107
↓ 1 callersFunction_prepare_axis_ranges
Convert ranges to a consistent dictionary format.
src/mjlab/envs/mdp/dr/_core.py:267
↓ 1 callersMethod_prepare_terms
(self)
src/mjlab/managers/manager_base.py:138
↓ 1 callersMethod_print_debug
( self, sensor_name: str, field: str, intprm: list[int], kwargs: dict[str, Any], )
src/mjlab/sensor/contact_sensor.py:643
← previousnext →501–600 of 2,812, ranked by callers