MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

↓ 1 callersMethod_process_actions
Drain action queue. Runs on the main loop thread.
src/mjlab/viewer/base.py:349
↓ 1 callersFunction_proportional_counts
Distribute *num_envs* across buckets proportionally. Every bucket gets at least one when ``num_envs >= len(proportions)``. Remaining slots are al
src/mjlab/terrains/terrain_entity.py:15
↓ 1 callersFunction_quadratic_tolerance
Quadratic sigmoid tolerance: 1 at x=0, 0 at |x|>=margin.
src/mjlab/tasks/cartpole/cartpole_env_cfg.py:108
↓ 1 callersFunction_qualified_material_name
Material asset name in the merged template's namespace. Source materials are prefixed with the variant name during merge (``<variant>/<material>`
src/mjlab/entity/variants.py:1090
↓ 1 callersFunction_qualified_mesh_name
Mesh asset name in the merged template's namespace. Source mesh names are prefixed with the variant name during merge (``<variant>/<mesh>``); aft
src/mjlab/entity/variants.py:1080
↓ 1 callersFunction_quat_from_pitch
(pitch_rad: float, B: int = 1)
tests/test_velocity_rewards.py:30
↓ 1 callersFunction_quat_to_mat
Rotation matrix from a (w, x, y, z) quaternion. Independent of MuJoCo/mjlab.
tests/test_projected_gravity_sensor.py:35
↓ 1 callersMethod_queue_debug_visualizers
Queue environment-specific debug draw calls into the scene. Acquires ``_sim_lock`` so the clear+requeue is atomic with respect to the backgro
src/mjlab/viewer/viser/viewer.py:421
↓ 1 callersFunction_randomize_with_string_ranges
Resolve string-keyed ranges to entity names and recurse.
src/mjlab/envs/mdp/dr/_core.py:151
↓ 1 callersMethod_raycast_geom_groups
Compute the union of geom groups across all raycast sensors.
src/mjlab/sensor/sensor_context.py:254
↓ 1 callersMethod_rebuild_visual_handles_if_needed
(self)
src/mjlab/viewer/viser/scene.py:406
↓ 1 callersFunction_recompute_geom_bounds
Recompute ``geom_rbound`` and ``geom_aabb`` from current ``geom_size``. Only primitive types (sphere, capsule, ellipsoid, cylinder, box) are handle
src/mjlab/envs/mdp/dr/geom.py:33
↓ 1 callersFunction_reconstruct_pseudo_inertia_J
Build the 4x4 pseudo-inertia matrix J from MuJoCo body fields. 1. Rotate principal moments into body frame via ``body_iquat``. 2. Apply the paral
src/mjlab/envs/mdp/dr/body.py:137
↓ 1 callersMethod_record_frame
Record a frame from the environment. For vectorized environments, only records env[0].
src/mjlab/utils/wrappers/video_recorder.py:167
↓ 1 callersFunction_remove_empty_defaults
Remove empty ``<default/>`` and ``<default class="..."/>`` elements.
src/mjlab/utils/xml.py:66
↓ 1 callersMethod_render
(self)
src/mjlab/viewer/viser/reward_bar_panel.py:84
↓ 1 callersMethod_render_other_env_geoms
Render non-selected environments into the native viewer scene.
src/mjlab/viewer/native/viewer.py:350
↓ 1 callersMethod_resample_command
Resample the command for the specified environments.
src/mjlab/managers/command_manager.py:131
↓ 1 callersMethod_resample_command
(self, env_ids: torch.Tensor)
src/mjlab/tasks/tracking/mdp/commands.py:319
↓ 1 callersFunction_reset
()
scripts/demos/differential_ik.py:148
↓ 1 callersMethod_resolve_field
Resolve a single field's names and IDs. Args: entity: The entity to resolve against. config: Field configuration specifying attribute
src/mjlab/managers/scene_entity_config.py:150
↓ 1 callersMethod_resolve_frame
Resolve the frame element to its global ID and parent body ID.
src/mjlab/envs/mdp/actions/differential_ik.py:267
↓ 1 callersMethod_resolve_ids_to_names
Resolve IDs to their corresponding names.
src/mjlab/managers/scene_entity_config.py:247
↓ 1 callersMethod_resolve_names_to_ids
Resolve names to IDs, optimizing to slice(None) when all are selected.
src/mjlab/managers/scene_entity_config.py:226
↓ 1 callersMethod_resolve_primary_names
( self, entities: dict[str, Entity], match: ContactMatch )
src/mjlab/sensor/contact_sensor.py:510
↓ 1 callersMethod_resolve_single_secondary
( self, entities: dict[str, Entity], match: ContactMatch, policy: Literal["first", "any", "err
src/mjlab/sensor/contact_sensor.py:562
↓ 1 callersMethod_sample_lags
Sample new lags for specified environments. Args: mask: Boolean mask of shape (batch_size,) indicating which envs to sample. Returns:
src/mjlab/utils/buffers/delay_buffer.py:260
↓ 1 callersMethod_set_camera_asset_body
Track a specific body of a configured asset.
src/mjlab/viewer/native/viewer.py:591
↓ 1 callersMethod_set_camera_asset_root
Track the root body of a configured asset.
src/mjlab/viewer/native/viewer.py:580
↓ 1 callersFunction_set_root_quat
(robot, q: tuple[float, float, float, float], device: str)
tests/test_projected_gravity_sensor.py:111
↓ 1 callersMethod_set_status_overlay
(self, viewer: mujoco.viewer.Handle)
src/mjlab/viewer/native/viewer.py:245
↓ 1 callersMethod_setup_camera
Setup camera based on config's origin_type.
src/mjlab/viewer/offscreen_renderer.py:174
↓ 1 callersMethod_setup_camera
Configure native viewer camera from viewer config.
src/mjlab/viewer/native/viewer.py:533
↓ 1 callersMethod_setup_stream
Setup appropriate stream for the device.
src/mjlab/sim/sim_data.py:42
↓ 1 callersMethod_should_use_cuda_graph
Determine if CUDA graphs can be used based on device and driver version.
src/mjlab/sim/sim.py:533
↓ 1 callersFunction_simple_cone_spec
Single-geom cone for simple tests.
tests/test_variants.py:101
↓ 1 callersMethod_single_step
Advance exactly one step while paused.
src/mjlab/viewer/base.py:332
↓ 1 callersMethod_slerp
Spherical linear interpolation between two quaternions.
src/mjlab/scripts/csv_to_npz.py:104
↓ 1 callersFunction_slice_obs
Return a new obs dict containing only the rows at ``ids`` (per group).
tests/test_auto_reset.py:106
↓ 1 callersMethod_so3_derivative
Computes the derivative of a sequence of SO3 rotations. Args: rotations: shape (B, 4). dt: time step. Returns: shape (B, 3)
src/mjlab/scripts/csv_to_npz.py:135
↓ 1 callersFunction_sphere_2col_spec
Sphere: 1 visual + 2 collision geoms.
tests/test_variants.py:31
↓ 1 callersFunction_sqrt_positive_part
Returns torch.sqrt(torch.max(0, x)) but with a zero subgradient where x is 0. Reference: https://github.com/facebookresearch/pytorch3d/bl
src/mjlab/utils/lab_api/math.py:306
↓ 1 callersMethod_stabilize_tracking_camera
Pin the tracked body's subtree_com to its frame origin (xpos). MuJoCo's tracking camera centers on ``subtree_com[trackbodyid]``, which shifts
src/mjlab/viewer/native/viewer.py:382
↓ 1 callersMethod_start_recording
Start recording a new video.
src/mjlab/utils/wrappers/video_recorder.py:147
↓ 1 callersMethod_step_physics
Run physics steps for this frame's sim-time budget.
src/mjlab/viewer/base.py:304
↓ 1 callersMethod_submit_scene_update_if_needed
Submit a scene sync job when the update policy allows it.
src/mjlab/viewer/viser/viewer.py:433
↓ 1 callersFunction_subsample_indices
( total: int, max_points: int, device: torch.device )
src/mjlab/tasks/velocity/mdp/terrain_utils.py:65
↓ 1 callersFunction_suspend_gc
Temporarily disable the garbage collector. Prevents GC from finalizing stale Warp Graph objects during wp.ScopedCapture, which would record their
src/mjlab/sim/sim.py:38
↓ 1 callersMethod_sync_arrows
(self)
src/mjlab/viewer/viser/scene.py:1015
↓ 1 callersMethod_sync_boxes
(self)
src/mjlab/viewer/viser/scene.py:1159
↓ 1 callersMethod_sync_cylinders
(self)
src/mjlab/viewer/viser/scene.py:1099
↓ 1 callersMethod_sync_ellipsoids
(self)
src/mjlab/viewer/viser/scene.py:1133
↓ 1 callersMethod_sync_ghosts
Render queued ghosts as one batched handle per (model, body).
src/mjlab/viewer/viser/scene.py:1185
↓ 1 callersMethod_sync_simple_primitives
(self)
src/mjlab/viewer/viser/scene.py:1068
↓ 1 callersMethod_sync_spheres
(self)
src/mjlab/viewer/viser/scene.py:1074
↓ 1 callersMethod_transform_to_global_frame
Rotate force/torque from contact frame to global frame.
src/mjlab/sensor/contact_sensor.py:424
↓ 1 callersMethod_uniform_sampling
(self, env_ids: torch.Tensor)
src/mjlab/tasks/tracking/mdp/commands.py:292
↓ 1 callersMethod_update_air_time_tracking
(self)
src/mjlab/sensor/contact_sensor.py:445
↓ 1 callersMethod_update_camera_feeds
Push camera sensor frames to GUI when needed.
src/mjlab/viewer/viser/viewer.py:373
↓ 1 callersMethod_update_command
Update the command based on the current state.
src/mjlab/managers/command_manager.py:136
↓ 1 callersMethod_update_debug_visualizers
(self, viewer: mujoco.viewer.Handle)
src/mjlab/viewer/native/viewer.py:295
↓ 1 callersMethod_update_env_dependent_plots
Refresh reward/metric plots and histories for the selected environment.
src/mjlab/viewer/viser/viewer.py:358
↓ 1 callersMethod_update_frustum
(self, sim_data, env_idx: int, scene_offset: np.ndarray)
src/mjlab/viewer/viser/camera_viewer.py:111
↓ 1 callersMethod_update_history
Roll history buffer and insert current contact data at index 0.
src/mjlab/sensor/contact_sensor.py:492
↓ 1 callersMethod_update_lags
Update current lags according to configured policy.
src/mjlab/utils/buffers/delay_buffer.py:247
↓ 1 callersMethod_update_metrics
Update the metrics based on the current state.
src/mjlab/managers/command_manager.py:126
↓ 1 callersMethod_update_reward_figures
(self, viewer: mujoco.viewer.Handle)
src/mjlab/viewer/native/viewer.py:265
↓ 1 callersMethod_update_stats
(self)
src/mjlab/viewer/base.py:433
↓ 1 callersMethod_upsample_nearest
(self, image: np.ndarray, scale: int)
src/mjlab/viewer/viser/camera_viewer.py:145
↓ 1 callersMethod_validate_consistency
Validate that provided names and IDs are consistent. Raises: ValueError: If names and IDs don't match.
src/mjlab/managers/scene_entity_config.py:203
↓ 1 callersMethod_validate_sensor_settings
Validate that all camera sensors share render settings.
src/mjlab/sensor/sensor_context.py:230
↓ 1 callersFunction_viewer_regression_cone_spec
()
tests/test_variants.py:1695
↓ 1 callersFunction_viewer_regression_sphere_spec
()
tests/test_variants.py:1679
↓ 1 callersFunction_walk_packages
Yields ModuleInfo for all modules recursively on path, or, if path is None, all accessible modules. Note: This function is a modified version
src/mjlab/utils/lab_api/tasks/importer.py:46
↓ 1 callersMethod_write_history_to_figure
Copy history into figure and autoscale y-axis.
src/mjlab/viewer/native/viewer.py:646
↓ 1 callersMethodadd_arrow
Add an arrow visualization using MuJoCo's arrow geometry.
src/mjlab/viewer/native/visualizer.py:52
↓ 1 callersMethodadd_ghost_mesh
( self, qpos: np.ndarray | torch.Tensor, model: mujoco.MjModel, mocap_pos: np.ndarray | torch.
src/mjlab/viewer/viser/scene.py:865
↓ 1 callersFunctionadd_wandb_tags
Add tags to the current wandb run. Note: This function stores tags in wandb.config._wandb_tags if the run is not yet initialized, allowing them t
src/mjlab/utils/wandb.py:9
↓ 1 callersMethodapply_action
Write processed actions to entity actuator targets. Called on every decimation substep (physics step), not just once per policy step. Each te
src/mjlab/managers/action_manager.py:177
↓ 1 callersMethodapply_controls
Write builtin actuator controls to simulation data.
src/mjlab/actuator/builtin_group.py:175
↓ 1 callersMethodapply_delay
Delay all command targets with one shared lag. No-op without delay. Every target the policy issues (position, velocity, effort) travels the same
src/mjlab/actuator/actuator.py:275
↓ 1 callersFunctionauto_wrap_fixed_base_mocap
Wraps spec_fn to auto-wrap fixed-base entities in mocap. This enables fixed-base entities to be positioned independently per environment. Returns
src/mjlab/utils/spec.py:151
↓ 1 callersFunctionbenchmark_task
Benchmark a single task.
scripts/benchmarks/measure_throughput.py:122
↓ 1 callersMethodbuild
Build the action term from this config.
src/mjlab/managers/action_manager.py:35
↓ 1 callersMethodbuild
Build the command term from this config.
src/mjlab/managers/command_manager.py:42
↓ 1 callersMethodbuild
(self, env: ManagerBasedRlEnv)
src/mjlab/envs/mdp/actions/actions.py:184
↓ 1 callersFunctionbuild_merged_variant_spec
Merge a ``VariantEntityCfg``'s variants into a single padded template. Validates that all variants share the same kinematic structure, merges eve
src/mjlab/entity/variants.py:860
↓ 1 callersFunctioncamera_segmentation
Per-pixel typed segmentation in (B, 2, H, W) format.
src/mjlab/tasks/manipulation/mdp/observations.py:119
↓ 1 callersFunctioncamera_target_cube_mask
Binary mask of the target cube selected by a MultiCubeLiftingCommand. Output shape: (B, 1, H, W) float32.
src/mjlab/tasks/manipulation/mdp/observations.py:130
↓ 1 callersMethodcapture
Capture current simulation state to buffer.
src/mjlab/utils/nan_guard.py:58
↓ 1 callersMethodcheck_and_dump
Check for NaN/Inf and dump buffer if detected. Returns: True if NaN/Inf detected and dump occurred, False otherwise.
src/mjlab/utils/nan_guard.py:116
↓ 1 callersMethodclear
(self)
src/mjlab/viewer/viser/overlays.py:38
↓ 1 callersMethodclear
(self)
tests/test_viser_update_policy.py:24
↓ 1 callersMethodclear_cache
Clear the wrapped cache to force re-wrapping of arrays. This should be called after operations that modify the underlying warp arrays, such a
src/mjlab/sim/sim_data.py:240
↓ 1 callersMethodclear_debug_all
(self)
src/mjlab/viewer/viser/overlays.py:37
↓ 1 callersMethodclose
Called when the environment closes. Release file handles, flush write buffers, or finalize output here.
src/mjlab/managers/recorder_manager.py:126
↓ 1 callersMethodclose
Forward to each term's :meth:`RecorderTerm.close`.
src/mjlab/managers/recorder_manager.py:207
↓ 1 callersMethodclose
(self)
src/mjlab/managers/recorder_manager.py:264
↓ 1 callersMethodclose
(self)
tests/test_recorder_manager.py:45
↓ 1 callersMethodcollect_variant_info
Collect variant metadata for entities with mesh variants.
src/mjlab/scene/scene.py:135
← previousnext →601–700 of 2,812, ranked by callers