MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

Functionreset_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
Functionreset_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
Functionreward_func
(env, asset_cfg)
tests/test_manager_config_immutability.py:159
Functionrigid_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
Functionrising_metric
(env)
tests/test_metrics_manager.py:131
Functionrising_then_falling
(env)
tests/test_metrics_manager.py:248
Functionrng
()
tests/test_perlin_terrain.py:11
Functionrng
()
tests/test_flat_patch_sampling.py:18
Methodrobot_anchor_ang_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:211
Methodrobot_anchor_lin_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:207
Methodrobot_anchor_pos_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:199
Methodrobot_anchor_quat_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:203
Methodrobot_body_ang_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:195
Methodrobot_body_lin_vel_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:191
Functionrobot_body_ori_b
(env: ManagerBasedRlEnv, command_name: str)
src/mjlab/tasks/tracking/mdp/observations.py:58
Functionrobot_body_pos_b
(env: ManagerBasedRlEnv, command_name: str)
src/mjlab/tasks/tracking/mdp/observations.py:44
Methodrobot_body_pos_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:183
Methodrobot_body_quat_w
(self)
src/mjlab/tasks/tracking/mdp/commands.py:187
Functionrobot_entity_cfg
Entity config for a robot.
tests/test_scene.py:60
Functionrobot_entity_xml
Robot entity XML for testing.
tests/test_scene.py:35
Methodrobot_joint_pos
(self)
src/mjlab/tasks/tracking/mdp/commands.py:175
Methodrobot_joint_vel
(self)
src/mjlab/tasks/tracking/mdp/commands.py:179
Functionrobot_with_floor_xml
XML for a floating body above a ground plane.
tests/conftest.py:177
Functionrobot_with_xml_sensors
XML for robot with sensors already defined in the XML.
tests/test_builtin_sensor.py:47
Functionrobot_xml
()
tests/test_dc_actuator.py:21
Functionrobot_xml
Simple robot with geoms and joints.
tests/test_sim.py:19
Functionrobot_xml
()
tests/test_actuator.py:29
Functionrobot_xml
()
tests/test_pd_actuator.py:21
Methodroot_body
(self)
src/mjlab/entity/entity.py:505
Methodroot_body_id
(self)
src/mjlab/entity/entity.py:65
Methodroot_com_ang_vel_b
Root COM angular velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:610
Methodroot_com_ang_vel_w
Root COM angular velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:483
Methodroot_com_lin_vel_b
Root COM linear velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:605
Methodroot_com_lin_vel_w
Root COM linear velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:478
Methodroot_com_pos_w
Root COM position in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:468
Methodroot_com_pose_w
Root center-of-mass pose in world frame. Shape (num_envs, 7).
src/mjlab/entity/data.py:264
Methodroot_com_quat_w
Root COM quaternion in world frame. Shape (num_envs, 4).
src/mjlab/entity/data.py:473
Methodroot_com_vel_w
Root center-of-mass velocity in world frame. Shape (num_envs, 6).
src/mjlab/entity/data.py:274
Functionroot_height_below_minimum
Terminate when the asset's root height is below the minimum height.
src/mjlab/envs/mdp/terminations.py:35
Methodroot_link_ang_vel_b
Root link angular velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:600
Methodroot_link_ang_vel_w
Root link angular velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:463
Methodroot_link_lin_vel_b
Root link linear velocity in body frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:595
Methodroot_link_lin_vel_w
Root link linear velocity in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:458
Methodroot_link_pos_w
Root link position in world frame. Shape (num_envs, 3).
src/mjlab/entity/data.py:448
Methodroot_link_pose_w
Root link pose in world frame. Shape (num_envs, 7).
src/mjlab/entity/data.py:245
Methodroot_link_quat_w
Root link quaternion in world frame. Shape (num_envs, 4).
src/mjlab/entity/data.py:453
Methodroot_link_vel_w
Root link velocity in world frame. Shape (num_envs, 6).
src/mjlab/entity/data.py:252
Functionrough_velocity_task_ids
Get all rough terrain velocity task IDs.
tests/test_velocity_task.py:30
Functionrpm_to_rad
Convert revolutions per minute to radians per second.
src/mjlab/utils/actuator.py:37
Functionrun_viewer
View NaN dump states in Viser. Args: dump_path: Path to nan_dump_TIMESTAMP.npz file.
src/mjlab/scripts/nan_viz.py:161
Functionsample_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
Functionsample_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
Functionsaturate
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
Methodsave
(self, path: str, infos=None)
src/mjlab/tasks/velocity/rl/runner.py:14
Methodsave
(self, path: str, infos=None)
src/mjlab/tasks/manipulation/rl/runner.py:14
Methodsave
(self, path: str, infos=None)
src/mjlab/tasks/tracking/rl/runner.py:92
Functionscalar_state_func
(env, env_ids)
tests/test_curriculum_manager.py:29
Methodscale
Action scale.
src/mjlab/envs/mdp/actions/actions.py:125
Functionscale_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
Functionscene_with_entities_cfg
Scene configuration with multiple entities.
tests/test_scene.py:75
Functionseed_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
Functionself_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
Functionself_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
Methodsensor_context
Shared sensing resources, or None if no cameras/raycasts.
src/mjlab/scene/scene.py:158
Methodsensors
(self)
src/mjlab/scene/scene.py:120
Methodset_context
Wire this sensor to a SensorContext for BVH-accelerated raycasting.
src/mjlab/sensor/raycast_sensor.py:564
Methodset_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
Functionsetup
(app)
docs/conf.py:197
Methodsetup
Setup MuJoCo viewer resources.
src/mjlab/viewer/native/viewer.py:158
Methodsetup
Setup the viewer resources.
src/mjlab/viewer/viser/viewer.py:92
Methodsetup
(self)
tests/test_viewer_tick.py:23
Methodshow_contact_forces
(self)
src/mjlab/viewer/viser/overlays.py:35
Methodshow_contact_points
(self)
src/mjlab/viewer/viser/overlays.py:33
Functionsimple_entity_cfg
Entity config for a simple box.
tests/test_scene.py:54
Functionsimple_entity_xml
Simple entity XML for testing.
tests/test_scene.py:29
Functionsimple_model
Create a simple MuJoCo model for testing.
tests/test_nan_guard.py:17
Functionsimple_model
()
tests/test_terminations.py:20
Functionsimple_obs_func
Create a simple observation function that returns a counter.
tests/test_observation_history.py:33
Functionsimple_obs_func
Create a simple observation function that returns a counter.
tests/test_observation_delay.py:33
Functionsimple_robot_xml
Minimal robot XML for testing.
tests/test_spec_config.py:16
Methodsite_ang_vel_w
Site angular velocities in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:576
Methodsite_lin_vel_w
Site linear velocities in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:571
Methodsite_names
(self)
src/mjlab/entity/entity.py:435
Functionsite_pos
Randomize site positions.
src/mjlab/envs/mdp/dr/site.py:25
Methodsite_pos_w
Site positions in world frame. Shape (num_envs, num_sites, 3).
src/mjlab/entity/data.py:561
Methodsite_pose_w
Site pose in world frame. Shape (num_envs, num_sites, 7).
src/mjlab/entity/data.py:345
Functionsite_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
Methodsite_quat_w
Site quaternions in world frame. Shape (num_envs, num_sites, 4).
src/mjlab/entity/data.py:566
Methodsite_vel_w
Site velocity in world frame. Shape (num_envs, num_sites, 6).
src/mjlab/entity/data.py:353
Functionskew_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
Functionskip_member
(app, what, name, obj, skip, options)
docs/conf.py:173
Functionslow_step
()
tests/test_viewer_tick.py:255
Functionsoft_landing
Penalize high impact forces at landing to encourage soft footfalls.
src/mjlab/tasks/velocity/mdp/rewards.py:356
Methodspec
(self)
src/mjlab/scene/scene.py:100
Methodspec
(self)
src/mjlab/entity/entity.py:405
Functionspec_fn
()
tests/test_builtin_dcmotor_actuator.py:500
Functionspec_fn
()
tests/test_builtin_pd_actuator.py:250
Functionspec_fn
()
tests/test_actions.py:72
Functionspec_with_continuous_joint
Create a spec with a continuous (unlimited) hinge joint.
tests/test_spec_utils.py:158
Functionspec_with_limited_joint
Create a spec with a limited joint for testing.
tests/test_spec_utils.py:11
← previousnext →1,801–1,900 of 2,812, ranked by callers