MCPcopy Create free account

hub / github.com/mujocolab/mjlab / functions

Functions2,812 in github.com/mujocolab/mjlab

Methodfunction
( self, difficulty: float, spec: mujoco.MjSpec, rng: np.random.Generator )
src/mjlab/terrains/primitive_terrains.py:1366
Methodfunction
( self, difficulty: float, spec: mujoco.MjSpec, rng: np.random.Generator )
src/mjlab/terrains/primitive_terrains.py:1481
Methodfunction
( self, difficulty: float, spec: mujoco.MjSpec, rng: np.random.Generator )
src/mjlab/terrains/primitive_terrains.py:1618
Functionfunction_reward_config
Config with a function-based reward.
tests/test_rewards.py:102
Functiong1_entity
()
tests/test_g1_constants.py:15
Functiong1_model
(g1_entity: Entity)
tests/test_g1_constants.py:20
Functiong1_tracking_task_ids
Get all G1 tracking task IDs.
tests/test_tracking_task.py:18
Functiong1_velocity_task_ids
Get all G1 velocity task IDs.
tests/test_velocity_task.py:18
Functiongenerate_random_transformation_matrix
Generates a random transformation matrix combining rotation and translation. Args: pos_boundary: Range for random translation values.
src/mjlab/utils/lab_api/math.py:1914
Methodgenerate_rays
Generate ray pattern. Args: mj_model: MuJoCo model (required if using from_mujoco_camera). device: Device for tensor operations.
src/mjlab/sensor/raycast_sensor.py:155
Methodgenerate_rays
Generate ray pattern. Args: mj_model: MuJoCo model (unused for ring pattern). device: Device for tensor operations. Returns:
src/mjlab/sensor/raycast_sensor.py:268
Functiongenerated_commands
(env: ManagerBasedRlEnv, command_name: str)
src/mjlab/envs/mdp/observations.py:91
Methodgeom_ang_vel_w
Geom angular velocities in world frame. Shape (num_envs, num_geoms, 3).
src/mjlab/entity/data.py:555
Functiongeom_friction
Randomize geom friction. Default axis is 0 (tangential friction only). Axes 1 (torsional) and 2 (rolling) only affect contacts with ``condim >= 4
src/mjlab/envs/mdp/dr/geom.py:117
Methodgeom_lin_vel_w
Geom linear velocities in world frame. Shape (num_envs, num_geoms, 3).
src/mjlab/entity/data.py:550
Methodgeom_names
(self)
src/mjlab/entity/entity.py:431
Functiongeom_pos
Randomize geom positions.
src/mjlab/envs/mdp/dr/geom.py:150
Methodgeom_pos_w
Geom positions in world frame. Shape (num_envs, num_geoms, 3).
src/mjlab/entity/data.py:540
Methodgeom_pose_w
Geom pose in world frame. Shape (num_envs, num_geoms, 7).
src/mjlab/entity/data.py:326
Functiongeom_quat
Randomize geom orientation by composing an RPY perturbation. Ranges are in radians. The sampled perturbation is composed with the default quatern
src/mjlab/envs/mdp/dr/geom.py:177
Methodgeom_quat_w
Geom quaternions in world frame. Shape (num_envs, num_geoms, 4).
src/mjlab/entity/data.py:545
Functiongeom_rgba
Randomize geom RGBA colors. Only affects rendering when the geom has no material assigned. If a material is assigned, its color (or texture) take
src/mjlab/envs/mdp/dr/geom.py:206
Functiongeom_size
Randomize geom size and recompute broadphase bounds. After writing new values to ``geom_size``, this function automatically recomputes ``geom_rbo
src/mjlab/envs/mdp/dr/geom.py:250
Functiongeom_size_env
(device)
tests/test_domain_randomization.py:1157
Methodgeom_vel_w
Geom velocity in world frame. Shape (num_envs, num_geoms, 6).
src/mjlab/entity/data.py:334
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/termination_manager.py:123
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/curriculum_manager.py:146
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/action_manager.py:186
Methodget_active_iterable_terms
(self, env_idx)
src/mjlab/managers/reward_manager.py:154
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/command_manager.py:231
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/command_manager.py:315
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/metrics_manager.py:167
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/metrics_manager.py:213
Methodget_active_iterable_terms
( self, env_idx: int )
src/mjlab/managers/observation_manager.py:178
Methodget_command
(self, name: str)
src/mjlab/managers/command_manager.py:253
Methodget_command
(self, name: str)
src/mjlab/managers/command_manager.py:326
Methodget_env_indices
Get the environment indices to visualize.
src/mjlab/viewer/debug_visualizer.py:216
Functionget_non_free_joints
Returns all joints except the free joint.
src/mjlab/utils/spec.py:203
Methodget_observations
(self)
src/mjlab/envs/manager_based_rl_env.py:481
Functionget_spec
()
src/mjlab/asset_zoo/robots/unitree_go1/go1_constants.py:23
Functionget_spec
()
src/mjlab/asset_zoo/robots/i2rt_yam/yam_constants.py:26
Functionget_spec
()
src/mjlab/asset_zoo/robots/unitree_g1/g1_constants.py:26
Methodget_term
(self, name: str)
src/mjlab/managers/termination_manager.py:115
Methodget_term
(self, name: str)
src/mjlab/managers/command_manager.py:256
Methodget_term
(self, name: str)
src/mjlab/managers/command_manager.py:329
Methodget_term_cfg
(self, term_name: str)
src/mjlab/managers/termination_manager.py:118
Methodget_term_cfg
(self, term_name: str)
src/mjlab/managers/curriculum_manager.py:71
Methodget_term_cfg
(self, term_name: str)
src/mjlab/managers/reward_manager.py:160
Methodget_term_cfg
(self, name: str)
src/mjlab/managers/command_manager.py:259
Methodget_term_cfg
(self, name: str)
src/mjlab/managers/command_manager.py:332
Methodglobal_ctrl_ids
Global indices of control inputs in the MuJoCo model.
src/mjlab/actuator/actuator.py:200
Functiongo1_entity
()
tests/test_go1_constants.py:15
Functiongo1_model
(go1_entity: Entity)
tests/test_go1_constants.py:20
Functiongo1_velocity_task_ids
Get all Go1 velocity task IDs.
tests/test_velocity_task.py:24
Methodgroup_obs_concatenate
(self)
src/mjlab/managers/observation_manager.py:226
Methodgroup_obs_dim
(self)
src/mjlab/managers/observation_manager.py:218
Methodgroup_obs_term_dim
(self)
src/mjlab/managers/observation_manager.py:222
Methodhas_cameras
Whether the environment has any camera sensors.
src/mjlab/viewer/viser/overlays.py:141
Methodhas_cameras
(self)
src/mjlab/sensor/sensor_context.py:89
Methodhas_delay
Whether this actuator has delay configured.
src/mjlab/actuator/actuator.py:173
Methodhas_raycasts
(self)
src/mjlab/sensor/sensor_context.py:93
Methodhas_site_actuators
Entity has actuators using site transmission.
src/mjlab/entity/entity.py:390
Methodhas_tendon_actuators
Entity has actuators using tendon transmission.
src/mjlab/entity/entity.py:380
Methodheading_w
Heading angle in world frame. Shape (num_envs,).
src/mjlab/entity/data.py:589
Functionidentity_network_file
Create a simple identity network: output = sum of all inputs.
tests/test_learned_actuator.py:53
Functionillegal_contact
( env: ManagerBasedRlEnv, sensor_name: str, force_threshold: float = 10.0, )
src/mjlab/tasks/velocity/mdp/terminations.py:17
Functionillegal_contact
( env: ManagerBasedRlEnv, sensor_name: str, force_threshold: float = 10.0, )
src/mjlab/tasks/manipulation/mdp/terminations.py:13
Methodinclude_geom_groups
(self)
src/mjlab/sensor/raycast_sensor.py:561
Functioninertia_env
(device)
tests/test_domain_randomization.py:624
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str, )
src/mjlab/actuator/learned_actuator.py:94
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str, )
src/mjlab/actuator/dc_actuator.py:103
Methodinitialize
Initialize the actuator after model compilation. This is called after the MjSpec is compiled into an MjModel. Args: mj_model: The comp
src/mjlab/actuator/actuator.py:220
Methodinitialize
Create fused delay buffers for delayed builtin groups.
src/mjlab/actuator/builtin_group.py:158
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str, )
src/mjlab/actuator/pd_actuator.py:70
Methodinitialize
Initialize the sensor after model compilation. This is called after the MjSpec is compiled into an MjModel and the simulation is ready to run
src/mjlab/sensor/sensor.py:75
Methodinitialize
Map sensors to sensordata buffer and allocate air time state.
src/mjlab/sensor/contact_sensor.py:289
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str, )
src/mjlab/sensor/camera_sensor.py:190
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str )
src/mjlab/sensor/builtin_sensor.py:334
Methodinitialize
( self, mj_model: mujoco.MjModel, model: mjwarp.Model, data: mjwarp.Data, device: str, )
src/mjlab/sensor/raycast_sensor.py:480
Functioninitialized_scene
Create an initialized scene with simulation.
tests/test_scene.py:104
Functioninterpolate_poses
Performs linear interpolation between two poses. Args: pose_1: 4x4 start pose. pose_2: 4x4 end pose. num_steps: If provid
src/mjlab/utils/lab_api/math.py:1784
Methodis_actuated
Entity has actuated joints.
src/mjlab/entity/entity.py:375
Functionis_alive
Reward for being alive.
src/mjlab/envs/mdp/rewards.py:22
Methodis_articulated
Entity is articulated (has fixed or actuated joints).
src/mjlab/entity/entity.py:370
Methodis_fixed_base
Entity is welded to the world.
src/mjlab/entity/entity.py:365
Functionis_identity_pose
Checks if input poses are identity transforms. The function checks if the input position and orientation are close to zero and identity respe
src/mjlab/utils/lab_api/math.py:738
Methodis_initialized
Check if buffer has been initialized with at least one append.
src/mjlab/utils/buffers/delay_buffer.py:171
Methodis_initialized
Check if the buffer has been initialized with at least one append.
src/mjlab/utils/buffers/circular_buffer.py:157
Functionis_joint_limited
Returns True if a joint is limited.
src/mjlab/utils/spec.py:229
Methodis_mocap
Entity root body is a mocap body (only for fixed-base entities).
src/mjlab/entity/entity.py:400
Functionis_motor_actuator
Check if an actuator is a motor actuator. Matches actuators created by ``MjsActuator.set_to_motor()`` or ``create_motor_actuator()``.
src/mjlab/utils/mujoco.py:36
Functionis_muscle_actuator
Check if an actuator is a muscle actuator.
src/mjlab/utils/mujoco.py:48
Functionis_position_actuator
Check if an actuator is a position actuator. Matches actuators created by ``MjsActuator.set_to_position()`` or ``create_position_actuator()``.
src/mjlab/utils/mujoco.py:7
Methodis_running
Check if viewer is running.
src/mjlab/viewer/viser/viewer.py:545
Methodis_running
(self)
tests/test_viewer_tick.py:30
Functionis_terminated
Penalize terminated episodes that don't correspond to episodic timeouts.
src/mjlab/envs/mdp/rewards.py:27
Functionis_velocity_actuator
Check if an actuator is a velocity actuator. Matches actuators created by ``MjsActuator.set_to_velocity()`` or ``create_velocity_actuator()``.
src/mjlab/utils/mujoco.py:21
Methodjoint_acc
Joint accelerations. Shape (num_envs, nv).
src/mjlab/entity/data.py:379
Functionjoint_acc_l2
Penalize joint accelerations on the articulation using L2 squared kernel.
src/mjlab/envs/mdp/rewards.py:50
Functionjoint_armature
Randomize joint armature. Triggers ``set_const_0``.
src/mjlab/envs/mdp/dr/joint.py:57
← previousnext →1,501–1,600 of 2,812, ranked by callers