embodichain.lab.sim#
EmbodiChain’s simulation core.
Organized around the SimulationManager (the DexSim scene handle), the scene-object hierarchy, sensors, IK solvers, motion planners, the atomic-action layer, and shared configuration types.
Overview#
The sim package is EmbodiChain’s simulation core. It is organized around
the SimulationManager (the DexSim scene handle), the scene-object
hierarchy (lights, rigid/soft/cloth bodies, articulations, robots, gizmos,
constraints), the sensor suite (cameras, stereo cameras, contact sensors), the
motion package for solvers, planners, workspace, and trajectory augmentation,
the atomic-action motion-primitive layer, and the shared configuration types and
utilities that wire all of these together.
Submodules
Lightweight hierarchical profiler shared by simulation and environments. |
|
Public simulation-configuration facade. |
|
Scene-object classes spawned into the |
|
Generic dual-arm composition; concrete presets live in embodichain_robots. |
|
Sensors attached to the simulation scene. |
|
Robot motion solving, planning, workspace analysis, and trajectory augmentation. |
|
|
Typed planning contracts and built-in atomic actions. |
Helper utilities for simulation state conversion, mesh/geometry handling, configuration transforms, keyboard interaction, and action/solver adaptation. |
Simulation Manager#
Profiler#
- class embodichain.lab.sim.Profiler[source]#
Bases:
objectHierarchical wall-time profiler.
- Parameters:
cfg (
Optional[ProfilerCfg]) – Profiler configuration.Nonedisables profiling entirely.device (
device) – Device used for optional CUDA synchronization and NVTX ranges.
Note
One profiler tracks one synchronous call stack. Use it on the simulation thread that owns the associated simulation manager.
Methods:
__init__(cfg, device)report()Log a profiling report table and optionally dump JSON.
section(name, *[, is_root])Record wall time for a named section.
Attributes:
Whether profiling is active.
- property enabled: bool#
Whether profiling is active.
- report()[source]#
Log a profiling report table and optionally dump JSON.
- Return type:
Dict[str,object]- Returns:
Report data, or an empty dictionary when profiling is disabled.
- section(name, *, is_root=False)[source]#
Record wall time for a named section.
- Parameters:
name (
str) – Leaf section name. The full name is derived from the active section stack.is_root (
bool) – Whether this section starts a top-level profiling sample. A nested root is transparent and its children remain attached to the active outer hierarchy.
- Return type:
Iterator[None]
- class embodichain.lab.sim.ProfilerCfg[source]#
Bases:
objectConfiguration for hierarchical wall-time profiling.
Attributes:
Color terminal report rows by logical module.
Enable per-section wall-time statistics (mean/min/max/std).
Push NVTX ranges for sections so they appear in Nsight Systems.
Optional JSON path written by
Profiler.report().Synchronize CUDA at section boundaries for accurate GPU wall time.
Number of top-level root sections to discard before recording.
-
color_output:
bool# Color terminal report rows by logical module.
This only affects the logged table; JSON report data remains unchanged.
-
enable_time:
bool# Enable per-section wall-time statistics (mean/min/max/std).
-
nvtx:
bool# Push NVTX ranges for sections so they appear in Nsight Systems.
-
output_path:
str|None# Optional JSON path written by
Profiler.report().
-
sync_cuda:
bool# Synchronize CUDA at section boundaries for accurate GPU wall time.
-
warmup_steps:
int# Number of top-level root sections to discard before recording.
-
color_output:
Configuration#
Public simulation-configuration facade.
The implementation is split by domain while this package preserves the
historical embodichain.lab.sim.cfg import surface.
Classes:
Configuration for an articulation asset in the simulation. |
|
Articulation-root properties shared by robot definitions. |
|
alias of |
|
Collision-shape properties with identical intent across both backends. |
|
DLSS settings for the public |
|
Collision-solver properties consumed only by the Default backend. |
|
Configuration selector for the Default physics backend. |
|
Rigid-body properties consumed only by the Default backend. |
|
Common configuration contract for one deformable asset. |
|
Select denoising/reconstruction independently by rendering scope. |
|
GPU buffer capacities for the Default backend's GPU dynamics pipeline. |
|
Portable joint-drive and joint-dynamics properties. |
|
Configuration for a light asset in the simulation. |
|
Partial physics overlay for a selected set of articulation links. |
|
Configuration for visual markers in the simulation. |
|
Backend-neutral rigid-body mass properties. |
|
Configuration parameters for a triangle mesh shape. |
|
Collision-geometry construction for |
|
Algorithm settings shared by targets that use the NRD path. |
|
Newton collision-pipeline settings owned at scene scope. |
|
Newton-native contact-envelope and particle-contact properties. |
|
Compatibility subtype for serialized Newton joint-drive configs. |
|
Configuration selector for the Newton physics backend. |
|
Newton contact-material extensions. |
|
Base configuration for an asset in the simulation. |
|
Backend-neutral simulation timing, device, and gravity configuration. |
|
RenderCfg(renderer: "Literal['auto', 'no-render', 'hybrid', 'fast-rt', 'rt']" = <factory>, spp: 'int' = <factory>, denoising: 'DenoisingCfg' = <factory>, dlss: 'DLSSCfg' = <factory>, nrd: 'NRDCfg' = <factory>, tone_mapping_enabled: 'bool' = <factory>, tone_mapping_exposure: 'float' = <factory>, min_bounces: 'int' = <factory>, max_bounces: 'int' = <factory>) |
|
Common rigid-contact material intent. |
|
Grouped rigid-body physics configuration used by Spawn. |
|
Configuration for a fixed constraint between two RigidObjects. |
|
Configuration for a rigid body asset in the simulation. |
|
Configuration for a rigid object group asset in the simulation. |
|
RobotCfg(uid: 'str | None' = <factory>, init_pos: 'tuple[float, float, float]' = <factory>, init_rot: 'tuple[float, float, float]' = <factory>, init_local_pose: 'np.ndarray | None' = <factory>, fpath: 'str' = <factory>, body_scale: 'tuple | list' = <factory>, compute_uv: 'bool' = <factory>, asset_physics_mode: 'AssetPhysicsMode' = <factory>, attrs: 'RigidBodyPhysicsCfg' = <factory>, link_attrs: 'dict[str, LinkPhysicsOverrideCfg] | None' = <factory>, root_props: 'ArticulationRootPropertiesCfg' = <factory>, joint_drive_props: 'JointDrivePropertiesCfg' = <factory>, init_qpos: 'torch.Tensor | np.ndarray | Sequence[float]' = <factory>, qpos_limits: 'torch.Tensor | np.ndarray | Sequence[Sequence[float]] | Dict[str, List[float]] | None' = <factory>, build_pk_chain: 'bool' = <factory>, control_parts: 'Dict[str, List[str]] | None' = <factory>, urdf_cfg: 'URDFCfg | None' = <factory>, solver_cfg: 'SolverCfg | Dict[str, SolverCfg] | None' = <factory>, workspace_cfg: 'Dict[str, RobotWorkspaceCfg] | None' = <factory>, sensors: 'list[SensorCfg]' = <factory>, enable_sensor: 'bool' = <factory>, *, source: 'UsdSourceCfg | None' = None) |
|
Base class for replace-only robot configurations across physics backends. |
|
Runtime configuration for a control-part workspace cache. |
|
ShapeCfg(shape_type: 'str' = <factory>, visual_material: 'VisualMaterialCfg | None' = <factory>) |
|
alias of |
|
Configuration for a Newton surface-deformable particle set. |
|
Surface density, Newton surface elements, and optional mesh springs. |
|
Newton surface triangle, bending, and aerodynamic properties. |
|
Standalone configuration class for URDF assembly. |
|
Select a typed asset from a source USD stage. |
|
Configure a render-only object, without a rigid body or colliders. |
|
Newton tetrahedralization and render-volume binding parameters. |
|
Configuration for a Newton volume-deformable particle set. |
|
Volume density, elasticity, and optional Newton surface constraints. |
|
Configuration for printing the interactive viewer camera pose. |
|
Configuration for interactive viewer window recording. |
Functions:
|
Get the absolute path of the data file. |
|
Parse a |
|
Infer the physics backend name from a physics configuration instance. |
|
Return a default physics configuration instance for the given backend. |
|
Validate that |
- class embodichain.lab.sim.cfg.ArticulationCfg[source]#
Bases:
ObjectBaseCfgConfiguration for an articulation asset in the simulation.
This class extends the base asset configuration to include specific properties for articulations, such as joint drive properties, physical attributes.
Attributes:
How source-authored articulation physics is handled.
Physical attributes for all links.
Scale of the articulation in the simulation world frame.
Build a pytorch-kinematics chain for FK and Jacobian computation.
Whether to compute the UV mapping for the articulation link.
Path to the articulation asset file.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Initial joint positions of the articulation.
Euler angles (in degree) of the root in simulation world frame.
Optional joint-drive and joint-dynamics overrides.
Named per-link physics override groups keyed by regex on link names.
Override joint position limits of the articulation.
Grouped articulation-root properties.
USD source asset; mutually exclusive with
fpath.Methods:
from_dict(init_dict)Initialize the configuration from a dictionary.
Return the effective file-backed physics policy.
-
asset_physics_mode:
Literal['preserve','overlay']# How source-authored articulation physics is handled.
"preserve"keeps link, joint-drive, and joint-limit properties from either USD or URDF."overlay"applies only explicitly configured values after the source has been resolved.Import policy such as root fixation and body scale remains controlled by
root_propsandbody_scale.
-
attrs:
RigidBodyPhysicsCfg# Physical attributes for all links. We use default mass from the USD/URDF file if available. The mass and density in attrs will only be used if specified.
-
body_scale:
tuple|list# Scale of the articulation in the simulation world frame.
-
build_pk_chain:
bool# Build a pytorch-kinematics chain for FK and Jacobian computation.
USD assets use resolved simulation joint descriptors after preparation; URDF assets use their source kinematic tree. USD kinematics supports trees of fixed, revolute, and prismatic joints, including child-side joint frames. Set False to load other joint topologies for simulation without FK.
-
compute_uv:
bool# Whether to compute the UV mapping for the articulation link.
Currently, the uv mapping is computed for each link with projection uv mapping method.
-
fpath:
str# Path to the articulation asset file.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_qpos:
Union[Tensor,ndarray,Sequence[float]]# Initial joint positions of the articulation.
If None, the joint positions will be set to zero. If provided, it should be an array of shape
(num_dofs,).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
joint_drive_props:
JointDrivePropertiesCfg|None# Optional joint-drive and joint-dynamics overrides.
Nonepreserves source drive properties. IndividualNonefields in a provided config also preserve the corresponding source values.
-
link_attrs:
dict[str,LinkPhysicsOverrideCfg] |None# Named per-link physics override groups keyed by regex on link names.
Each group applies
LinkPhysicsOverrideCfg.attrson top ofattrsfor matched links only. A link must not match more than one group.
-
qpos_limits:
Union[Tensor,ndarray,Sequence[Sequence[float]],Dict[str,List[float]],None]# Override joint position limits of the articulation.
If None, the joint position limits from the asset file (URDF/USD) are used. If provided as a tensor/array of shape
(num_dofs, 2), it is applied in flattened source-resolved DOF order before the backend model is built. If provided as a dictionary, keys are joint names or regular expressions and values are[min, max]limits.This field replaces the asset limits for the articulation and can be used to either tighten or expand the allowed range.
- resolve_asset_physics_mode()[source]#
Return the effective file-backed physics policy.
- Return type:
Literal['preserve','overlay']
-
root_props:
ArticulationRootPropertiesCfg# Grouped articulation-root properties.
Fixed-base and self-collision intent is portable. Root sleep and solver iterations are Default-only fields and are ignored by Newton. The portable fields default to a fixed base with self-collision disabled. Set either field to
Noneto preserve an authored USD/backend value; URDF imports then use the established fixed-base, self-collision-off defaults.
-
source:
UsdSourceCfg|None= None# USD source asset; mutually exclusive with
fpath.
-
uid:
str|None#
-
asset_physics_mode:
- class embodichain.lab.sim.cfg.ArticulationRootPropertiesCfg[source]#
Bases:
objectArticulation-root properties shared by robot definitions.
fixed_baseandself_collision_enabledare consumed by both backends.sleep_thresholdand the solver-iteration fields are supported only by the Default backend and are ignored by Newton. By default, the articulation root is fixed and self-collision is disabled. ExplicitNonevalues preserve the source value or backend/import default.Attributes:
Whether the articulation root is rigidly fixed to the world frame.
Default-only minimum root position-solver iterations (1 to 255).
Default-only minimum root velocity-solver iterations (0 to 255).
Whether non-filtered link pairs in the articulation may self-collide.
Default-only articulation sleep threshold; Newton ignores this field.
Methods:
from_dict(init_dict)Parse articulation-root properties without a backend subtype.
-
fixed_base:
bool|None# Whether the articulation root is rigidly fixed to the world frame.
Set to
Noneto preserve the source value or backend/import default.
- classmethod from_dict(init_dict)[source]#
Parse articulation-root properties without a backend subtype.
- Return type:
-
min_position_iters:
int|None# Default-only minimum root position-solver iterations (1 to 255).
-
min_velocity_iters:
int|None# Default-only minimum root velocity-solver iterations (0 to 255).
-
self_collision_enabled:
bool|None# Whether non-filtered link pairs in the articulation may self-collide.
Newton may still apply source-authored or Spawn-owned filtering to adjacent parent-child bodies. Set to
Noneto preserve the source value or backend/import default.
-
sleep_threshold:
float|None# Default-only articulation sleep threshold; Newton ignores this field.
-
fixed_base:
- embodichain.lab.sim.cfg.ClothObjectCfg#
alias of
SurfaceDeformableObjectCfg
- class embodichain.lab.sim.cfg.CollisionPropertiesCfg[source]#
Bases:
objectCollision-shape properties with identical intent across both backends.
The framework default contact envelope is
contact_offset=0.002andrest_offset=0.0. The contact envelope is expressed once with Default-backend terminology and is compiled to Newton’smargin/gaprepresentation at the Spawn boundary. PassNoneexplicitly for a sparse source-asset overlay. Mesh approximation and SDF cooking belong toMeshCollisionCfg.Attributes:
Whether the shape participates in rigid shape-shape collision.
Per-shape distance at which contact generation starts [m].
Per-shape target separation at rest [m].
-
collision_enabled:
bool|None# Whether the shape participates in rigid shape-shape collision.
On Newton this maps to
ShapeConfig.has_shape_collision.Nonepreserves the source/backend value.
-
contact_offset:
float|None# Per-shape distance at which contact generation starts [m].
The pair threshold is the sum of both shapes’ contact offsets. This value must be non-negative and no smaller than
rest_offset. Default consumes it directly; Newton compiles it together withrest_offsettogap = contact_offset - rest_offset.
-
rest_offset:
float|None# Per-shape target separation at rest [m].
Pairwise rest separation is the sum of both shapes’ values. Positive values leave an air gap, zero targets touching surfaces, and negative values permit limited penetration. Default consumes it directly; Newton maps it to
margin.
-
collision_enabled:
- class embodichain.lab.sim.cfg.DLSSCfg[source]#
Bases:
objectDLSS settings for the public
dlssrendering path.Pipeline selection belongs to
DenoisingCfg. These controls apply when a target selects"dlss".Attention
DLSS requires a Vulkan render device, a compatible NVIDIA GPU/driver, and a DexSim build with the NGX runtime. Initialization is deferred until rendering; configuration conversion alone cannot verify support. Each enabled offscreen camera needs its own temporal history and Vulkan exchange images, increasing GPU memory use.
Attributes:
-1auto (58%),0Ultra Performance (~33%),1Performance (50%),2Balanced (58%),3Quality (~67%),4Ultra Quality (77%),5DLAA (100%).Positive, finite exposure multiplier used by the RR bridge.
Internal FastRT/OfflineRT window height; zero derives it from quality.
Internal FastRT/OfflineRT window width; zero derives it from quality.
DexSim compatibility field.
DexSim compatibility field.
Evaluate compatible multi-camera targets through one tiled DLSS atlas.
Optional window target/render ratio, at least 1.0.
Methods:
to_dexsim_cfg(window_width, window_height)Convert settings without changing the window or camera output size.
-
dlss_quality:
int# -1auto (58%),0Ultra Performance (~33%),1Performance (50%),2Balanced (58%),3Quality (~67%),4Ultra Quality (77%),5DLAA (100%).- Type:
Quality mode and derived internal scale
-
exposure_compensation:
float# Positive, finite exposure multiplier used by the RR bridge.
-
render_height:
int# Internal FastRT/OfflineRT window height; zero derives it from quality.
-
render_width:
int# Internal FastRT/OfflineRT window width; zero derives it from quality.
-
target_height:
int# DexSim compatibility field. Set the actual window or camera height instead.
-
target_width:
int# DexSim compatibility field. Set the actual window or camera width instead.
-
tiled_enabled:
bool# Evaluate compatible multi-camera targets through one tiled DLSS atlas.
- to_dexsim_cfg(window_width, window_height)[source]#
Convert settings without changing the window or camera output size.
- Parameters:
window_width (
int) – Window width in pixels.window_height (
int) – Window height in pixels.
- Return type:
DLSSConfig- Returns:
Populated
dexsim.DLSSConfiginstance ready to assign toworld_config.dlss_config.- Raises:
ValueError – If the configuration contains invalid values.
-
upsample_ratio:
float|None# Optional window target/render ratio, at least 1.0. None leaves zero render dimensions for DexSim to derive from quality. When specified, computes each unset render dimension from the actual window size. Only FastRT/OfflineRT windows honor these overrides; hybrid and offscreen targets derive their internal resolution from quality.
-
dlss_quality:
- class embodichain.lab.sim.cfg.DefaultCollisionPropertiesCfg[source]#
Bases:
CollisionPropertiesCfgCollision-solver properties consumed only by the Default backend.
contact_offsetandrest_offsetare portable fields defined byCollisionPropertiesCfg. This backend extension keeps them sparse so a backend-native source overlay does not accidentally replace an authored portable envelope.Attributes:
Whether the shape participates in rigid shape-shape collision.
Optional portable contact-generation distance [m].
Whether to disable Default-backend strong-friction contact anchoring.
Minimum contact-patch radius used for torsional friction [m].
Optional portable target separation at rest [m].
Contact-patch radius used to approximate torsional friction [m].
-
collision_enabled:
bool|None# Whether the shape participates in rigid shape-shape collision.
On Newton this maps to
ShapeConfig.has_shape_collision.Nonepreserves the source/backend value.
-
contact_offset:
float|None# Optional portable contact-generation distance [m].
-
disable_strong_friction:
bool|None# Whether to disable Default-backend strong-friction contact anchoring.
-
min_torsional_patch_radius:
float|None# Minimum contact-patch radius used for torsional friction [m].
-
rest_offset:
float|None# Optional portable target separation at rest [m].
-
torsional_patch_radius:
float|None# Contact-patch radius used to approximate torsional friction [m].
-
collision_enabled:
- class embodichain.lab.sim.cfg.DefaultPhysicsCfg[source]#
Bases:
PhysicsBackendCfgConfiguration selector for the Default physics backend.
Attributes:
Relative normal-speed threshold below which contacts do not bounce [m/s].
Reuse identical physics materials across objects and environment clones.
Compute device used to build and step the selected physics backend.
Whether to enable scene-level continuous collision detection (CCD).
Fixed-capacity GPU buffers used by Default-backend CUDA simulation.
World-frame gravity vector in meters per second squared.
Representative scene length used by the Default backend's tolerance scale [m].
Duration of one physics step in seconds.
Representative scene speed used by the Default backend's tolerance scale [m/s].
Methods:
Convert to DexSim physics arguments.
-
bounce_threshold:
float# Relative normal-speed threshold below which contacts do not bounce [m/s].
-
cache_material:
bool# Reuse identical physics materials across objects and environment clones.
Enable this for large batches to avoid exhausting the native material table.
-
device:
str|device# Compute device used to build and step the selected physics backend.
Concrete backend configurations may redeclare this field when their native runtime has a different default. In particular,
NewtonPhysicsCfgintentionally shadows this CPU default with"cuda:0". Callers can still provide an explicit device override.
-
enable_ccd:
bool# Whether to enable scene-level continuous collision detection (CCD).
A rigid body must also set
DefaultRigidBodyPropertiesCfg.enable_ccdfor CCD to be used on that body.
-
gpu_memory:
GPUMemoryCfg# Fixed-capacity GPU buffers used by Default-backend CUDA simulation.
-
gravity:
Union[Sequence[float],ndarray]# World-frame gravity vector in meters per second squared.
-
length_tolerance:
float# Representative scene length used by the Default backend’s tolerance scale [m].
Set this near the characteristic size of simulated objects. It is a scene scale, not an accuracy knob, and must be configured before world creation.
-
physics_dt:
float# Duration of one physics step in seconds.
Environment control steps may contain multiple physics steps. For Newton, this interval is further divided by
NewtonPhysicsCfg.num_substeps.
-
speed_tolerance:
float# Representative scene speed used by the Default backend’s tolerance scale [m/s].
The backend derives several internal thresholds from this value and
length_tolerance.
- to_dexsim_args()[source]#
Convert to DexSim physics arguments.
Solver implementation details that are not exposed by
DefaultPhysicsCfgretain their established defaults here.- Return type:
dict[str,Any]
-
bounce_threshold:
- class embodichain.lab.sim.cfg.DefaultRigidBodyPropertiesCfg[source]#
Bases:
objectRigid-body properties consumed only by the Default backend.
Every field defaults to
Noneso a partial overlay preserves an authored USD/URDF value or the backend default.Attributes:
Non-negative damping coefficient applied to angular velocity.
Whether continuous collision detection is enabled for this body.
Whether world gravity accelerates this body (Default backend only).
Non-negative damping coefficient applied to linear velocity.
Maximum rigid-body angular speed [rad/s].
Maximum separation speed introduced to resolve penetration [m/s].
Maximum rigid-body linear speed [m/s].
Minimum number of position-solver iterations for this body (1 to 255).
Minimum number of velocity-solver iterations for this body (0 to 255).
Whether accumulated acceleration is retained across simulation steps.
Mass-normalized kinetic-energy threshold below which the body may sleep.
-
angular_damping:
float|None# Non-negative damping coefficient applied to angular velocity.
-
enable_ccd:
bool|None# Whether continuous collision detection is enabled for this body.
Scene-level CCD must also be enabled through
DefaultPhysicsCfg.enable_ccd.
-
has_gravity:
bool|None# Whether world gravity accelerates this body (Default backend only).
Nonepreserves source/backend intent. Articulationattrsapplies to all links;link_attrscan override individual links. File-backed assets requireasset_physics_mode="overlay"to apply this property. Explicit gravity overrides are rejected by the Newton integration.
-
linear_damping:
float|None# Non-negative damping coefficient applied to linear velocity.
-
max_angular_velocity:
float|None# Maximum rigid-body angular speed [rad/s].
-
max_depenetration_velocity:
float|None# Maximum separation speed introduced to resolve penetration [m/s].
-
max_linear_velocity:
float|None# Maximum rigid-body linear speed [m/s].
-
min_position_iters:
int|None# Minimum number of position-solver iterations for this body (1 to 255).
-
min_velocity_iters:
int|None# Minimum number of velocity-solver iterations for this body (0 to 255).
-
retain_acceleration:
bool|None# Whether accumulated acceleration is retained across simulation steps.
-
sleep_threshold:
float|None# Mass-normalized kinetic-energy threshold below which the body may sleep.
-
angular_damping:
- class embodichain.lab.sim.cfg.DeformableObjectCfg[source]#
Bases:
ObjectBaseCfgCommon configuration contract for one deformable asset.
Concrete volume and surface configurations author Newton particle-set properties. The discriminator is explicit so manager and visualization code do not need to infer topology from a mesh or material type.
Attributes:
Physical topology represented by the asset.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Newton particle flags, provided as one broadcast value or one value per node.
Newton particle radius;
Noneuses the active solver default.Render and source-mesh configuration.
Whether Newton reports source-mesh quality validation warnings.
Methods:
from_dict(init_dict)Parse nested deformable configs using the current schema.
-
deformable_type:
Literal['volume','surface']# Physical topology represented by the asset.
- classmethod from_dict(init_dict)[source]#
Parse nested deformable configs using the current schema.
- Parameters:
init_dict (
Mapping[str,Any]) – Configuration fields from a dictionary or YAML loader.- Return type:
- Returns:
A typed configuration with the base asset pose conventions applied.
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
particle_flags:
Union[int,Sequence[int],ndarray,None]# Newton particle flags, provided as one broadcast value or one value per node.
Clear the Newton
ACTIVEbit for nodes that will be driven kinematically. Per-node arrays must follow the resolved simulation-particle order. For a surface deformable, an array-backedMeshCfgpreserves this order. A volume deformable is voxelized into a separate tetrahedral simulation mesh, so its particle indices do not correspond to source-mesh vertex indices.
-
particle_radius:
float|None# Newton particle radius;
Noneuses the active solver default.
-
uid:
str|None#
-
validate_mesh:
bool# Whether Newton reports source-mesh quality validation warnings.
-
deformable_type:
- class embodichain.lab.sim.cfg.DenoisingCfg[source]#
Bases:
objectSelect denoising/reconstruction independently by rendering scope.
The public values describe complete image-processing paths. Native NRD method variants remain an implementation detail instead of becoming additional user-facing modes.
Attributes:
Pipeline used by offscreen camera targets.
Pipeline used by the interactive window.
Methods:
Convert window and offscreen selections to DexSim modes.
-
offscreen:
Literal['off','optix','dlss','nrd']# Pipeline used by offscreen camera targets.
- to_dexsim_modes()[source]#
Convert window and offscreen selections to DexSim modes.
- Return type:
tuple[RTRenderMode,RTRenderMode]- Returns:
Window and offscreen modes, in that order.
- Raises:
ValueError – If mutable settings no longer contain valid modes.
-
window:
Literal['off','optix','dlss','nrd']# Pipeline used by the interactive window.
-
offscreen:
- class embodichain.lab.sim.cfg.GPUMemoryCfg[source]#
Bases:
objectGPU buffer capacities for the Default backend’s GPU dynamics pipeline.
Default-backend GPU buffers cannot all grow dynamically. Values that are too small may therefore produce overflow warnings, dropped contacts, or an invalid simulation. These settings are applied only when the Default backend runs on CUDA; they have no effect on Default CPU or Newton.
Attributes:
Capacity of found/lost pair records generated by aggregates.
Capacity of broad-phase found/lost pair records.
Initial capacity in bytes of the GPU and pinned-host memory heaps.
Maximum number of rigid-contact records in the GPU contact stream.
Maximum number of rigid-contact patches in the GPU patch stream.
Temporary pinned-host buffer capacity in bytes.
Capacity of all aggregate-pair records in the GPU pipeline.
-
found_lost_aggregate_pairs_capacity:
int# Capacity of found/lost pair records generated by aggregates.
-
found_lost_pairs_capacity:
int# Capacity of broad-phase found/lost pair records.
-
heap_capacity:
int# Initial capacity in bytes of the GPU and pinned-host memory heaps.
-
max_rigid_contact_count:
int# Maximum number of rigid-contact records in the GPU contact stream.
Increase this when the Default backend reports
Contact buffer overflow detected.
-
max_rigid_patch_count:
int# Maximum number of rigid-contact patches in the GPU patch stream.
A patch groups nearby contact points that share a contact normal. Increase this when the Default backend reports
Patch buffer overflow detected.
-
temp_buffer_capacity:
int# Temporary pinned-host buffer capacity in bytes.
Increase this when the Default backend reports a pinned-host linear allocator overflow.
-
total_aggregate_pairs_capacity:
int# Capacity of all aggregate-pair records in the GPU pipeline.
-
found_lost_aggregate_pairs_capacity:
- class embodichain.lab.sim.cfg.JointDrivePropertiesCfg[source]#
Bases:
objectPortable joint-drive and joint-dynamics properties.
A scalar applies to every resolved joint. A dictionary maps exact joint names, full-match regular expressions, or robot control-part names to values; exact/regex rules override broader control-part rules.
Nonepreserves source/backend ownership of a field.drive_typeretains the Default drive response (force, acceleration, or disabled), whiletarget_modeselects the commanded target components. Spawn resolves the two concepts before lowering them to the Default drive descriptor and NewtonJointDofConfig.Effort and velocity limits, friction, and armature share the same matching rules and descriptor compilation boundary as the actuator target and gains.
Newton stores all fields in the model, but individual solvers may ignore limits, friction, armature, or target modes; consult the Newton solver feature matrix.
Attributes:
Artificial inertia added to the joint-space diagonal.
Derivative velocity gain of the joint drive.
Joint drive type to apply.
Passive friction value applied along the joint degree of freedom.
Maximum drive effort [N for prismatic, N*m for revolute joints].
Maximum joint speed [m/s for prismatic, rad/s for revolute joints].
Proportional position gain of the joint drive.
Portable actuator target mode, as a scalar or joint-rule mapping.
Methods:
from_dict(init_dict, *[, defaults])Initialize the configuration from a dictionary.
-
armature:
Union[Dict[str,float],float,None]# Artificial inertia added to the joint-space diagonal.
Units depend on the joint model:
For prismatic (linear) joints, the unit is mass [kg].
For revolute (angular) joints, the unit is mass * scene_length^2 [kg-m^2].
Armature changes the physical model and should normally reflect actuator or gearbox inertia. Newton solver support varies.
-
damping:
Union[Dict[str,float],float,None]# Derivative velocity gain of the joint drive.
The unit depends on the joint model:
For linear joints, the unit is kg-m/s (N-s/m).
For angular joints, the unit is kg-m^2/s/rad (N-m-s/rad).
-
drive_type:
Optional[Literal['force','acceleration','none']]# Joint drive type to apply.
On the Default backend,
"force"applies a force/torque drive,"acceleration"applies a mass-independent acceleration drive, and"none"disables the drive. Newton has no acceleration-drive equivalent. Unlesstarget_modeis explicit,"force"and"acceleration"select"position_velocity"while"none"selects"none".
-
friction:
Union[Dict[str,float],float,None]# Passive friction value applied along the joint degree of freedom.
Interpretation and enforcement are backend/solver-dependent.
- classmethod from_dict(init_dict, *, defaults=None)[source]#
Initialize the configuration from a dictionary.
- Parameters:
init_dict (
Dict[str,Any]) – Joint-drive properties to override.defaults (
JointDrivePropertiesCfg|None) – Optional base properties whose unspecified values are preserved. If omitted, the class defaults are used.
- Return type:
- Returns:
Parsed joint-drive properties.
-
max_effort:
Union[Dict[str,float],float,None]# Maximum drive effort [N for prismatic, N*m for revolute joints].
The value is authored for both backends, but the selected Newton solver may not enforce it.
-
max_velocity:
Union[Dict[str,float],float,None]# Maximum joint speed [m/s for prismatic, rad/s for revolute joints].
The value is authored for both backends, but support is solver-dependent in Newton.
-
stiffness:
Union[Dict[str,float],float,None]# Proportional position gain of the joint drive.
The unit depends on the joint model:
For linear joints, the unit is kg-m/s^2 (N/m).
For angular joints, the unit is kg-m^2/s^2/rad (N-m/rad).
-
target_mode:
Union[Literal['none','position','velocity','position_velocity','effort'],Dict[str,Union[Literal['none','position','velocity','position_velocity','effort'],int]],int,None]# Portable actuator target mode, as a scalar or joint-rule mapping.
Accepted names and integer values are
"none"/0(passive),"position"/1,"velocity"/2,"position_velocity"/3, and"effort"/4. Default emulates these modes through its drive mode and effective gains. Newton authors the correspondingJointTargetMode; solvers without native target-mode support use deterministic gain-based fallbacks where possible.
-
armature:
- class embodichain.lab.sim.cfg.LightCfg[source]#
Bases:
ObjectBaseCfgConfiguration for a light asset in the simulation.
Supports six light types matching the dexsim rendering backend:
"point": Per-environment omnidirectional point light with position and falloff radius. Created as a batched light (one per environment)."sun": Global directional sun light (infinite distance). Created as a single scene-level instance. Uses direction only; position is ignored. Sun-specific fields (angular_radius,halo_size,halo_falloff) are reserved for future backend support."direction": Global pure directional light at infinite distance. Created as a single scene-level instance. Direction only; no position."spot": Per-environment spotlight with position, direction, and inner/outer cone angles. Created as a batched light."rect": Per-environment rectangular area light with position, direction, width, and height. Created as a batched light."mesh": Per-environment mesh-based emissive light. Requires aMeshObjectviaembodichain.lab.sim.objects.light.Light.set_mesh()(not tensor-batched). Created as a batched light.
Attention
The
angular_radius,halo_size, andhalo_fallofffields are reserved for future use. The dexsim Python bindings do not yet expose setters for these sun-specific properties.Attributes:
Angular radius of the sun disc in degrees.
RGB color of the light source.
Direction vector for directional, spot, rect, and mesh lights.
Whether the light casts shadows.
Halo falloff for sun light.
Halo size for sun light.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Intensity of the light source in watts/m^2.
"point","sun","direction","spot","rect","mesh".Asset path for mesh-based emissive lights.
Falloff radius for point lights.
Height of the rectangular area light.
Width of the rectangular area light.
Inner cone angle of the spotlight in degrees.
Outer cone angle of the spotlight in degrees.
-
angular_radius:
float# Angular radius of the sun disc in degrees. Reserved for future use.
-
color:
tuple[float,float,float]# RGB color of the light source. Defaults to white
(1.0, 1.0, 1.0).
-
direction:
tuple[float,float,float]# Direction vector for directional, spot, rect, and mesh lights. Defaults to
(0.0, 0.0, -1.0)(pointing down along -Z).
-
enable_shadow:
bool# Whether the light casts shadows. Defaults to
True.
-
halo_falloff:
float# Halo falloff for sun light. Reserved for future use.
-
halo_size:
float# Halo size for sun light. Reserved for future use.
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
intensity:
float# Intensity of the light source in watts/m^2. Defaults to
30.0.
-
light_type:
Literal['point','sun','direction','spot','rect','mesh']# "point","sun","direction","spot","rect","mesh".- Type:
Light type. Supported
-
mesh_path:
str# Asset path for mesh-based emissive lights. Only used when
light_type="mesh". The actual mesh assignment is done viaembodichain.lab.sim.objects.light.Light.set_mesh()which accepts adexsim.models.MeshObject. This field stores the path for reference.
-
radius:
float# Falloff radius for point lights. Only used when
light_type="point". Defaults to10.0.
-
rect_height:
float# Height of the rectangular area light. Only used when
light_type="rect". Defaults to1.0.
-
rect_width:
float# Width of the rectangular area light. Only used when
light_type="rect". Defaults to1.0.
-
spot_angle_inner:
float# Inner cone angle of the spotlight in degrees. Only used when
light_type="spot". Defaults to30.0.
-
spot_angle_outer:
float# Outer cone angle of the spotlight in degrees. Only used when
light_type="spot". Defaults to45.0.
-
uid:
str|None#
- class embodichain.lab.sim.cfg.LinkPhysicsOverrideCfg[source]#
Bases:
objectPartial physics overlay for a selected set of articulation links.
Regex/control-group resolution happens before Spawn updates exact source link names. A link may match only one override group.
Attributes:
Partial grouped overlay for the selected links.
Regular expressions matched against complete source link names.
Methods:
from_dict(init_dict)Initialize the configuration from a dictionary.
-
attrs:
RigidBodyPhysicsCfg# Partial grouped overlay for the selected links.
Configure source-inertia recomputation through
RigidBodyPhysicsCfg.mass_props.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
-
link_names_expr:
list[str]# Regular expressions matched against complete source link names.
-
attrs:
- class embodichain.lab.sim.cfg.MarkerCfg[source]#
Bases:
objectConfiguration for visual markers in the simulation.
This class defines properties for creating visual markers such as coordinate frames, lines, and points that can be used for debugging, visualization, or reference purposes in the simulation environment.
Attributes:
Index of the arena where the marker should be placed.
Type of arrow head for axis markers (e.g., CONE, ARROW, etc.).
Length of each axis arm in meters.
Thickness/size of the axis lines in meters.
List of 4x4 transformation matrices defining the position and orientation of each axis marker.
Type of corner/joint visualization for axis markers (e.g., SPHERE, CUBE, etc.).
RGBA color values for the marker lines.
Type of marker to display.
Name of the marker for identification purposes.
-
arena_index:
int# Index of the arena where the marker should be placed. -1 means all arenas.
-
arrow_type:
AxisArrowType# Type of arrow head for axis markers (e.g., CONE, ARROW, etc.).
-
axis_len:
float# Length of each axis arm in meters.
-
axis_size:
float# Thickness/size of the axis lines in meters.
-
axis_xpos:
Tensor|None# List of 4x4 transformation matrices defining the position and orientation of each axis marker.
-
corner_type:
AxisCornerType# Type of corner/joint visualization for axis markers (e.g., SPHERE, CUBE, etc.).
-
line_color:
List[float]# RGBA color values for the marker lines. Values should be between 0.0 and 1.0.
-
marker_type:
Literal['axis','line','point']# Type of marker to display. Can be ‘axis’ (3D coordinate frame), ‘line’, or ‘point’. (only axis supported now)
-
name:
str# Name of the marker for identification purposes.
-
arena_index:
- class embodichain.lab.sim.cfg.MassPropertiesCfg[source]#
Bases:
objectBackend-neutral rigid-body mass properties.
Nonemeans that the source asset or selected backend keeps ownership of that value. For a non-static body, explicit inertia requires a positive mass. A source-backed body retains authored inertia unlessrecompute_inertiais enabled; procedural or recomputed bodies derive inertia from collision geometry and the effective mass or density. Static bodies omit all mass properties during Spawn compilation.Attributes:
Center-of-mass position expressed in the rigid body's local frame [m].
Orientation of the center-of-mass/inertia frame in
xyzworder.Uniform density used to derive mass properties from collision shapes [kg/m^3].
Inertia about the center of mass [kg*m^2].
Rigid-body mass [kg].
Whether collision geometry should replace source-authored inertia.
-
com_position:
Union[Sequence[float],ndarray,None]# Center-of-mass position expressed in the rigid body’s local frame [m].
-
com_quaternion:
Union[Sequence[float],ndarray,None]# Orientation of the center-of-mass/inertia frame in
xyzworder.With three explicit principal moments, Spawn compiles
R diag(I) R.Tin body axes. With a full body-frame inertia matrix, the quaternion is ignored with a warning. Without explicit inertia it is rejected. A zero quaternion is invalid.
-
density:
float|None# Uniform density used to derive mass properties from collision shapes [kg/m^3].
The value must be positive and is ignored when
massis positive. For a source-backed body with valid authored inertia, setrecompute_inertiatoTruewhen supplying density: deriving density-based properties necessarily replaces the source tensor.
-
inertia:
Union[Sequence[float],ndarray,None]# Inertia about the center of mass [kg*m^2].
Supply either three positive principal moments or a symmetric, positive-definite 3-by-3 tensor in the body frame. Explicit inertia is accepted only together with a positive
mass. For one definition shared by both backends, either representation is supported. Principal moments pluscom_quaternionare converted to a body-frame matrix before entering DexSim.
-
mass:
float|None# Rigid-body mass [kg].
A positive value takes precedence over
density. Zero explicitly selects density-based derivation and therefore requires a positive density. Negative values are invalid.
-
recompute_inertia:
bool|None# Whether collision geometry should replace source-authored inertia.
Truediscards source inertia so the backend recomputes it from the collision geometry and effective mass or density.Falsepreserves the source inertia.Noneinherits an outer rigid-body overlay and otherwise behaves likeFalse. An invalid/all-zero source tensor is never preserved: when collision geometry exists, both backends use it as the common fallback. Explicitinertiacannot be combined with recomputation.
-
com_position:
- class embodichain.lab.sim.cfg.MeshCfg[source]#
Bases:
ShapeCfgConfiguration parameters for a triangle mesh shape.
Attributes:
Optional collision representation and cooking parameters.
Whether to compute UV coordinates for the shape.
File path to the shape mesh file.
Options for loading and processing the shape.
Optional per-vertex normals with shape
(N, 3).Direction to project the UV coordinates.
Type of the shape.
Optional array-backed triangle indices with shape
(M, 3).Optional per-vertex texture coordinates with shape
(N, 2).Optional array-backed mesh vertices with shape
(N, 3).Configuration parameters for the visual material of the shape.
-
collision:
MeshCollisionCfg|None# Optional collision representation and cooking parameters.
Noneuses a single convex hull. Mesh collision construction belongs to the geometry because it cannot be applied meaningfully to primitive shapes or to articulation links without a named source-shape overlay.
-
compute_uv:
bool# Whether to compute UV coordinates for the shape. Defaults to False.
If the shape already has UV coordinates, setting this to True will recompute and overwrite them.
-
fpath:
str|None# File path to the shape mesh file.
-
load_option:
LoadOption# Options for loading and processing the shape.
-
normals:
Union[Sequence[Sequence[float]],ndarray,None]# Optional per-vertex normals with shape
(N, 3).
-
project_direction:
List[float]# Direction to project the UV coordinates. Defaults to [1.0, 1.0, 1.0].
-
shape_type:
str# Type of the shape. Must be specified in subclasses.
-
triangles:
Union[Sequence[Sequence[int]],ndarray,None]# Optional array-backed triangle indices with shape
(M, 3).
-
uv_coords:
Union[Sequence[Sequence[float]],ndarray,None]# Optional per-vertex texture coordinates with shape
(N, 2).
-
vertices:
Union[Sequence[Sequence[float]],ndarray,None]# Optional array-backed mesh vertices with shape
(N, 3).Array-backed meshes preserve vertex order, which is useful when per-node deformable flags or kinematic trajectories refer to stable node indices.
-
visual_material:
VisualMaterialCfg|None# Configuration parameters for the visual material of the shape. Defaults to None.
-
collision:
- class embodichain.lab.sim.cfg.MeshCollisionCfg[source]#
Bases:
objectCollision-geometry construction for
MeshCfg.The approximation is explicit. Strategy-specific fields are rejected when they do not apply, so changing a numerical cooking value cannot silently select a different collision representation.
Attributes:
Approximate-convex-decomposition implementation.
Collision representation built from the source triangle mesh.
Whether Newton uses the generated SDF for hydroelastic contact.
Deprecated compatibility view of
max_hulls.Maximum hull count for
convex_decomposition; must be at least two.Inner and outer signed-distance limits of the Newton SDF band [m].
Extra padding used while Newton builds the mesh SDF [m].
Maximum SDF grid resolution; valid only for the
sdfstrategy.Target Newton sparse-SDF voxel size [m], alternative to resolution.
Newton SDF voxel storage format.
Methods:
from_dict(init_dict)Parse a mesh-collision mapping, including deprecated field names.
-
acd_method:
Optional[Literal['visacd','coacd','vhacd']]# Approximate-convex-decomposition implementation.
Noneselectsvisacdwhen compiling mesh collision geometry. VisACD requires a DexSim build with CUDA/OptiX support.
-
approximation:
Literal['convex_hull','convex_decomposition','triangle_mesh','sdf']# Collision representation built from the source triangle mesh.
- classmethod from_dict(init_dict)[source]#
Parse a mesh-collision mapping, including deprecated field names.
- Return type:
-
is_hydroelastic:
bool|None# Whether Newton uses the generated SDF for hydroelastic contact.
-
max_hulls:
int|None# Maximum hull count for
convex_decomposition; must be at least two.
-
sdf_narrow_band_range:
tuple[float,float] |None# Inner and outer signed-distance limits of the Newton SDF band [m].
-
sdf_padding:
float|None# Extra padding used while Newton builds the mesh SDF [m].
-
sdf_resolution:
int|None# Maximum SDF grid resolution; valid only for the
sdfstrategy.
-
sdf_target_voxel_size:
float|None# Target Newton sparse-SDF voxel size [m], alternative to resolution.
-
sdf_texture_format:
Optional[Literal['uint16','float32','uint8']]# Newton SDF voxel storage format.
-
acd_method:
- class embodichain.lab.sim.cfg.NRDCfg[source]#
Bases:
objectAlgorithm settings shared by targets that use the NRD path.
Pipeline selection belongs to
DenoisingCfg. This class only owns NRD tuning values and intentionally does not expose RELAX/REBLUR selection.The fields are grouped by how directly they affect the current public
nrdpath (standalone NRD RELAX): history/disocclusion controls and the post-NRD TAA controls are active-path settings. Reblur-specific blur, stabilization, and anti-lag controls are retained for native parity but can be deferred from a smaller public configuration surface because the current EmbodiChain mode does not select NRD REBLUR. Validation is a debug feature, and SH/SG mode only has an effect on RELAX with FastRT or OfflineRT.Attributes:
Suppress isolated bright history samples; may darken sparse highlights.
REBLUR Anti-Lag luminance sensitivity; inactive for standalone RELAX.
REBLUR Anti-Lag luminance sigma scale; inactive for standalone RELAX.
Maximum world-space range considered by NRD's denoising passes.
Diffuse prepass blur radius; larger values reduce noise and soften detail.
Base view-depth threshold used to reject invalid temporal history.
Alternate depth threshold for pixels selecting the mixed threshold.
Use the per-pixel threshold-mix input for thin or transparent geometry.
Generate paired-history confidence from matched probe renders.
Full-resolution spacing of paired-history probe rays; native range is 1–8.
Sensitivity used when converting history gradients into confidence.
Sigma scale used when converting history gradients into confidence.
Number of frames used to repair history after a disocclusion.
Maximum slow temporal history length for RELAX and REBLUR.
Maximum adaptive blur radius for REBLUR; inactive for standalone RELAX.
Maximum fast temporal history length used while a pixel is changing.
Number of indirect continuation rays after the primary surface.
Maximum stabilized history for REBLUR; inactive for standalone RELAX.
Minimum adaptive blur radius for REBLUR; inactive for standalone RELAX.
Enable RELAX directional SH/SG signals on FastRT and OfflineRT paths.
Specular prepass blur radius; mainly an advanced REBLUR tuning knob.
Reject post-NRD history when reprojected view depth does not match.
Minimum current-frame weight in the post-NRD temporal resolve.
Sigma scale used by the post-NRD temporal resolve.
Apply NRD's optional tone mapping before the final EmbodiChain output.
Enable NRD validation diagnostics; intended for development builds.
Methods:
Convert the settings to DexSim's native NRD configuration.
-
anti_firefly_enabled:
bool# Suppress isolated bright history samples; may darken sparse highlights.
-
antilag_luminance_sensitivity:
float# REBLUR Anti-Lag luminance sensitivity; inactive for standalone RELAX.
-
antilag_luminance_sigma_scale:
float# REBLUR Anti-Lag luminance sigma scale; inactive for standalone RELAX.
-
denoising_range:
float# Maximum world-space range considered by NRD’s denoising passes.
-
diffuse_prepass_blur_radius:
float# Diffuse prepass blur radius; larger values reduce noise and soften detail.
-
disocclusion_threshold:
float# Base view-depth threshold used to reject invalid temporal history.
-
disocclusion_threshold_alternate:
float# Alternate depth threshold for pixels selecting the mixed threshold.
-
disocclusion_threshold_mix_enabled:
bool# Use the per-pixel threshold-mix input for thin or transparent geometry.
-
history_confidence_enabled:
bool# Generate paired-history confidence from matched probe renders.
-
history_confidence_probe_stride:
int# Full-resolution spacing of paired-history probe rays; native range is 1–8.
-
history_confidence_sensitivity:
float# Sensitivity used when converting history gradients into confidence.
-
history_confidence_sigma_scale:
float# Sigma scale used when converting history gradients into confidence.
-
history_fix_frame_num:
int# Number of frames used to repair history after a disocclusion.
-
max_accumulated_frame_num:
int# Maximum slow temporal history length for RELAX and REBLUR.
-
max_blur_radius:
float# Maximum adaptive blur radius for REBLUR; inactive for standalone RELAX.
-
max_fast_accumulated_frame_num:
int# Maximum fast temporal history length used while a pixel is changing.
-
max_indirect_bounces:
int# Number of indirect continuation rays after the primary surface.
Higher values increase lighting detail and ray cost; NRD’s real-time default is one continuation bounce.
-
max_stabilized_frame_num:
int# Maximum stabilized history for REBLUR; inactive for standalone RELAX.
-
min_blur_radius:
float# Minimum adaptive blur radius for REBLUR; inactive for standalone RELAX.
-
sh_mode_enabled:
bool# Enable RELAX directional SH/SG signals on FastRT and OfflineRT paths.
-
specular_prepass_blur_radius:
float# Specular prepass blur radius; mainly an advanced REBLUR tuning knob.
-
taa_depth_rejection_enabled:
bool# Reject post-NRD history when reprojected view depth does not match.
-
taa_min_current_weight:
float# Minimum current-frame weight in the post-NRD temporal resolve.
-
taa_sigma_scale:
float# Sigma scale used by the post-NRD temporal resolve.
-
taa_tone_mapping_enabled:
bool# Apply NRD’s optional tone mapping before the final EmbodiChain output.
- to_dexsim_cfg()[source]#
Convert the settings to DexSim’s native NRD configuration.
- Return type:
NRDConfig- Returns:
Populated
dexsim.NRDConfig.- Raises:
ValueError – If mutable settings no longer contain valid values.
-
validation_enabled:
bool# Enable NRD validation diagnostics; intended for development builds.
-
anti_firefly_enabled:
- class embodichain.lab.sim.cfg.NewtonCollisionPipelineCfg[source]#
Bases:
objectNewton collision-pipeline settings owned at scene scope.
Construction values map to DexSim’s
NewtonCollisionPipelineCfg.update_intervalcontrols the DexSim-side scheduling of that external pipeline. Per-shape contact and SDF values belong toNewtonCollisionPropertiesCfginstead. The pipeline performs broad-phase pair selection, narrow-phase contact generation, and optional contact reduction for the complete scene.See the Newton collision guide for the native pipeline semantics.
Attributes:
Built-in broad-phase mode or a prebuilt Newton broad-phase object.
Maximum triangle-pair candidates allocated by the narrow phase.
Optional prebuilt Newton narrow-phase object for expert pipelines.
Whether to reduce dense mesh contacts to a representative subset.
Maximum number of allocated rigid contacts.
Optional Newton
HydroelasticSDF.Config-compatible object.Optional precomputed pairs for
"explicit"broad phase.Particle/soft contact detection distance [m].
Maximum number of allocated particle/soft contacts.
External-pipeline updates within one EmbodiChain physics step.
-
broad_phase:
Union[Literal['nxn','sap','explicit'],Any,None]# Built-in broad-phase mode or a prebuilt Newton broad-phase object.
"explicit"tests precomputed pairs,"nxn"performs an all-pairs test, and"sap"uses sweep-and-prune.Nonekeeps Newton’s default. A prebuilt object is an expert path and must be compatible withnarrow_phase.
-
max_triangle_pairs:
int# Maximum triangle-pair candidates allocated by the narrow phase.
Increase this only when complex meshes or heightfields report triangle-pair overflow. EmbodiChain intentionally uses a larger default than upstream Newton for mesh-heavy robotics scenes.
-
narrow_phase:
Any|None# Optional prebuilt Newton narrow-phase object for expert pipelines.
-
reduce_contacts:
bool# Whether to reduce dense mesh contacts to a representative subset.
Reduction lowers contact count and usually improves performance and solver stability for mesh-heavy scenes.
-
rigid_contact_max:
int|None# Maximum number of allocated rigid contacts.
Noneuses the model-provided capacity when available and otherwise lets Newton estimate it from the scene’s shapes and candidate pairs.
-
sdf_hydroelastic_config:
Any|None# Optional Newton
HydroelasticSDF.Config-compatible object.Nonedisables the hydroelastic pipeline. Individual participating procedural meshes must also opt in throughis_hydroelastic.
-
shape_pairs_filtered:
Any|None# Optional precomputed pairs for
"explicit"broad phase.When provided, this must be a Warp array of shape-index pairs with
dtype=wp.vec2i.Noneuses the model’s contact-pair list.
-
soft_contact_margin:
float# Particle/soft contact detection distance [m].
-
soft_contact_max:
int|None# Maximum number of allocated particle/soft contacts.
Nonelets Newton derive the capacity from shape and particle counts.
-
update_interval:
int|None# External-pipeline updates within one EmbodiChain physics step.
The default
1updates before every solver substep. An integerk >= 1updates at substeps0, k, 2k, ...;Noneupdates once at the first solver substep of each physics step.
-
broad_phase:
- class embodichain.lab.sim.cfg.NewtonCollisionPropertiesCfg[source]#
Bases:
CollisionPropertiesCfgNewton-native contact-envelope and particle-contact properties.
Mesh construction belongs to
MeshCfg.collision; filtering, visual, and semantic-site policies are deliberately not part of rigid-body physics. Its portable fields remain sparse so a Newton-native source overlay can modify only the requested native properties.See Newton Shape Configuration.
Attributes:
Whether the shape participates in rigid shape-shape collision.
1, 3, 4, or 6.
Optional portable contact-generation distance [m].
Additional contact-detection distance outside
margin[m].Whether Newton particles collide with this shape.
Outward collision-surface offset [m].
MuJoCo contact-parameter priority; None preserves the source value.
Optional portable target separation at rest [m].
-
collision_enabled:
bool|None# Whether the shape participates in rigid shape-shape collision.
On Newton this maps to
ShapeConfig.has_shape_collision.Nonepreserves the source/backend value.
-
condim:
int|None# 1, 3, 4, or 6.
Nonepreserves the source/backend value (normally 3). Use 4 on gripping surfaces to include torsional friction, or 6 when rolling friction is also required. Author before scene preparation so MuJoCo can allocate the corresponding constraint storage.- Type:
MuJoCo contact dimension
-
contact_offset:
float|None# Optional portable contact-generation distance [m].
-
gap:
float|None# Additional contact-detection distance outside
margin[m].Gaps from both shapes are added. Broad phase expands each shape by
margin + gap; increasing the gap detects approaching contact earlier.
-
has_particle_collision:
bool|None# Whether Newton particles collide with this shape.
Nonepreserves the source/backend value. This controls deformable contact participation; scene-level collision isolation remains scene-owned.
-
margin:
float|None# Outward collision-surface offset [m].
Margins from both shapes are added. They determine where contact is placed and also affect inertia/SDF handling for hollow shapes.
-
priority:
int|None# MuJoCo contact-parameter priority; None preserves the source value.
-
rest_offset:
float|None# Optional portable target separation at rest [m].
-
collision_enabled:
- class embodichain.lab.sim.cfg.NewtonJointDrivePropertiesCfg[source]#
Bases:
JointDrivePropertiesCfgCompatibility subtype for serialized Newton joint-drive configs.
target_modeis now portable and lives onJointDrivePropertiesCfg. The subtype remains so existingbackend="newton"dictionaries and round trips retain their type; new robot definitions should use the common class.Attributes:
Artificial inertia added to the joint-space diagonal.
Derivative velocity gain of the joint drive.
Joint drive type to apply.
Passive friction value applied along the joint degree of freedom.
Maximum drive effort [N for prismatic, N*m for revolute joints].
Maximum joint speed [m/s for prismatic, rad/s for revolute joints].
Proportional position gain of the joint drive.
Portable actuator target mode, as a scalar or joint-rule mapping.
-
armature:
Union[Dict[str,float],float,None]# Artificial inertia added to the joint-space diagonal.
Units depend on the joint model:
For prismatic (linear) joints, the unit is mass [kg].
For revolute (angular) joints, the unit is mass * scene_length^2 [kg-m^2].
Armature changes the physical model and should normally reflect actuator or gearbox inertia. Newton solver support varies.
-
damping:
Union[Dict[str,float],float,None]# Derivative velocity gain of the joint drive.
The unit depends on the joint model:
For linear joints, the unit is kg-m/s (N-s/m).
For angular joints, the unit is kg-m^2/s/rad (N-m-s/rad).
-
drive_type:
Optional[Literal['force','acceleration','none']]# Joint drive type to apply.
On the Default backend,
"force"applies a force/torque drive,"acceleration"applies a mass-independent acceleration drive, and"none"disables the drive. Newton has no acceleration-drive equivalent. Unlesstarget_modeis explicit,"force"and"acceleration"select"position_velocity"while"none"selects"none".
-
friction:
Union[Dict[str,float],float,None]# Passive friction value applied along the joint degree of freedom.
Interpretation and enforcement are backend/solver-dependent.
-
max_effort:
Union[Dict[str,float],float,None]# Maximum drive effort [N for prismatic, N*m for revolute joints].
The value is authored for both backends, but the selected Newton solver may not enforce it.
-
max_velocity:
Union[Dict[str,float],float,None]# Maximum joint speed [m/s for prismatic, rad/s for revolute joints].
The value is authored for both backends, but support is solver-dependent in Newton.
-
stiffness:
Union[Dict[str,float],float,None]# Proportional position gain of the joint drive.
The unit depends on the joint model:
For linear joints, the unit is kg-m/s^2 (N/m).
For angular joints, the unit is kg-m^2/s^2/rad (N-m/rad).
-
target_mode:
Union[Literal['none','position','velocity','position_velocity','effort'],Dict[str,Union[Literal['none','position','velocity','position_velocity','effort'],int]],int,None]# Portable actuator target mode, as a scalar or joint-rule mapping.
Accepted names and integer values are
"none"/0(passive),"position"/1,"velocity"/2,"position_velocity"/3, and"effort"/4. Default emulates these modes through its drive mode and effective gains. Newton authors the correspondingJointTargetMode; solvers without native target-mode support use deterministic gain-based fallbacks where possible.
-
armature:
- class embodichain.lab.sim.cfg.NewtonPhysicsCfg[source]#
Bases:
PhysicsBackendCfgConfiguration selector for the Newton physics backend.
DexSim wraps and extends Newton for EmbodiChain. The selected solver and collision pipeline are scene-wide. Shape, contact, material, and joint values are configured separately on object and articulation configs and compiled into DexSim Spawn descriptors.
Attributes:
Optional external collision-pipeline configuration.
Whether to enable additional Newton runtime diagnostics.
Warp device used to build and step Newton, for example
"cuda:0".World-frame gravity vector in meters per second squared.
Number of Newton solver substeps per EmbodiChain physics step.
Duration of one physics step in seconds.
Whether to finalize the Newton model with differentiable state enabled.
Optional Newton solver configuration.
Whether to hide Warp startup and kernel compile/load messages.
Newton-to-render publication policy.
Whether to capture Newton stepping in a CUDA graph when supported.
Methods:
to_dexsim_cfg(gpu_id)Convert this config to
dexsim.engine.newton_physics.NewtonCfg.- collision_cfg: NewtonCollisionPipelineCfg | Mapping[str, Any] | None#
Optional external collision-pipeline configuration.
The default preserves external contact generation for ordinary rigid-body scenes. Set to
Noneto avoid constructing or executing the external pipeline, for example when particle solvers use rigid shapes solely as one-way SDF boundaries.
- debug_mode: bool#
Whether to enable additional Newton runtime diagnostics.
- device: str | torch.device#
Warp device used to build and step Newton, for example
"cuda:0".This redeclaration intentionally takes precedence over
PhysicsBackendCfg.device, soNewtonPhysicsCfg()always starts on CUDA unless the caller explicitly supplies another device.
- gravity: Sequence[float] | np.ndarray#
World-frame gravity vector in meters per second squared.
- num_substeps: int#
Number of Newton solver substeps per EmbodiChain physics step.
The effective solver interval is
physics_dt / num_substeps.
- physics_dt: float#
Duration of one physics step in seconds.
Environment control steps may contain multiple physics steps. For Newton, this interval is further divided by
NewtonPhysicsCfg.num_substeps.
- requires_grad: bool#
Whether to finalize the Newton model with differentiable state enabled.
EmbodiChain currently requires the Semi-implicit solver for this mode and disables CUDA graph capture when gradients are enabled.
- solver_cfg: Mapping[str, Any] | NewtonSolverCfg | None#
Optional Newton solver configuration.
A mapping is converted to the matching DexSim Newton solver config. Include
solver_typeorclass_typeto select the solver, then add any parameters accepted by that DexSim solver config. If omitted, EmbodiChain preserves DexSim’s scene-awareAutoSolverCfgdefault. A DexSim build exportingAutoSolverCfgis required; no concrete-solver fallback is used.
- suppress_warp_kernel_logs: bool#
Whether to hide Warp startup and kernel compile/load messages.
Genuine Newton/Warp warnings and errors are not suppressed.
- sync_to_renderer: bool | None#
Newton-to-render publication policy.
NoneandFalseletSimulationManagerpublish on demand for windows, cameras, recording and browser visualization.Truealso requests publication on steps without a visual consumer. The manager batches consumers within each render frame. Direct DexSimWorld.updatecallers retain the underlying automatic policy: window-aware forNone, always forTrue, and disabled forFalse.
- to_dexsim_cfg(gpu_id)[source]#
Convert this config to
dexsim.engine.newton_physics.NewtonCfg.- Return type:
NewtonCfg
- use_cuda_graph: bool#
Whether to capture Newton stepping in a CUDA graph when supported.
This is ignored for gradient mode and is unavailable on a CPU device.
- class embodichain.lab.sim.cfg.NewtonRigidBodyMaterialCfg[source]#
Bases:
RigidBodyMaterialCfgNewton contact-material extensions.
Solver support differs by field. Semi-implicit and Featherstone consume
ke,kd,kf,ka,mu, andkh; MuJoCo Warp consumeske,kd,mu,kh, and the torsional/rolling coefficients; XPBD consumesmu, restitution, and torsional/rolling friction. DexSim warns when an explicitly changed contact field is ignored by the selected solver.Attributes:
Sliding friction coefficient.
Contact adhesion distance [m].
Normal contact damping coefficient.
Elastic contact stiffness coefficient.
Tangential/friction damping coefficient.
Hydroelastic contact stiffness used when hydroelastic contact is enabled.
Coefficient of restitution, where zero is inelastic and one is elastic.
Dimensionless rolling friction coefficient resisting rolling motion.
Static friction coefficient used before tangential slip begins.
Dimensionless torsional friction coefficient resisting spin.
-
dynamic_friction:
float|None# Sliding friction coefficient.
The Default backend uses it as dynamic friction; Newton uses it as its single Coulomb friction coefficient
mu.
-
ka:
float|None# Contact adhesion distance [m].
-
kd:
float|None# Normal contact damping coefficient.
-
ke:
float|None# Elastic contact stiffness coefficient.
-
kf:
float|None# Tangential/friction damping coefficient.
-
kh:
float|None# Hydroelastic contact stiffness used when hydroelastic contact is enabled.
-
restitution:
float|None# Coefficient of restitution, where zero is inelastic and one is elastic.
The active backend/solver may further restrict or ignore restitution.
-
rolling_friction:
float|None# Dimensionless rolling friction coefficient resisting rolling motion.
Newton and MuJoCo-Warp use this as
mu_rolling. It is retained in the shared schema for solvers and contact dimensions that support rolling resistance.
-
static_friction:
float|None# Static friction coefficient used before tangential slip begins.
This is currently consumed only by the Default backend.
-
torsional_friction:
float|None# Dimensionless torsional friction coefficient resisting spin.
Newton and MuJoCo-Warp use this as
mu_torsional. The active solver may ignore it.
-
dynamic_friction:
- class embodichain.lab.sim.cfg.ObjectBaseCfg[source]#
Bases:
objectBase configuration for an asset in the simulation.
This class defines the basic properties of an asset, such as its type, initial state, and collision group. It is used as a base class for specific asset configurations.
Methods:
from_dict(init_dict)Initialize the configuration from a dictionary.
Attributes:
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
uid:
str|None#
- class embodichain.lab.sim.cfg.PhysicsBackendCfg[source]#
Bases:
objectBackend-neutral simulation timing, device, and gravity configuration.
Concrete backend configs inherit this class. The config type selects the backend; no independent backend string can disagree with it.
Attributes:
Compute device used to build and step the selected physics backend.
World-frame gravity vector in meters per second squared.
Duration of one physics step in seconds.
-
device:
str|device# Compute device used to build and step the selected physics backend.
Concrete backend configurations may redeclare this field when their native runtime has a different default. In particular,
NewtonPhysicsCfgintentionally shadows this CPU default with"cuda:0". Callers can still provide an explicit device override.
-
gravity:
Union[Sequence[float],ndarray]# World-frame gravity vector in meters per second squared.
-
physics_dt:
float# Duration of one physics step in seconds.
Environment control steps may contain multiple physics steps. For Newton, this interval is further divided by
NewtonPhysicsCfg.num_substeps.
-
device:
- class embodichain.lab.sim.cfg.RenderCfg[source]#
Bases:
objectRenderCfg(renderer: “Literal[‘auto’, ‘no-render’, ‘hybrid’, ‘fast-rt’, ‘rt’]” = <factory>, spp: ‘int’ = <factory>, denoising: ‘DenoisingCfg’ = <factory>, dlss: ‘DLSSCfg’ = <factory>, nrd: ‘NRDCfg’ = <factory>, tone_mapping_enabled: ‘bool’ = <factory>, tone_mapping_exposure: ‘float’ = <factory>, min_bounces: ‘int’ = <factory>, max_bounces: ‘int’ = <factory>)
Methods:
apply_to_dexsim_config(world_config)Apply rendering settings to a DexSim world configuration.
Convert the renderer name to DexSim's renderer enum.
Attributes:
Window and offscreen denoising/reconstruction pipeline selection.
DLSS settings used when a target selects
dlss.Maximum traced path depth, counting the primary segment.
Path depth at which Russian Roulette termination may begin.
NRD settings shared by targets using standalone NRD.
Renderer backend to use for the simulation.
Samples per pixel for ray tracing rendering.
Whether to map HDR RGB output with the modified Reinhard curve.
Fixed linear exposure multiplier applied before tone mapping.
- apply_to_dexsim_config(world_config)[source]#
Apply rendering settings to a DexSim world configuration.
- Parameters:
world_config (
WorldConfig) – DexSim world configuration to update in place.- Raises:
ValueError – If rendering settings contain invalid values, including bounce limits changed after construction.
- Return type:
None
-
denoising:
DenoisingCfg# Window and offscreen denoising/reconstruction pipeline selection.
-
max_bounces:
int# Maximum traced path depth, counting the primary segment.
This bounds ordinary ray-tracing paths and NRD transparent continuations. NRD’s indirect-lighting budget is controlled separately by
NRDCfg.max_indirect_bounces.
-
min_bounces:
int# Path depth at which Russian Roulette termination may begin.
Rays can still terminate earlier on a miss or absorption. The primary segment has depth zero; this value does not guarantee a minimum path length.
-
renderer:
Literal['auto','no-render','hybrid','fast-rt','rt']# Renderer backend to use for the simulation.
Note: - ‘no-render’ selects DexSim’s NoRender backend and requires headless mode.
Native camera sensors require ‘hybrid’, ‘fast-rt’, or ‘rt’.
- ‘auto’ lets task environments select ‘no-render’ before World creation when
they have no enabled cameras, recording cameras, window, Viser or explicit rendering demand. Custom camera/visual code must explicitly select a native renderer or reserve rendering through its environment’s demand hook. The run-task launcher uses ‘fast-rt’ for native auto rendering on every platform; other entry points retain GPU-based selection. Explicit renderer selections and global defaults retain precedence.
- GPU-based auto selection: RTX-series cards use
‘hybrid’, while datacenter cards (A100/A800, H100/H800/H200/H20) use ‘fast-rt’. If no CUDA device is available or the GPU is unknown, it falls back to ‘hybrid’.
- ‘hybrid’ uses ray tracing for shadows and reflections while keeping rasterization for primary rendering,
providing a balance between performance and visual quality.
‘fast-rt’ is a fully ray-traced renderer for maximum visual fidelity, but may have higher computational cost.
‘rt’ is an offline ray-traced renderer for maximum visual fidelity, suitable for high-quality rendering tasks.
-
spp:
int# Samples per pixel for ray tracing rendering. This parameter is only valid when renderer is ‘hybrid’, ‘fast-rt’ or ‘rt’.
- to_dexsim_flags()[source]#
Convert the renderer name to DexSim’s renderer enum.
- Return type:
Renderer
-
tone_mapping_enabled:
bool# Whether to map HDR RGB output with the modified Reinhard curve.
-
tone_mapping_exposure:
float# Fixed linear exposure multiplier applied before tone mapping.
- class embodichain.lab.sim.cfg.RigidBodyMaterialCfg[source]#
Bases:
objectCommon rigid-contact material intent.
All fields use sparse-overlay semantics:
Nonepreserves the source or backend default. The Default backend consumes all three values. Newton has one Coulomb friction coefficient, so it mapsdynamic_frictiontoShapeConfig.muand currently has no separate static-friction input; restitution is consumed only by Newton solvers that support it.Attributes:
Sliding friction coefficient.
Coefficient of restitution, where zero is inelastic and one is elastic.
Static friction coefficient used before tangential slip begins.
-
dynamic_friction:
float|None# Sliding friction coefficient.
The Default backend uses it as dynamic friction; Newton uses it as its single Coulomb friction coefficient
mu.
-
restitution:
float|None# Coefficient of restitution, where zero is inelastic and one is elastic.
The active backend/solver may further restrict or ignore restitution.
-
static_friction:
float|None# Static friction coefficient used before tangential slip begins.
This is currently consumed only by the Default backend.
-
dynamic_friction:
- class embodichain.lab.sim.cfg.RigidBodyPhysicsCfg[source]#
Bases:
objectGrouped rigid-body physics configuration used by Spawn.
Every nested field defaults to
None. Withasset_physics_mode="overlay", Spawn therefore changes only explicitly configured values and preserves all other USD/URDF or backend defaults. For a newly authored procedural rigid shape, an absentcollision_propsblock receivesCollisionPropertiesCfg’s common contact envelope. Each physical concept has exactly one slot. Dict/YAML input selects a backend subclass with a local discriminator, while a unique native field may infer that subclass. Mesh collision construction belongs toMeshCfg, not this body-physics schema.Attributes:
Portable collision envelope plus one optional backend-specific subtype.
Compatibility view used by legacy object initialization.
Backend-neutral mass, inertia, COM, and recomputation overrides.
Portable contact material values plus optional backend-native coefficients.
Optional Default-native body properties.
Methods:
Capture native Default attributes in the grouped configuration.
from_dict(init_dict)Parse grouped physics properties from a YAML/JSON-style mapping.
to_dexsim_physical_attr(*[, base])Translate configured Default-compatible values to
PhysicalAttr.-
collision_props:
CollisionPropertiesCfg|None# Portable collision envelope plus one optional backend-specific subtype.
- property enable_collision: bool#
Compatibility view used by legacy object initialization.
- classmethod from_dexsim_physical_attr(attr)[source]#
Capture native Default attributes in the grouped configuration.
- Return type:
- classmethod from_dict(init_dict)[source]#
Parse grouped physics properties from a YAML/JSON-style mapping.
- Return type:
-
mass_props:
MassPropertiesCfg|None# Backend-neutral mass, inertia, COM, and recomputation overrides.
-
material_props:
RigidBodyMaterialCfg|None# Portable contact material values plus optional backend-native coefficients.
-
rigid_props:
DefaultRigidBodyPropertiesCfg|None# Optional Default-native body properties.
Newton currently exposes no body-level property group beyond common mass properties, so there is no empty Newton marker config.
- to_dexsim_physical_attr(*, base=None)[source]#
Translate configured Default-compatible values to
PhysicalAttr.- Parameters:
base (
PhysicalAttr|None) – Optional native attributes to overlay. This is used by the retained raw Default articulation path for sparse per-link updates.- Return type:
PhysicalAttr- Returns:
A DexSim physical-attribute object using its defaults for every unconfigured grouped field.
-
collision_props:
- class embodichain.lab.sim.cfg.RigidConstraintCfg[source]#
Bases:
objectConfiguration for a fixed constraint between two RigidObjects.
The constraint binds rigid_object_a’s entity[i] to rigid_object_b’s entity[i] within arena[i] (one constraint per arena).
- Parameters:
name (
str) – Base constraint name. Per-arena names are derived asf"{name}"(single env) orf"{name}_{i}"(multi env).rigid_object_a_uid (
str) – UID of the first RigidObject (must exist in the sim).rigid_object_b_uid (
str) – UID of the second RigidObject (must exist in the sim).local_frame_a (
ndarray|None) – 4x4 joint frame in object A’s local coordinates.None-> identity (object A’s origin). Accepts a single(4, 4)matrix (shared by all envs) or an(N, 4, 4)array (one frame per env). Defaults to None.local_frame_b (
ndarray|None) – 4x4 joint frame in object B’s local coordinates.None-> the frame is computed per env asinv(pose_B) @ pose_Afrom the objects’ current poses, so the constraint welds the objects at their current relative pose (rather than pulling their origins together). An explicit(4, 4)or(N, 4, 4)value is used verbatim. Defaults to None.constraint_type (
Literal['fixed']) – Reserved for future typed constraints (prismatic, revolute, spherical, d6). Only"fixed"is supported in v1.
Attention
Both objects must be
RigidObjectinstances and must share the same number of arenas.Attributes:
Constraint type.
Local joint frame on object A.
Local joint frame on object B.
Base name of the constraint (per-arena names are derived from this).
UID of the first RigidObject.
UID of the second RigidObject.
-
constraint_type:
Literal['fixed']# Constraint type. Only
"fixed"is supported in v1.
-
local_frame_a:
ndarray|None# Local joint frame on object A. None -> identity (object A’s origin).
-
local_frame_b:
ndarray|None# Local joint frame on object B. None ->
inv(pose_B) @ pose_Aper env (weld at the objects’ current relative pose).
-
name:
str# Base name of the constraint (per-arena names are derived from this).
-
rigid_object_a_uid:
str# UID of the first RigidObject.
-
rigid_object_b_uid:
str# UID of the second RigidObject.
- class embodichain.lab.sim.cfg.RigidObjectCfg[source]#
Bases:
ObjectBaseCfgConfiguration for a rigid body asset in the simulation.
This class extends the base asset configuration to include specific properties for rigid bodies, such as physical attributes and collision group.
Attributes:
How a file-backed asset's physical properties are handled.
Rigid-body physics.
Scale of the rigid body in the simulation world frame.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Shape configuration for the rigid body.
USD source asset; mutually exclusive with
shape.Methods:
from_dict(init_dict)Parse a rigid object and normalize legacy mesh collision ownership.
Return the effective file-backed physics policy.
Convert the body type to dexsim ActorType.
- asset_physics_mode: AssetPhysicsMode#
How a file-backed asset’s physical properties are handled.
"preserve"keeps the USD-authored physics."overlay"applies configured properties on top of the parsed asset. Procedural shapes always use config.
- attrs: RigidBodyPhysicsCfg#
Rigid-body physics.
RigidBodyPhysicsCfggroups portable and backend-native intent.
- body_scale: tuple | list#
Scale of the rigid body in the simulation world frame.
- body_type: Literal['dynamic', 'kinematic', 'static']#
- classmethod from_dict(init_dict)[source]#
Parse a rigid object and normalize legacy mesh collision ownership.
- Return type:
- init_local_pose: np.ndarray | None#
4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
- init_pos: tuple[float, float, float]#
Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
- init_rot: tuple[float, float, float]#
Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
- resolve_asset_physics_mode()[source]#
Return the effective file-backed physics policy.
- Return type:
Literal['preserve','overlay']
- shape: ShapeCfg | None#
Shape configuration for the rigid body.
- uid: str | None#
- class embodichain.lab.sim.cfg.RigidObjectGroupCfg[source]#
Bases:
objectConfiguration for a rigid object group asset in the simulation.
Rigid object groups can be initialized from multiple rigid object configurations specified in a folder. If folder_path is specified, user should provide a RigidObjectCfg in rigid_objects as a template configuration for all objects in the group.
For example: ```python rigid_object_group: RigidObjectGroupCfg(
folder_path=”path/to/folder”, max_num=5, rigid_objects={
- “template_obj”: RigidObjectCfg(
- shape=MeshCfg(
fpath=””, # fpath will be ignored when folder_path is specified
), body_type=”dynamic”,
)
}
)
Attributes:
Body type for all rigid objects in the group.
File extension for the rigid object assets.
Path to the folder containing the rigid object assets.
Maximum number of rigid objects to initialize from the folder.
Configuration for the rigid objects in the group.
Methods:
from_dict(init_dict)Initialize the configuration from a dictionary.
-
body_type:
Literal['dynamic','kinematic']# Body type for all rigid objects in the group.
-
ext:
str# File extension for the rigid object assets.
This is only used when folder_path is specified.
-
folder_path:
str|None# Path to the folder containing the rigid object assets.
This is used to initialize multiple rigid object configurations from a folder.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
-
max_num:
int# Maximum number of rigid objects to initialize from the folder.
This is only used when folder_path is specified.
-
rigid_objects:
Dict[str,RigidObjectCfg]# Configuration for the rigid objects in the group.
-
uid:
str|None#
- class embodichain.lab.sim.cfg.RobotCfg[source]#
Bases:
ArticulationCfgRobotCfg(uid: ‘str | None’ = <factory>, init_pos: ‘tuple[float, float, float]’ = <factory>, init_rot: ‘tuple[float, float, float]’ = <factory>, init_local_pose: ‘np.ndarray | None’ = <factory>, fpath: ‘str’ = <factory>, body_scale: ‘tuple | list’ = <factory>, compute_uv: ‘bool’ = <factory>, asset_physics_mode: ‘AssetPhysicsMode’ = <factory>, attrs: ‘RigidBodyPhysicsCfg’ = <factory>, link_attrs: ‘dict[str, LinkPhysicsOverrideCfg] | None’ = <factory>, root_props: ‘ArticulationRootPropertiesCfg’ = <factory>, joint_drive_props: ‘JointDrivePropertiesCfg’ = <factory>, init_qpos: ‘torch.Tensor | np.ndarray | Sequence[float]’ = <factory>, qpos_limits: ‘torch.Tensor | np.ndarray | Sequence[Sequence[float]] | Dict[str, List[float]] | None’ = <factory>, build_pk_chain: ‘bool’ = <factory>, control_parts: ‘Dict[str, List[str]] | None’ = <factory>, urdf_cfg: ‘URDFCfg | None’ = <factory>, solver_cfg: ‘SolverCfg | Dict[str, SolverCfg] | None’ = <factory>, workspace_cfg: ‘Dict[str, RobotWorkspaceCfg] | None’ = <factory>, sensors: ‘list[SensorCfg]’ = <factory>, enable_sensor: ‘bool’ = <factory>, *, source: ‘UsdSourceCfg | None’ = None)
Classes:
Configuration for the kinematic solver used in the robot simulation.
Attributes:
Apply configured robot physics on top of source-authored values.
Physical attributes for all links.
Scale of the articulation in the simulation world frame.
Build a pytorch-kinematics chain for FK and Jacobian computation.
Whether to compute the UV mapping for the articulation link.
Control parts is the mapping from part name to joint names.
Initialize mounted sensors when adding the robot.
Path to the articulation asset file.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Initial joint positions of the articulation.
Euler angles (in degree) of the root in simulation world frame.
Joint drive, limit, friction, and armature properties.
Named per-link physics override groups keyed by regex on link names.
Override joint position limits of the articulation.
Grouped articulation-root properties.
Mounted camera configurations with robot-local parent link names.
Solver is used to compute forward and inverse kinematics for the robot.
USD source asset; mutually exclusive with
fpath.URDF assembly configuration which allows for assembling a robot from multiple URDF components.
Runtime workspace cache configuration keyed by control-part name.
Methods:
build_pk_serial_chain([device])Build the serial chain from the URDF file.
from_dict(init_dict)Initialize the configuration from a dictionary.
save_to_file(filepath)Save config to a local file as JSON.
Return config as a JSON string.
- class SolverCfg#
Bases:
objectConfiguration for the kinematic solver used in the robot simulation.
Attributes:
The class type of the solver to be used.
The name of the end-effector link for the solver.
Weights for the inverse kinematics nearest calculation.
List of joint names for the solver.
The name of the root/base link for the solver.
The tool center point (TCP) position as a 4x4 homogeneous matrix.
The file path to the URDF model of the robot.
User defined Joint position limits [2, DOF] for the solver.
Methods:
from_dict(init_dict)Initialize the concrete solver configuration from a dictionary.
init_solver(device, **kwargs)-
class_type:
str# The class type of the solver to be used.
-
end_link_name:
str# The name of the end-effector link for the solver.
This defines the target link for forward/inverse kinematics calculations. Must match a link name in the URDF file.
- classmethod from_dict(init_dict)#
Initialize the concrete solver configuration from a dictionary.
The concrete config receives all recognized dataclass init fields in its constructor so initialization and
__post_init__observe the final inputs exactly once. Legacy unannotated config attributes are applied afterward. Unknown fields preserve the historical behavior: they are ignored with a warning.- Return type:
-
ik_nearest_weight:
Optional[List[float]]# Weights for the inverse kinematics nearest calculation.
The weights influence how the solver prioritizes closeness to the seed position when multiple solutions are available.
- abstract init_solver(device, **kwargs)#
- Return type:
-
joint_names:
list[str] |None# List of joint names for the solver.
If None, all joints in the URDF will be used. If specified, only these named joints will be included in the kinematic chain.
-
root_link_name:
str# The name of the root/base link for the solver.
This defines the starting point of the kinematic chain. Must match a link name in the URDF file.
-
tcp:
Tensor|ndarray# The tool center point (TCP) position as a 4x4 homogeneous matrix.
This represents the position and orientation of the tool in the robot’s end-effector frame. It must be a finite SE(3) rigid transform; affine transforms are not supported.
-
urdf_path:
str|None# The file path to the URDF model of the robot.
-
user_qpos_limits:
Optional[List[float]]# User defined Joint position limits [2, DOF] for the solver. If not provided (None), this value will replace by joint limits defined in urdf when solver init from robot. If provided, the solver will use the intersection of user defined limits and urdf limits as the final joint limits.
-
class_type:
- asset_physics_mode: AssetPhysicsMode#
Apply configured robot physics on top of source-authored values.
- attrs: RigidBodyPhysicsCfg#
Physical attributes for all links. We use default mass from the USD/URDF file if available. The mass and density in attrs will only be used if specified.
- body_scale: tuple | list#
Scale of the articulation in the simulation world frame.
- build_pk_chain: bool#
Build a pytorch-kinematics chain for FK and Jacobian computation.
USD assets use resolved simulation joint descriptors after preparation; URDF assets use their source kinematic tree. USD kinematics supports trees of fixed, revolute, and prismatic joints, including child-side joint frames. Set False to load other joint topologies for simulation without FK.
- build_pk_serial_chain(device=device(type='cpu'), **kwargs)[source]#
Build the serial chain from the URDF file.
Note
This method is usually used in imitation dataset saving (compute eef pose from qpos using FK) and model training (provide a differentiable FK layer or loss computation).
- Parameters:
device (torch.device) – The device to which the chain will be moved. Defaults to CPU.
**kwargs – Additional arguments for building the serial chain.
- Returns:
The serial chain of the robot for specified control part.
- Return type:
Dict[str, pk.SerialChain]
- compute_uv: bool#
Whether to compute the UV mapping for the articulation link.
Currently, the uv mapping is computed for each link with projection uv mapping method.
- control_parts: Dict[str, List[str]] | None#
Control parts is the mapping from part name to joint names.
For example, {‘left_arm’: [‘joint1’, ‘joint2’], ‘right_arm’: [‘joint3’, ‘joint4’]} If no control part is specified, the robot will use all joints as a single control part.
Official defaults use
arm/eeffor single-arm robots andleft_arm,right_arm,left_eef,right_eeffor dual-arm robots. These are naming conventions only: caller-defined part names are preserved without reserved names, automatic aliases, or inferred capabilities.Note
- if control_parts is specified, solver_cfg must be a dict with part names as
keys corresponding to the control parts name.
- The joint names in the control parts support regular expressions, e.g., ‘joint[1-6]’.
After initialization of robot, the names will be expanded to a list of full joint names.
- Robot is a derived class of Articulation, with control parts support. So the joint_drive_props
in ArticulationCfg can use control part as key to specify the corresponding joint drive properties, which will be overridden if these joint names are already specified.
- enable_sensor: bool#
Initialize mounted sensors when adding the robot. Gym overrides this with its environment-wide acquisition switch, which defaults to True.
- fpath: str#
Path to the articulation asset file.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
- init_local_pose: np.ndarray | None#
4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
- init_pos: tuple[float, float, float]#
Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
- init_qpos: torch.Tensor | np.ndarray | Sequence[float]#
Initial joint positions of the articulation.
If None, the joint positions will be set to zero. If provided, it should be an array of shape
(num_dofs,).
- init_rot: tuple[float, float, float]#
Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
- joint_drive_props: JointDrivePropertiesCfg#
Joint drive, limit, friction, and armature properties.
- link_attrs: dict[str, LinkPhysicsOverrideCfg] | None#
Named per-link physics override groups keyed by regex on link names.
Each group applies
LinkPhysicsOverrideCfg.attrson top ofattrsfor matched links only. A link must not match more than one group.
- qpos_limits: torch.Tensor | np.ndarray | Sequence[Sequence[float]] | Dict[str, List[float]] | None#
Override joint position limits of the articulation.
If None, the joint position limits from the asset file (URDF/USD) are used. If provided as a tensor/array of shape
(num_dofs, 2), it is applied in flattened source-resolved DOF order before the backend model is built. If provided as a dictionary, keys are joint names or regular expressions and values are[min, max]limits.This field replaces the asset limits for the articulation and can be used to either tighten or expand the allowed range.
- root_props: ArticulationRootPropertiesCfg#
Grouped articulation-root properties.
Fixed-base and self-collision intent is portable. Root sleep and solver iterations are Default-only fields and are ignored by Newton. The portable fields default to a fixed base with self-collision disabled. Set either field to
Noneto preserve an authored USD/backend value; URDF imports then use the established fixed-base, self-collision-off defaults.
- sensors: list[SensorCfg]#
Mounted camera configurations with robot-local parent link names.
An explicit list replaces the robot’s default suite; an empty list clears it. Sensor UIDs must be unique in the simulation. Runtime parent binding uses a copy, preserving these local calibration declarations.
- solver_cfg: SolverCfg | Dict[str, SolverCfg] | None#
Solver is used to compute forward and inverse kinematics for the robot.
- uid: str | None#
- urdf_cfg: URDFCfg | None#
URDF assembly configuration which allows for assembling a robot from multiple URDF components.
- workspace_cfg: Dict[str, RobotWorkspaceCfg] | None#
Runtime workspace cache configuration keyed by control-part name.
- class embodichain.lab.sim.cfg.RobotPresetCfg[source]#
Bases:
objectBase class for replace-only robot configurations across physics backends.
Subclasses declare complete
RobotCfgalternatives as fields. Adefaultfield is required; optional fields use Newton backend or solver profile names such asnewton,newton_mujoco_warp, ornewton_mjwarp. The activePhysicsBackendCfgselects one complete alternative atSimulationManager.add_robot(); alternatives are never field-merged.Portable robot properties should remain on one ordinary
RobotCfg. Use this wrapper only when an asset, actuator model, or native physics value genuinely requires a different complete robot definition.Example:
@configclass class MyRobotPresetCfg(RobotPresetCfg): default: RobotCfg = MyRobotCfg() newton_mujoco_warp: RobotCfg = MyNewtonRobotCfg()
Methods:
resolve(physics_cfg, *[, newton_solver_type])Return an isolated complete robot config for the active backend.
- resolve(physics_cfg, *, newton_solver_type=None)[source]#
Return an isolated complete robot config for the active backend.
- Parameters:
physics_cfg (
PhysicsBackendCfg) – The scene’s backend-selecting physics configuration.newton_solver_type (
str|None) – Resolved Newton solver name when it is already available from the runtime. If omitted, it is inferred fromphysics_cfg.
- Return type:
- Returns:
A deep copy of the highest-priority complete robot alternative.
- Raises:
TypeError – If a preset name is unsupported,
defaultis undeclared, or a selected alternative is not aRobotCfg.ValueError – If no declared alternative can satisfy the backend.
- class embodichain.lab.sim.cfg.RobotWorkspaceCfg[source]#
Bases:
objectRuntime configuration for a control-part workspace cache.
Attributes:
Path to a workspace cache entry directory or
results.npzfile.Optional minimum cached reachability score accepted for sampling.
Default runtime sampling strategy.
Cartesian voxel edge length in meters for voxel-uniform sampling.
-
cache_path:
str# Path to a workspace cache entry directory or
results.npzfile.
-
min_score:
float|None# Optional minimum cached reachability score accepted for sampling.
-
strategy:
Literal['point_uniform','voxel_uniform']# Default runtime sampling strategy.
-
voxel_size:
float# Cartesian voxel edge length in meters for voxel-uniform sampling.
-
cache_path:
- class embodichain.lab.sim.cfg.ShapeCfg[source]#
Bases:
objectShapeCfg(shape_type: ‘str’ = <factory>, visual_material: ‘VisualMaterialCfg | None’ = <factory>)
Methods:
from_dict(init_dict)Initialize the configuration from a dictionary.
Attributes:
Type of the shape.
Configuration parameters for the visual material of the shape.
- classmethod from_dict(init_dict)[source]#
Initialize the configuration from a dictionary.
- Return type:
-
shape_type:
str# Type of the shape. Must be specified in subclasses.
-
visual_material:
VisualMaterialCfg|None# Configuration parameters for the visual material of the shape. Defaults to None.
- embodichain.lab.sim.cfg.SoftObjectCfg#
alias of
VolumeDeformableObjectCfg
- class embodichain.lab.sim.cfg.SurfaceDeformableObjectCfg[source]#
Bases:
DeformableObjectCfgConfiguration for a Newton surface-deformable particle set.
Attributes:
Newton surface-deformable physical attributes.
Physical topology represented by the asset.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Newton particle flags, provided as one broadcast value or one value per node.
Newton particle radius;
Noneuses the active solver default.Render and source-mesh configuration.
Whether Newton reports source-mesh quality validation warnings.
Binding used to drive
visual_shapefrom simulation particles.Optional render mesh driven by the simulation surface.
-
attrs:
SurfaceDeformablePhysicsCfg# Newton surface-deformable physical attributes.
-
deformable_type:
Literal['surface']# Physical topology represented by the asset.
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
particle_flags:
Union[int,Sequence[int],ndarray,None]# Newton particle flags, provided as one broadcast value or one value per node.
Clear the Newton
ACTIVEbit for nodes that will be driven kinematically. Per-node arrays must follow the resolved simulation-particle order. For a surface deformable, an array-backedMeshCfgpreserves this order. A volume deformable is voxelized into a separate tetrahedral simulation mesh, so its particle indices do not correspond to source-mesh vertex indices.
-
particle_radius:
float|None# Newton particle radius;
Noneuses the active solver default.
-
uid:
str|None#
-
validate_mesh:
bool# Whether Newton reports source-mesh quality validation warnings.
-
visual_binding_mode:
Literal['auto','nearest_vertex']# Binding used to drive
visual_shapefrom simulation particles."auto"uses DexSim’s surface embedding."nearest_vertex"is useful when the render mesh duplicates simulation vertices along texture seams.
-
visual_shape:
MeshCfg|None# Optional render mesh driven by the simulation surface.
When omitted,
shapesupplies both simulation topology and rendering. Use a separately indexed mesh here when the visual asset needs authored UVs, seam vertices, or other detail that should not change the simulation mesh.
-
attrs:
- class embodichain.lab.sim.cfg.SurfaceDeformablePhysicsCfg[source]#
Bases:
objectSurface density, Newton surface elements, and optional mesh springs.
Attributes:
Whether Newton creates explicit mesh-edge springs.
Surface density [kg/m²].
Spring damping;
Noneuses the Newton default.Spring stiffness;
Noneuses the Newton default.Triangle, bending, and aerodynamic overrides; None uses Newton defaults.
-
add_springs:
bool# Whether Newton creates explicit mesh-edge springs.
-
density:
float# Surface density [kg/m²].
-
spring_kd:
float|None# Spring damping;
Noneuses the Newton default.
-
spring_ke:
float|None# Spring stiffness;
Noneuses the Newton default.
-
surface_props:
SurfaceElementPropertiesCfg# Triangle, bending, and aerodynamic overrides; None uses Newton defaults.
-
add_springs:
- class embodichain.lab.sim.cfg.SurfaceElementPropertiesCfg[source]#
Bases:
objectNewton surface triangle, bending, and aerodynamic properties.
Nonepreserves Newton’s cloth defaults; volume objects resolve it to zero, matching their disabled-by-default surface forces.Attributes:
Bending-edge damping.
Bending-edge stiffness.
Aerodynamic drag coefficient.
Triangle area stiffness.
Triangle damping.
Triangle elastic stiffness.
Aerodynamic lift coefficient.
-
edge_kd:
float|None# Bending-edge damping.
-
edge_ke:
float|None# Bending-edge stiffness.
-
tri_drag:
float|None# Aerodynamic drag coefficient.
-
tri_ka:
float|None# Triangle area stiffness.
-
tri_kd:
float|None# Triangle damping.
-
tri_ke:
float|None# Triangle elastic stiffness.
-
tri_lift:
float|None# Aerodynamic lift coefficient.
-
edge_kd:
- class embodichain.lab.sim.cfg.URDFCfg[source]#
Bases:
objectStandalone configuration class for URDF assembly.
Methods:
add_component(component_type, urdf_path[, ...])Add a robot component to the assembly configuration.
add_sensor(sensor_name, **sensor_config)Add a sensor to the robot configuration.
Assemble URDF files for the robot based on the configuration.
from_dict(init_dict)set_urdf(urdf_path)Directly specify a single URDF file for the robot, compatible with the single-URDF robot case.
Attributes:
Name of the base link in the assembled robot.
Component name prefixes used during URDF assembly.
Dictionary of robot components to be assembled.
Name used for output file and directory.
Full output file path for the assembled URDF.
Output directory prefix for the assembled URDF file.
Case normalization policy applied to joint/link names during URDF assembly.
Dictionary of sensors to be attached to the robot.
Whether to use signature check when merging URDFs.
- add_component(component_type, urdf_path, transform=None, **params)[source]#
Add a robot component to the assembly configuration.
- Parameters:
component_type (str) – The type/name of the component. Should be one of SUPPORTED_COMPONENTS (e.g., ‘chassis’, ‘torso’, ‘head’, ‘left_arm’, ‘right_hand’, ‘arm’, ‘hand’, etc.).
urdf_path (str) – Path to the component’s URDF file.
transform (np.ndarray | None) – 4x4 transformation matrix for the component in the robot frame (default: None).
**params – Additional keyword parameters for the component (e.g., color, material, etc.).
- Returns:
Returns self to allow method chaining.
- Return type:
- add_sensor(sensor_name, **sensor_config)[source]#
Add a sensor to the robot configuration.
- Parameters:
sensor_name (str) – The name of the sensor.
**sensor_config – Additional configuration parameters for the sensor.
- Returns:
Returns self to allow method chaining.
- Return type:
- assemble_urdf()[source]#
Assemble URDF files for the robot based on the configuration.
- Returns:
The path to the resulting (possibly merged) URDF file.
- Return type:
str
-
base_link_name:
str# Name of the base link in the assembled robot.
-
component_prefix:
List[tuple[str,str|None]]# Component name prefixes used during URDF assembly.
Preferred form is a list of
(component_name, prefix)tuples. For convenience, a mapping{component_name: prefix}is also accepted when constructingURDFCfgand will be normalized internally.
-
components:
Dict[str,Dict[str,Union[str,Dict,ndarray]]]# Dictionary of robot components to be assembled.
-
fname:
str|None# Name used for output file and directory. If not specified, auto-generated from component names.
-
fpath:
str|None# Full output file path for the assembled URDF. If specified, overrides fname and fpath_prefix.
-
fpath_prefix:
str# Output directory prefix for the assembled URDF file.
-
name_case:
dict[str,str]# Case normalization policy applied to joint/link names during URDF assembly.
Supported values per key are
"upper","lower"or"original"(legacy alias"none"). The default preserves source URDF casing.
-
sensors:
Dict[str,Dict[str,str|ndarray]]# Dictionary of sensors to be attached to the robot.
- set_urdf(urdf_path)[source]#
Directly specify a single URDF file for the robot, compatible with the single-URDF robot case.
- Parameters:
urdf_path (str) – Path to the robot’s URDF file.
- Returns:
Returns self to allow method chaining.
- Return type:
-
use_signature_check:
bool# Whether to use signature check when merging URDFs.
- class embodichain.lab.sim.cfg.UsdSourceCfg[source]#
Bases:
objectSelect a typed asset from a source USD stage.
Supply this as
sourceon a visual-object, rigid-object or articulation configuration. Runtime identity and placement belong to the containing configuration. This source does not bind an already imported scene entity.Attributes:
Source USD, USDA, USDC or USDZ file.
Exact absolute prim path in the source stage.
Methods:
from_dict(data)Decode a source mapping, rejecting unknown source options.
-
file_path:
str# Source USD, USDA, USDC or USDZ file.
- classmethod from_dict(data)[source]#
Decode a source mapping, rejecting unknown source options.
- Parameters:
data (
Mapping[str,object]) – Source file and optional exact source prim selector.- Return type:
- Returns:
Source configuration; call
validate()after assembly.
-
source_prim_path:
str|None# Exact absolute prim path in the source stage.
Omit only when the source contains a single candidate of the requested asset type. This is not a destination path, regex or parent/link binding.
-
file_path:
- class embodichain.lab.sim.cfg.VisualObjectCfg[source]#
Bases:
ObjectBaseCfgConfigure a render-only object, without a rigid body or colliders.
Like
RigidObjectCfg,MeshCfg.fpathsupplies ordinary mesh files such as OBJ, STL, GLB and glTF.source=UsdSourceCfg(...)optionally selects one mesh object from a source USD scene. Explicit visual-object creation uses only its appearance; USD physics is omitted. Whole-scene import instead preserves each entity’s authored physical type.Attributes:
Scale applied to the visual geometry, independently of its root pose.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Mesh, cube or sphere supplying the object's appearance.
USD source asset; mutually exclusive with
shape.Initial visibility restored by reset.
-
body_scale:
tuple[float,float,float]# Scale applied to the visual geometry, independently of its root pose.
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
source:
UsdSourceCfg|None= None# USD source asset; mutually exclusive with
shape.
-
uid:
str|None#
-
visible:
bool# Initial visibility restored by reset.
-
body_scale:
- class embodichain.lab.sim.cfg.VolumeDeformableMeshingCfg[source]#
Bases:
objectNewton tetrahedralization and render-volume binding parameters.
Attributes:
DexSim implementation used to bind render vertices to tetrahedra.
Voxel resolution used to build the tetrahedral simulation mesh.
Resolution used to remesh the source surface before tetrahedralization.
Target face count for the proxy surface; zero disables simplification.
Number of tetrahedral-mesh relaxation iterations.
Minimum tetrahedron volume relative to the voxel volume.
Maximum surface distance expressed as a voxel-size ratio.
-
embedding_impl:
str# DexSim implementation used to bind render vertices to tetrahedra.
-
simulation_mesh_resolution:
int# Voxel resolution used to build the tetrahedral simulation mesh.
-
triangle_remesh_resolution:
int# Resolution used to remesh the source surface before tetrahedralization.
-
triangle_simplify_target:
int# Target face count for the proxy surface; zero disables simplification.
-
voxel_num_relaxation_iters:
int# Number of tetrahedral-mesh relaxation iterations.
-
voxel_rel_min_tet_volume:
float# Minimum tetrahedron volume relative to the voxel volume.
-
voxel_surface_dist_ratio:
float# Maximum surface distance expressed as a voxel-size ratio.
-
embedding_impl:
- class embodichain.lab.sim.cfg.VolumeDeformableObjectCfg[source]#
Bases:
DeformableObjectCfgConfiguration for a Newton volume-deformable particle set.
Attributes:
Newton volume-deformable physical attributes.
Physical topology represented by the asset.
4x4 transformation matrix of the root in local frame.
Position of the root in simulation world frame.
Euler angles (in degree) of the root in simulation world frame.
Tetrahedral simulation-mesh voxelization attributes.
Newton particle flags, provided as one broadcast value or one value per node.
Newton particle radius;
Noneuses the active solver default.Render and source-mesh configuration.
Whether Newton reports source-mesh quality validation warnings.
-
attrs:
VolumeDeformablePhysicsCfg# Newton volume-deformable physical attributes.
-
deformable_type:
Literal['volume']# Physical topology represented by the asset.
-
init_local_pose:
ndarray|None# 4x4 transformation matrix of the root in local frame. If specified, it will override init_pos and init_rot.
-
init_pos:
tuple[float,float,float]# Position of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
init_rot:
tuple[float,float,float]# Euler angles (in degree) of the root in simulation world frame. Defaults to (0.0, 0.0, 0.0).
-
meshing:
VolumeDeformableMeshingCfg# Tetrahedral simulation-mesh voxelization attributes.
-
particle_flags:
Union[int,Sequence[int],ndarray,None]# Newton particle flags, provided as one broadcast value or one value per node.
Clear the Newton
ACTIVEbit for nodes that will be driven kinematically. Per-node arrays must follow the resolved simulation-particle order. For a surface deformable, an array-backedMeshCfgpreserves this order. A volume deformable is voxelized into a separate tetrahedral simulation mesh, so its particle indices do not correspond to source-mesh vertex indices.
-
particle_radius:
float|None# Newton particle radius;
Noneuses the active solver default.
-
uid:
str|None#
-
validate_mesh:
bool# Whether Newton reports source-mesh quality validation warnings.
-
attrs:
- class embodichain.lab.sim.cfg.VolumeDeformablePhysicsCfg[source]#
Bases:
objectVolume density, elasticity, and optional Newton surface constraints.
Attributes:
Whether Newton creates surface bending-edge constraints.
Volume density [kg/m³].
Volumetric damping coefficient forwarded as Newton
k_damp.Poisson's ratio; values approaching 0.5 resist volume change.
Optional surface forces; all coefficients default to zero.
Young's modulus [Pa]; higher values make the volume stiffer.
-
add_surface_edges:
bool# Whether Newton creates surface bending-edge constraints.
-
density:
float# Volume density [kg/m³].
-
elasticity_damping:
float# Volumetric damping coefficient forwarded as Newton
k_damp.
-
poissons:
float# Poisson’s ratio; values approaching 0.5 resist volume change.
-
surface_props:
SurfaceElementPropertiesCfg# Optional surface forces; all coefficients default to zero.
-
youngs:
float# Young’s modulus [Pa]; higher values make the volume stiffer.
-
add_surface_edges:
- class embodichain.lab.sim.cfg.WindowCameraPoseCfg[source]#
Bases:
objectConfiguration for printing the interactive viewer camera pose.
Attributes:
Whether the hotkey prints a
set_look_atcall instead of a matrix.Whether to register the
photkey when the window opens.-
convert_to_look_at:
bool# Whether the hotkey prints a
set_look_atcall instead of a matrix.
-
enable_hotkey:
bool# Whether to register the
photkey when the window opens.
-
convert_to_look_at:
- class embodichain.lab.sim.cfg.WindowRecordCfg[source]#
Bases:
objectConfiguration for interactive viewer window recording.
Attributes:
Whether to register the
rhotkey for viewer recording when the window opens.Frames per second for viewer recording.
Maximum buffered recording memory in MB before auto-stopping capture.
Optional output path for viewer recordings.
Video file prefix used when no explicit save path is provided.
-
enable_hotkey:
bool# Whether to register the
rhotkey for viewer recording when the window opens.
-
fps:
int# Frames per second for viewer recording.
-
max_memory:
int# Maximum buffered recording memory in MB before auto-stopping capture.
-
save_path:
str|None# Optional output path for viewer recordings. If None, use the default outputs directory.
-
video_prefix:
str# Video file prefix used when no explicit save path is provided.
-
enable_hotkey:
- embodichain.lab.sim.cfg.get_data_path(data_path_in_config)[source]#
Get the absolute path of the data file.
- Resolution order:
If
data_path_in_configis an absolute path, return it directly.If a matching file/directory exists under
EMBODICHAIN_DEFAULT_DATA_ROOT(which can be overridden via theEMBODICHAIN_DATA_ROOTenvironment variable), return that path.Otherwise, resolve via the registered data-class download mechanism.
- Parameters:
data_path_in_config (str) – The dataset name, optionally followed by a subpath in the format
"dataset_name/subpath".- Returns:
The absolute path of the data file.
- Return type:
str
- embodichain.lab.sim.cfg.link_attrs_from_dict(value)[source]#
Parse a
link_attrsmapping from YAML/JSON-style dicts.- Return type:
dict[str,LinkPhysicsOverrideCfg]
- embodichain.lab.sim.cfg.physics_backend_from_cfg(physics_cfg)[source]#
Infer the physics backend name from a physics configuration instance.
- Return type:
Literal['default','newton']
Common Components#
Materials#
Shapes#
Objects#
Sensors#
Robot Configurations#
Robot Motion#
Atomic Actions#
Scene Services#
Shared Types#
Utility#
Ray-Tracing Denoising and Reconstruction#
Select independent window and offscreen image-processing paths through
SimulationManagerCfg.render_cfg.denoising. The public dlss path maps to
DLSS Ray Reconstruction and nrd maps to standalone NRD RELAX. DLSS and NRD
tuning remain in their dedicated nested configs; output resolution stays owned
by the window or camera configuration.
- embodichain.lab.sim.DenoisingMode(*args, **kwargs)#
alias of
Literal[‘off’, ‘optix’, ‘dlss’, ‘nrd’]
- class embodichain.lab.sim.DenoisingCfg[source]#
Select denoising/reconstruction independently by rendering scope.
The public values describe complete image-processing paths. Native NRD method variants remain an implementation detail instead of becoming additional user-facing modes.
Methods:
__init__([window, offscreen])copy(**kwargs)Return a new object replacing specified fields with new values.
replace(**kwargs)Return a new object replacing specified fields with new values.
Convert window and offscreen selections to DexSim modes.
to_dict()Convert an object into dictionary recursively.
validate([prefix])Check the validity of configclass object.
Attributes:
Pipeline used by offscreen camera targets.
Pipeline used by the interactive window.
- __init__(window=<factory>, offscreen=<factory>)#
- copy(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
-
offscreen:
Literal['off','optix','dlss','nrd']# Pipeline used by offscreen camera targets.
- replace(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
- to_dexsim_modes()[source]#
Convert window and offscreen selections to DexSim modes.
- Return type:
tuple[RTRenderMode,RTRenderMode]- Returns:
Window and offscreen modes, in that order.
- Raises:
ValueError – If mutable settings no longer contain valid modes.
- to_dict()#
Convert an object into dictionary recursively.
Note
Ignores all names starting with “__” (i.e. built-in methods).
- Parameters:
obj (
object) – An instance of a class to convert.- Raises:
ValueError – When input argument is not an object.
- Return type:
dict[str,Any]- Returns:
Converted dictionary mapping.
- validate(prefix='')#
Check the validity of configclass object.
This function checks if the object is a valid configclass object. A valid configclass object contains no MISSING entries.
- Parameters:
obj (
object) – The object to check.prefix (
str) – The prefix to add to the missing fields. Defaults to ‘’.
- Return type:
list[str]- Returns:
A list of missing fields.
- Raises:
TypeError – When the object is not a valid configuration object.
-
window:
Literal['off','optix','dlss','nrd']# Pipeline used by the interactive window.
- class embodichain.lab.sim.DLSSCfg[source]#
DLSS settings for the public
dlssrendering path.Pipeline selection belongs to
DenoisingCfg. These controls apply when a target selects"dlss".Attention
DLSS requires a Vulkan render device, a compatible NVIDIA GPU/driver, and a DexSim build with the NGX runtime. Initialization is deferred until rendering; configuration conversion alone cannot verify support. Each enabled offscreen camera needs its own temporal history and Vulkan exchange images, increasing GPU memory use.
Methods:
__init__([dlss_quality, upsample_ratio, ...])copy(**kwargs)Return a new object replacing specified fields with new values.
replace(**kwargs)Return a new object replacing specified fields with new values.
to_dexsim_cfg(window_width, window_height)Convert settings without changing the window or camera output size.
to_dict()Convert an object into dictionary recursively.
validate([prefix])Check the validity of configclass object.
Attributes:
-1auto (58%),0Ultra Performance (~33%),1Performance (50%),2Balanced (58%),3Quality (~67%),4Ultra Quality (77%),5DLAA (100%).Positive, finite exposure multiplier used by the RR bridge.
Internal FastRT/OfflineRT window height; zero derives it from quality.
Internal FastRT/OfflineRT window width; zero derives it from quality.
DexSim compatibility field.
DexSim compatibility field.
Evaluate compatible multi-camera targets through one tiled DLSS atlas.
Optional window target/render ratio, at least 1.0.
- __init__(dlss_quality=<factory>, upsample_ratio=<factory>, render_width=<factory>, render_height=<factory>, target_width=<factory>, target_height=<factory>, tiled_enabled=<factory>, exposure_compensation=<factory>)#
- copy(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
-
dlss_quality:
int# -1auto (58%),0Ultra Performance (~33%),1Performance (50%),2Balanced (58%),3Quality (~67%),4Ultra Quality (77%),5DLAA (100%).- Type:
Quality mode and derived internal scale
-
exposure_compensation:
float# Positive, finite exposure multiplier used by the RR bridge.
-
render_height:
int# Internal FastRT/OfflineRT window height; zero derives it from quality.
-
render_width:
int# Internal FastRT/OfflineRT window width; zero derives it from quality.
- replace(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
-
target_height:
int# DexSim compatibility field. Set the actual window or camera height instead.
-
target_width:
int# DexSim compatibility field. Set the actual window or camera width instead.
-
tiled_enabled:
bool# Evaluate compatible multi-camera targets through one tiled DLSS atlas.
- to_dexsim_cfg(window_width, window_height)[source]#
Convert settings without changing the window or camera output size.
- Parameters:
window_width (
int) – Window width in pixels.window_height (
int) – Window height in pixels.
- Return type:
DLSSConfig- Returns:
Populated
dexsim.DLSSConfiginstance ready to assign toworld_config.dlss_config.- Raises:
ValueError – If the configuration contains invalid values.
- to_dict()#
Convert an object into dictionary recursively.
Note
Ignores all names starting with “__” (i.e. built-in methods).
- Parameters:
obj (
object) – An instance of a class to convert.- Raises:
ValueError – When input argument is not an object.
- Return type:
dict[str,Any]- Returns:
Converted dictionary mapping.
-
upsample_ratio:
float|None# Optional window target/render ratio, at least 1.0. None leaves zero render dimensions for DexSim to derive from quality. When specified, computes each unset render dimension from the actual window size. Only FastRT/OfflineRT windows honor these overrides; hybrid and offscreen targets derive their internal resolution from quality.
- validate(prefix='')#
Check the validity of configclass object.
This function checks if the object is a valid configclass object. A valid configclass object contains no MISSING entries.
- Parameters:
obj (
object) – The object to check.prefix (
str) – The prefix to add to the missing fields. Defaults to ‘’.
- Return type:
list[str]- Returns:
A list of missing fields.
- Raises:
TypeError – When the object is not a valid configuration object.
- class embodichain.lab.sim.NRDCfg[source]#
Algorithm settings shared by targets that use the NRD path.
Pipeline selection belongs to
DenoisingCfg. This class only owns NRD tuning values and intentionally does not expose RELAX/REBLUR selection.The fields are grouped by how directly they affect the current public
nrdpath (standalone NRD RELAX): history/disocclusion controls and the post-NRD TAA controls are active-path settings. Reblur-specific blur, stabilization, and anti-lag controls are retained for native parity but can be deferred from a smaller public configuration surface because the current EmbodiChain mode does not select NRD REBLUR. Validation is a debug feature, and SH/SG mode only has an effect on RELAX with FastRT or OfflineRT.Methods:
__init__([max_indirect_bounces, ...])copy(**kwargs)Return a new object replacing specified fields with new values.
replace(**kwargs)Return a new object replacing specified fields with new values.
Convert the settings to DexSim's native NRD configuration.
to_dict()Convert an object into dictionary recursively.
validate([prefix])Check the validity of configclass object.
Attributes:
Suppress isolated bright history samples; may darken sparse highlights.
REBLUR Anti-Lag luminance sensitivity; inactive for standalone RELAX.
REBLUR Anti-Lag luminance sigma scale; inactive for standalone RELAX.
Maximum world-space range considered by NRD's denoising passes.
Diffuse prepass blur radius; larger values reduce noise and soften detail.
Base view-depth threshold used to reject invalid temporal history.
Alternate depth threshold for pixels selecting the mixed threshold.
Use the per-pixel threshold-mix input for thin or transparent geometry.
Generate paired-history confidence from matched probe renders.
Full-resolution spacing of paired-history probe rays; native range is 1–8.
Sensitivity used when converting history gradients into confidence.
Sigma scale used when converting history gradients into confidence.
Number of frames used to repair history after a disocclusion.
Maximum slow temporal history length for RELAX and REBLUR.
Maximum adaptive blur radius for REBLUR; inactive for standalone RELAX.
Maximum fast temporal history length used while a pixel is changing.
Number of indirect continuation rays after the primary surface.
Maximum stabilized history for REBLUR; inactive for standalone RELAX.
Minimum adaptive blur radius for REBLUR; inactive for standalone RELAX.
Enable RELAX directional SH/SG signals on FastRT and OfflineRT paths.
Specular prepass blur radius; mainly an advanced REBLUR tuning knob.
Reject post-NRD history when reprojected view depth does not match.
Minimum current-frame weight in the post-NRD temporal resolve.
Sigma scale used by the post-NRD temporal resolve.
Apply NRD's optional tone mapping before the final EmbodiChain output.
Enable NRD validation diagnostics; intended for development builds.
- __init__(max_indirect_bounces=<factory>, denoising_range=<factory>, disocclusion_threshold=<factory>, disocclusion_threshold_alternate=<factory>, disocclusion_threshold_mix_enabled=<factory>, history_confidence_enabled=<factory>, history_confidence_probe_stride=<factory>, history_confidence_sigma_scale=<factory>, history_confidence_sensitivity=<factory>, max_accumulated_frame_num=<factory>, max_fast_accumulated_frame_num=<factory>, history_fix_frame_num=<factory>, diffuse_prepass_blur_radius=<factory>, specular_prepass_blur_radius=<factory>, anti_firefly_enabled=<factory>, sh_mode_enabled=<factory>, validation_enabled=<factory>, max_stabilized_frame_num=<factory>, min_blur_radius=<factory>, max_blur_radius=<factory>, antilag_luminance_sigma_scale=<factory>, antilag_luminance_sensitivity=<factory>, taa_min_current_weight=<factory>, taa_sigma_scale=<factory>, taa_depth_rejection_enabled=<factory>, taa_tone_mapping_enabled=<factory>)#
-
anti_firefly_enabled:
bool# Suppress isolated bright history samples; may darken sparse highlights.
-
antilag_luminance_sensitivity:
float# REBLUR Anti-Lag luminance sensitivity; inactive for standalone RELAX.
-
antilag_luminance_sigma_scale:
float# REBLUR Anti-Lag luminance sigma scale; inactive for standalone RELAX.
- copy(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
-
denoising_range:
float# Maximum world-space range considered by NRD’s denoising passes.
-
diffuse_prepass_blur_radius:
float# Diffuse prepass blur radius; larger values reduce noise and soften detail.
-
disocclusion_threshold:
float# Base view-depth threshold used to reject invalid temporal history.
-
disocclusion_threshold_alternate:
float# Alternate depth threshold for pixels selecting the mixed threshold.
-
disocclusion_threshold_mix_enabled:
bool# Use the per-pixel threshold-mix input for thin or transparent geometry.
-
history_confidence_enabled:
bool# Generate paired-history confidence from matched probe renders.
-
history_confidence_probe_stride:
int# Full-resolution spacing of paired-history probe rays; native range is 1–8.
-
history_confidence_sensitivity:
float# Sensitivity used when converting history gradients into confidence.
-
history_confidence_sigma_scale:
float# Sigma scale used when converting history gradients into confidence.
-
history_fix_frame_num:
int# Number of frames used to repair history after a disocclusion.
-
max_accumulated_frame_num:
int# Maximum slow temporal history length for RELAX and REBLUR.
-
max_blur_radius:
float# Maximum adaptive blur radius for REBLUR; inactive for standalone RELAX.
-
max_fast_accumulated_frame_num:
int# Maximum fast temporal history length used while a pixel is changing.
-
max_indirect_bounces:
int# Number of indirect continuation rays after the primary surface.
Higher values increase lighting detail and ray cost; NRD’s real-time default is one continuation bounce.
-
max_stabilized_frame_num:
int# Maximum stabilized history for REBLUR; inactive for standalone RELAX.
-
min_blur_radius:
float# Minimum adaptive blur radius for REBLUR; inactive for standalone RELAX.
- replace(**kwargs)#
Return a new object replacing specified fields with new values.
This is especially useful for frozen classes. Example usage:
@configclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = c.replace(x=3) assert c1.x == 3 and c1.y == 2
- Parameters:
obj (
object) – The object to replace.**kwargs – The fields to replace and their new values.
- Return type:
object- Returns:
The new object.
-
sh_mode_enabled:
bool# Enable RELAX directional SH/SG signals on FastRT and OfflineRT paths.
-
specular_prepass_blur_radius:
float# Specular prepass blur radius; mainly an advanced REBLUR tuning knob.
-
taa_depth_rejection_enabled:
bool# Reject post-NRD history when reprojected view depth does not match.
-
taa_min_current_weight:
float# Minimum current-frame weight in the post-NRD temporal resolve.
-
taa_sigma_scale:
float# Sigma scale used by the post-NRD temporal resolve.
-
taa_tone_mapping_enabled:
bool# Apply NRD’s optional tone mapping before the final EmbodiChain output.
- to_dexsim_cfg()[source]#
Convert the settings to DexSim’s native NRD configuration.
- Return type:
NRDConfig- Returns:
Populated
dexsim.NRDConfig.- Raises:
ValueError – If mutable settings no longer contain valid values.
- to_dict()#
Convert an object into dictionary recursively.
Note
Ignores all names starting with “__” (i.e. built-in methods).
- Parameters:
obj (
object) – An instance of a class to convert.- Raises:
ValueError – When input argument is not an object.
- Return type:
dict[str,Any]- Returns:
Converted dictionary mapping.
- validate(prefix='')#
Check the validity of configclass object.
This function checks if the object is a valid configclass object. A valid configclass object contains no MISSING entries.
- Parameters:
obj (
object) – The object to check.prefix (
str) – The prefix to add to the missing fields. Defaults to ‘’.
- Return type:
list[str]- Returns:
A list of missing fields.
- Raises:
TypeError – When the object is not a valid configuration object.
-
validation_enabled:
bool# Enable NRD validation diagnostics; intended for development builds.