Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mujocolab/mjlab
/ functions
Functions
2,812 in github.com/mujocolab/mjlab
⨍
Functions
2,812
◇
Types & classes
316
↳
Endpoints
15
Function
reset_root_state_from_flat_patches
Reset root state by placing the asset on a randomly chosen flat patch. Selects a random flat patch from the terrain for each environment and positi
src/mjlab/envs/mdp/events.py:193
Function
reset_scene_to_default
Reset all entities in the scene to their default states. For floating-base entities: Resets root state (position, orientation, velocities). For f
src/mjlab/envs/mdp/events.py:71
Function
reward_func
(env, asset_cfg)
tests/test_manager_config_immutability.py:159
Function
rigid_body_twist_transform
r"""Transform the linear and angular velocity of a rigid body between reference frames. Given the twist of 0 relative to frame 0, this function c
src/mjlab/utils/lab_api/math.py:794
Function
rising_metric
(env)
tests/test_metrics_manager.py:131
Function
rising_then_falling
(env)
tests/test_metrics_manager.py:248
Function
rng
()
tests/test_perlin_terrain.py:11
Function
rng
()
tests/test_flat_patch_sampling.py:18
Method
robot_anchor_ang_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:211
Method
robot_anchor_lin_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:207
Method
robot_anchor_pos_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:199
Method
robot_anchor_quat_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:203
Method
robot_body_ang_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:195
Method
robot_body_lin_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:191
Function
robot_body_ori_b
(env: ManagerBasedRlEnv, command_name: str)
src/mjlab/tasks/tracking/mdp/observations.py:58
Function
robot_body_pos_b
(env: ManagerBasedRlEnv, command_name: str)
src/mjlab/tasks/tracking/mdp/observations.py:44
Method
robot_body_pos_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:183
Method
robot_body_quat_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:187
Function
robot_entity_cfg
Entity config for a robot.
tests/test_scene.py:60
Function
robot_entity_xml
Robot entity XML for testing.
tests/test_scene.py:35
Method
robot_joint_pos
(self)
src/mjlab/tasks/tracking/mdp/commands.py:175
Method
robot_joint_vel
(self)
src/mjlab/tasks/tracking/mdp/commands.py:179
Function
robot_with_floor_xml
XML for a floating body above a ground plane.
tests/conftest.py:177
Function
robot_with_xml_sensors
XML for robot with sensors already defined in the XML.
tests/test_builtin_sensor.py:47
Function
robot_xml
()
tests/test_dc_actuator.py:21
Function
robot_xml
Simple robot with geoms and joints.
tests/test_sim.py:19
Function
robot_xml
()
tests/test_actuator.py:29
Function
robot_xml
()
tests/test_pd_actuator.py:21
Method
root_body
(self)
src/mjlab/entity/entity.py:505
Method
root_body_id
(self)
src/mjlab/entity/entity.py:65
Method
root_com_ang_vel_b
Root COM angular velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:610
Method
root_com_ang_vel_w
Root COM angular velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:483
Method
root_com_lin_vel_b
Root COM linear velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:605
Method
root_com_lin_vel_w
Root COM linear velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:478
Method
root_com_pos_w
Root COM position in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:468
Method
root_com_pose_w
Root center-of-mass pose in world frame. Shape (num_envs, 7).
src/mjlab/entity/data.py:264
Method
root_com_quat_w
Root COM quaternion in world frame. Shape (num_envs, 4).
src/mjlab/entity/data.py:473
Method
root_com_vel_w
Root center-of-mass velocity in world frame. Shape (num_envs, 6).
src/mjlab/entity/data.py:274
Function
root_height_below_minimum
Terminate when the asset's root height is below the minimum height.
src/mjlab/envs/mdp/terminations.py:35
Method
root_link_ang_vel_b
Root link angular velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:600
Method
root_link_ang_vel_w
Root link angular velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:463
Method
root_link_lin_vel_b
Root link linear velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:595
Method
root_link_lin_vel_w
Root link linear velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:458
Method
root_link_pos_w
Root link position in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:448
Method
root_link_pose_w
Root link pose in world frame. Shape (num_envs, 7).
src/mjlab/entity/data.py:245
Method
root_link_quat_w
Root link quaternion in world frame. Shape (num_envs, 4).
src/mjlab/entity/data.py:453
Method
root_link_vel_w
Root link velocity in world frame. Shape (num_envs, 6).
src/mjlab/entity/data.py:252
Function
rough_velocity_task_ids
Get all rough terrain velocity task IDs.
tests/test_velocity_task.py:30
Function
rpm_to_rad
Convert revolutions per minute to radians per second.
src/mjlab/utils/actuator.py:37
Function
run_viewer
View NaN dump states in Viser. Args: dump_path: Path to nan_dump_TIMESTAMP.npz file.
src/mjlab/scripts/nan_viz.py:161
Function
sample_cylinder
Sample 3D points uniformly on a cylinder's surface. The cylinder is centered at the origin and aligned with the z-axis. The height of the cylinde
src/mjlab/utils/lab_api/math.py:1435
Function
sample_triangle
Randomly samples tensor from a triangular distribution. Args: lower: The lower range of the sampled tensor. upper: The upper rang
src/mjlab/utils/lab_api/math.py:1336
Function
saturate
Clamps a given input tensor to (lower, upper). It uses pytorch broadcasting functionality to deal with batched input. Args: x: Input
src/mjlab/utils/lab_api/math.py:73
Method
save
(self, path: str, infos=None)
src/mjlab/tasks/velocity/rl/runner.py:14
Method
save
(self, path: str, infos=None)
src/mjlab/tasks/manipulation/rl/runner.py:14
Method
save
(self, path: str, infos=None)
src/mjlab/tasks/tracking/rl/runner.py:92
Function
scalar_state_func
(env, env_ids)
tests/test_curriculum_manager.py:29
Method
scale
Action scale.
src/mjlab/envs/mdp/actions/actions.py:125
Function
scale_transform
Normalizes a given input tensor to a range of [-1, 1]. .. note:: It uses pytorch broadcasting functionality to deal with batched input.
src/mjlab/utils/lab_api/math.py:31
Function
scene_with_entities_cfg
Scene configuration with multiple entities.
tests/test_scene.py:75
Function
seed_rng
Seed all random number generators for reproducibility. Note: MuJoCo Warp is not fully deterministic yet. See: https://github.com/google-deepmind/
src/mjlab/utils/random.py:9
Function
self_collision_cost
Penalize self-collisions. When the sensor provides force history (from ``history_length > 0``), counts substeps where any contact force exceeds *
src/mjlab/tasks/velocity/mdp/rewards.py:162
Function
self_collision_cost
Penalize self-collisions. When the sensor provides force history (from ``history_length > 0``), counts substeps where any contact force exceeds *
src/mjlab/tasks/tracking/mdp/rewards.py:116
Method
sensor_context
Shared sensing resources, or None if no cameras/raycasts.
src/mjlab/scene/scene.py:158
Method
sensors
(self)
src/mjlab/scene/scene.py:120
Method
set_context
Wire this sensor to a SensorContext for BVH-accelerated raycasting.
src/mjlab/sensor/raycast_sensor.py:564
Method
set_lags
Set lag values for specified environments. Args: lags: Lag values to set. Shape: (num_batch_ids,) or scalar. batch_ids: Batch indices
src/mjlab/utils/buffers/delay_buffer.py:180
Function
setup
(app)
docs/conf.py:197
Method
setup
Setup MuJoCo viewer resources.
src/mjlab/viewer/native/viewer.py:158
Method
setup
Setup the viewer resources.
src/mjlab/viewer/viser/viewer.py:92
Method
setup
(self)
tests/test_viewer_tick.py:23
Method
show_contact_forces
(self)
src/mjlab/viewer/viser/overlays.py:35
Method
show_contact_points
(self)
src/mjlab/viewer/viser/overlays.py:33
Function
simple_entity_cfg
Entity config for a simple box.
tests/test_scene.py:54
Function
simple_entity_xml
Simple entity XML for testing.
tests/test_scene.py:29
Function
simple_model
Create a simple MuJoCo model for testing.
tests/test_nan_guard.py:17
Function
simple_model
()
tests/test_terminations.py:20
Function
simple_obs_func
Create a simple observation function that returns a counter.
tests/test_observation_history.py:33
Function
simple_obs_func
Create a simple observation function that returns a counter.
tests/test_observation_delay.py:33
Function
simple_robot_xml
Minimal robot XML for testing.
tests/test_spec_config.py:16
Method
site_ang_vel_w
Site angular velocities in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:576
Method
site_lin_vel_w
Site linear velocities in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:571
Method
site_names
(self)
src/mjlab/entity/entity.py:435
Function
site_pos
Randomize site positions.
src/mjlab/envs/mdp/dr/site.py:25
Method
site_pos_w
Site positions in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:561
Method
site_pose_w
Site pose in world frame. Shape (num_envs, num_sites, 7).
src/mjlab/entity/data.py:345
Function
site_quat
Randomize site orientation by composing an RPY perturbation. Ranges are in radians. The sampled perturbation is composed with the default quatern
src/mjlab/envs/mdp/dr/site.py:52
Method
site_quat_w
Site quaternions in world frame. Shape (num_envs, num_sites, 4).
src/mjlab/entity/data.py:566
Method
site_vel_w
Site velocity in world frame. Shape (num_envs, num_sites, 6).
src/mjlab/entity/data.py:353
Function
skew_symmetric_matrix
Computes the skew-symmetric matrix of a vector. Args: vec: The input vector. Shape is (3,) or (N, 3). Returns: The skew-symm
src/mjlab/utils/lab_api/math.py:703
Function
skip_member
(app, what, name, obj, skip, options)
docs/conf.py:173
Function
slow_step
()
tests/test_viewer_tick.py:255
Function
soft_landing
Penalize high impact forces at landing to encourage soft footfalls.
src/mjlab/tasks/velocity/mdp/rewards.py:356
Method
spec
(self)
src/mjlab/scene/scene.py:100
Method
spec
(self)
src/mjlab/entity/entity.py:405
Function
spec_fn
()
tests/test_builtin_dcmotor_actuator.py:500
Function
spec_fn
()
tests/test_builtin_pd_actuator.py:250
Function
spec_fn
()
tests/test_actions.py:72
Function
spec_with_continuous_joint
Create a spec with a continuous (unlimited) hinge joint.
tests/test_spec_utils.py:158
Function
spec_with_limited_joint
Create a spec with a limited joint for testing.
tests/test_spec_utils.py:11
← previous
next →
1,801–1,900 of 2,812, ranked by callers