MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

↓ 1 callersMethodrecord_post_reset
Forward to each term's :meth:`RecorderTerm.record_post_reset`.
src/mjlab/managers/recorder_manager.py:197
↓ 1 callersMethodrecord_post_reset
(self, env_ids: torch.Tensor)
src/mjlab/managers/recorder_manager.py:258
↓ 1 callersMethodrecord_post_step
(self)
src/mjlab/managers/recorder_manager.py:261
↓ 1 callersMethodrecord_pre_reset
(self, env_ids: torch.Tensor)
src/mjlab/managers/recorder_manager.py:255
↓ 1 callersMethodrecreate
Recreate the render context after model fields are expanded. Called by Simulation.expand_model_fields() for domain randomization.
src/mjlab/sensor/sensor_context.py:100
↓ 1 callersFunctionreflect_rotary_to_linear
Reflect rotary motor properties through a transmission to linear joint properties. Converts motor specs from rotary coordinates (rad, rad/s, Nm) to
src/mjlab/utils/actuator.py:50
↓ 1 callersFunctionremove_backend_stubs
()
typings/postprocess_stubs.py:61
↓ 1 callersFunctionrender_terrain
Generate and render a single terrain type, return RGB array.
scripts/tools/render_terrain_gallery.py:211
↓ 1 callersMethodrequest_reset_speed
(self)
src/mjlab/viewer/base.py:235
↓ 1 callersMethodreset
Reset bias values for specified environments.
src/mjlab/utils/noise/noise_model.py:63
↓ 1 callersMethodreset
(self)
src/mjlab/rl/vecenv_wrapper.py:68
↓ 1 callersMethodreset
(self, env_ids: torch.Tensor | slice | None)
src/mjlab/managers/command_manager.py:99
↓ 1 callersMethodreset
(self, env_ids: torch.Tensor | None = None)
src/mjlab/managers/metrics_manager.py:218
↓ 1 callersMethodreset
(self, env_ids: torch.Tensor)
src/mjlab/tasks/velocity/mdp/rewards.py:112
↓ 1 callersMethodreset
Zero actuator targets and reset actuator internal state. Called by the scene when environments are reset at episode boundaries, and by comman
src/mjlab/entity/entity.py:824
↓ 1 callersMethodreset_environment
Extend BaseViewer.reset_environment to clear reward and metrics histories.
src/mjlab/viewer/viser/viewer.py:526
↓ 1 callersFunctionreset_root_state_uniform
Reset root state for floating-base or mocap fixed-base entities. For floating-base entities: Resets pose and velocity via write_root_state_to_sim()
src/mjlab/envs/mdp/events.py:111
↓ 1 callersMethodreset_speed
(self)
src/mjlab/viewer/base.py:257
↓ 1 callersMethodreset_to_frame
Reset to exact reference state at a specific frame. Like ``_resample_command`` but deterministic: no random perturbations to pose, velocity,
src/mjlab/tasks/tracking/mdp/commands.py:567
↓ 1 callersFunctionresolve_field
( field: Any, names: tuple[str, ...], default_val: Any = None )
src/mjlab/utils/string.py:32
↓ 1 callersFunctionrun_analysis
Run the analysis comparing instantaneous vs history contact detection.
scripts/demos/contact_sensor_decimation.py:156
↓ 1 callersFunctionrun_no_history
Read instantaneous contact at the end of each policy step.
scripts/demos/contact_sensor_decimation.py:79
↓ 1 callersFunctionrun_sim
( sim: Simulation, scene: Scene, joint_names, input_file, input_fps, output_fps, output_name,
src/mjlab/scripts/csv_to_npz.py:183
↓ 1 callersFunctionrun_train
(task_id: str, cfg: TrainConfig, log_dir: Path)
src/mjlab/scripts/train.py:49
↓ 1 callersFunctionrun_viewer
Launch a Viser viewer showing the bouncing ball with contact forces.
scripts/demos/contact_sensor_decimation.py:120
↓ 1 callersFunctionrun_with_history
Read full substep history to catch mid-decimation contacts.
scripts/demos/contact_sensor_decimation.py:95
↓ 1 callersFunctionsample_gaussian
Sample using gaussian distribution. Args: mean: Mean of the gaussian. std: Std of the gaussian. size: The shape of the te
src/mjlab/utils/lab_api/math.py:1413
↓ 1 callersFunctionsample_log_uniform
r"""Sample using log-uniform distribution within a range. The log-uniform distribution is defined as a uniform distribution in the log-space. It
src/mjlab/utils/lab_api/math.py:1382
↓ 1 callersFunctionsanitize_machine_specific
()
typings/postprocess_stubs.py:84
↓ 1 callersFunctionsave_results
Save benchmark results to JSON, appending to existing data.
scripts/benchmarks/measure_throughput.py:185
↓ 1 callersFunctionseen
(p, m={})
src/mjlab/utils/lab_api/tasks/importer.py:62
↓ 1 callersMethodset_site_effort_target
Set site effort targets. Args: effort: Target site efforts with shape (N, num_sites). site_ids: Optional site indices to set. If None
src/mjlab/entity/entity.py:1104
↓ 1 callersMethodset_tendon_effort_target
Set tendon effort targets. Args: effort: Target tendon efforts with shape (N, num_tendons). tendon_ids: Optional tendon indices to se
src/mjlab/entity/entity.py:1085
↓ 1 callersMethodset_tendon_len_target
Set tendon length targets. Args: length: Target tendon lengths with shape (N, num_tendons). tendon_ids: Optional tendon indices to se
src/mjlab/entity/entity.py:1047
↓ 1 callersMethodset_tendon_vel_target
Set tendon velocity targets. Args: velocity: Target tendon velocities with shape (N, num_tendons). tendon_ids: Optional tendon indice
src/mjlab/entity/entity.py:1066
↓ 1 callersMethodsetup
(self)
src/mjlab/viewer/base.py:195
↓ 1 callersMethodsetup
Setup the viewer GUI and scene.
src/mjlab/scripts/nan_viz.py:63
↓ 1 callersMethodsetup_controls
Create camera feed controls under the active GUI folder.
src/mjlab/viewer/viser/overlays.py:147
↓ 1 callersMethodsetup_manager_visualizers
(self)
src/mjlab/envs/manager_based_rl_env.py:292
↓ 1 callersMethodsetup_tabs
Create rewards/metrics tabs based on available managers.
src/mjlab/viewer/viser/overlays.py:53
↓ 1 callersMethodstep
(self, actions: torch.Tensor)
src/mjlab/viewer/base.py:110
↓ 1 callersMethodstep
( self, actions: torch.Tensor )
src/mjlab/rl/vecenv_wrapper.py:72
↓ 1 callersFunctionstring_to_callable
Resolves the module and function names to return the function. Args: name: The function name. The format should be 'module:attribute_name
src/mjlab/utils/lab_api/string.py:138
↓ 1 callersMethodsync_env_to_viewer
(self)
src/mjlab/viewer/base.py:197
↓ 1 callersFunctiontest_basic_functionality
Test that mjlab can create and close an environment.
tests/smoke_test.py:15
↓ 1 callersFunctiontile
(x: wp.array)
src/mjlab/sim/randomization.py:28
↓ 1 callersMethodto_dict
(self)
scripts/benchmarks/measure_throughput.py:47
↓ 1 callersMethodtoggle_pause
(self)
src/mjlab/viewer/base.py:274
↓ 1 callersMethodunpack_rgb
Unpack packed uint32 RGB data into separate channels. Called from Simulation._sense_kernel() so it gets captured in the CUDA graph. No-op if
src/mjlab/sensor/sensor_context.py:369
↓ 1 callersMethodupdate
Update term plots from the selected environment.
src/mjlab/viewer/viser/overlays.py:98
↓ 1 callersMethodupdate
Update sensor state after a simulation step. Invalidates the data cache. Override in subclasses that need per-step updates, but call `super()
src/mjlab/sensor/sensor.py:141
↓ 1 callersMethodupdate_env_origins
Update the environment origins based on the terrain levels.
src/mjlab/terrains/terrain_entity.py:216
↓ 1 callersMethodupdate_from_mjdata
Update scene and sync debug visualizations.
src/mjlab/viewer/viser/scene.py:382
↓ 1 callersMethodvalidate
(self)
src/mjlab/utils/spec_config.py:103
↓ 1 callersMethodvalidate
(self)
src/mjlab/utils/spec_config.py:152
↓ 1 callersMethodwatch
Context manager that captures state before and checks for NaN/Inf after. Usage: with nan_guard.watch(wp_data): mjwarp.step(wp_model
src/mjlab/utils/nan_guard.py:78
↓ 1 callersFunctionwave_terrain
(**overrides: Any)
src/mjlab/terrains/config.py:112
↓ 1 callersFunctionwrap_to_pi
r"""Wraps input angles (in radians) to the range :math:`[-\pi, \pi]`. This function wraps angles in radians to the range :math:`[-\pi, \pi]`, suc
src/mjlab/utils/lab_api/math.py:104
↓ 1 callersMethodwrite_external_wrench
( self, force: torch.Tensor | None, torque: torch.Tensor | None, body_ids: Sequence[int] | sli
src/mjlab/entity/data.py:176
↓ 1 callersMethodwrite_joint_state
( self, position: torch.Tensor, velocity: torch.Tensor, joint_ids: torch.Tensor | slice | None
src/mjlab/entity/data.py:135
↓ 1 callersMethodwrite_mocap_pose
( self, pose: torch.Tensor, env_ids: torch.Tensor | slice | None = None )
src/mjlab/entity/data.py:205
↓ 1 callersMethodwrite_root_com_velocity
( self, velocity: torch.Tensor, env_ids: torch.Tensor | slice | None = None )
src/mjlab/entity/data.py:118
↓ 1 callersMethodwrite_root_com_velocity_to_sim
Set the root COM velocity into the simulation. Args: root_velocity: Tensor of shape (N, 6) where N is the number of environments. C
src/mjlab/entity/entity.py:916
↓ 1 callersMethodwrite_root_state
( self, root_state: torch.Tensor, env_ids: torch.Tensor | slice | None = None )
src/mjlab/entity/data.py:85
↓ 1 callersMethodwrite_xml
Write the MjSpec to disk. Operates on a copy of the spec to avoid mutating the original.
src/mjlab/entity/entity.py:633
↓ 1 callersFunctionyam_lift_cube_ppo_runner_cfg
()
src/mjlab/tasks/manipulation/config/yam/rl_cfg.py:21
↓ 1 callersFunctionyam_multi_cube_seg_ppo_runner_cfg
()
src/mjlab/tasks/manipulation/config/yam/rl_cfg.py:107
Function_
(event, name=field.name)
src/mjlab/scripts/visualize_terrain.py:398
Function_
(client: viser.ClientHandle)
scripts/tools/terrain_explorer.py:105
Method_
(_)
src/mjlab/viewer/viser/viewer.py:133
Method_
(_)
src/mjlab/viewer/viser/term_plotter.py:103
Method_
(_)
src/mjlab/viewer/viser/scene.py:823
Method_
(_)
src/mjlab/scripts/nan_viz.py:78
Method_
(_ev, _s=slider, _m=max_input)
src/mjlab/tasks/velocity/mdp/velocity_command.py:182
Method_
(_)
src/mjlab/tasks/tracking/mdp/commands.py:530
Method__abs__
(self)
src/mjlab/sim/sim_data.py:143
Method__add__
(self, other: Any)
src/mjlab/sim/sim_data.py:107
Method__call__
Apply noise and additive bias to input data.
src/mjlab/utils/noise/noise_model.py:80
Method__call__
(self, obs: torch.Tensor)
src/mjlab/viewer/base.py:116
Method__call__
Returns the value of the term required by the manager.
src/mjlab/managers/manager_base.py:89
Method__call__
(self)
src/mjlab/managers/recorder_manager.py:132
Method__call__
Tick impulse state: expire old impulses, trigger new ones. Args: env: The environment instance. env_ids: Unused (step events always o
src/mjlab/envs/mdp/events.py:467
Method__call__
( self, env: ManagerBasedRlEnv, std, asset_cfg: SceneEntityCfg )
src/mjlab/envs/mdp/rewards.py:122
Method__call__
(self, env: ManagerBasedRlEnv, asset_cfg: SceneEntityCfg)
src/mjlab/envs/mdp/rewards.py:144
Method__call__
( self, env: ManagerBasedRlEnv, env_ids: torch.Tensor, reward_name: str, stages: list[Rewa
src/mjlab/envs/mdp/curriculums.py:140
Method__call__
( self, env: ManagerBasedRlEnv, env_ids: torch.Tensor, termination_name: str, stages: list
src/mjlab/envs/mdp/curriculums.py:179
Method__call__
(self, obs)
src/mjlab/scripts/play.py:189
Method__call__
(self, obs)
src/mjlab/scripts/play.py:197
Method__call__
( self, env: ManagerBasedRlEnv, std: float, asset_cfg: SceneEntityCfg = _DEFAULT_ASSET_CFG,
src/mjlab/tasks/velocity/mdp/rewards.py:84
Method__call__
( self, env: ManagerBasedRlEnv, sensor_name: str, height_sensor_name: str, target_height:
src/mjlab/tasks/velocity/mdp/rewards.py:285
Method__call__
( self, env: ManagerBasedRlEnv, std_standing, std_walking, std_running, asset_cfg: Sce
src/mjlab/tasks/velocity/mdp/rewards.py:429
Method__call__
(self, obs)
scripts/demos/flat_patch_terrain.py:102
Method__call__
(self, obs)
scripts/demos/raycast_sensor.py:212
Method__call__
(self, obs)
scripts/demos/raycast_sensor.py:233
Method__call__
(self, obs: object)
scripts/demos/body_impulse.py:146
Method__call__
(self, env, **kwargs)
tests/test_rewards.py:54
Method__call__
(self, env, **kwargs)
tests/test_rewards.py:69
Method__call__
(self, env)
tests/test_manager_config_immutability.py:48
Method__call__
(self, env)
tests/test_manager_config_immutability.py:58
Method__call__
(self, env, **kwargs)
tests/test_metrics_manager.py:21
← previousnext →801–900 of 2,812, ranked by callers