Event Functors#
This page lists all available event functors that can be used with the Event Manager. Event functors are configured using EventCfg and can be triggered at different stages: startup, reset, or interval.
Physics Randomization#
Functor Name |
Description |
|---|---|
|
Randomize object masses within a specified range. Supports both absolute and relative mass randomization. |
Visual Randomization#
Functor Name |
Description |
|---|---|
|
Randomize textures, base colors, and material properties (metallic, roughness, IOR). Implemented as a Functor class. Supports both RigidObject and Articulation assets. |
|
Vary light position, color, and intensity within specified ranges. |
|
Randomize camera poses for viewpoint diversity. Supports both attach mode (pos/euler perturbation) and look_at mode (eye/target/up perturbation). |
|
Vary focal length (fx, fy) and principal point (cx, cy) within specified ranges. |
Spatial Randomization#
Functor Name |
Description |
|---|---|
|
Randomize object positions and orientations. Supports both relative and absolute pose randomization. |
|
Vary end-effector initial poses by solving inverse kinematics. The randomization is performed relative to the current end-effector pose. |
|
Randomize robot joint configurations. Supports both relative and absolute joint position randomization, and can target specific joints. |
Asset Management#
Functor Name |
Description |
|---|---|
|
Swap object models from a folder on reset for visual diversity. Currently supports RigidObject assets with mesh-based shapes. |
|
Set up additional object attributes dynamically. Supports both static values and callable functions. Useful for setting up affordance data and other custom attributes. |
Usage Example#
from embodichain.lab.gym.envs.managers.cfg import EventCfg, SceneEntityCfg
# Example: Randomize object mass on reset
events = {
"randomize_mass": EventCfg(
func="randomize_rigid_object_mass",
mode="reset",
params={
"entity_cfg": SceneEntityCfg(uid="cube"),
"mass_range": (0.1, 2.0),
"relative": False,
},
),
}