isaaclab_newton.sim.spawners#
Sub-module for Newton material configuration exports.
Classes
|
|
Newton-specific physics material parameters for volume deformable bodies. |
|
Newton-specific material properties for a deformable body. |
|
Newton-specific physics material parameters for surface deformable bodies. |
Rigid Materials#
- class isaaclab_newton.sim.spawners.materials.NewtonMaterialCfg[source]#
Bases:
RigidBodyMaterialFragmentnewton:*rigid-body material attributes read by Newton’s USD material schema resolver.Single-namespace fragment (see
RigidBodyMaterialFragment) for the Newton-only friction knobs (torsional and rolling friction) and the per-material contact model (contact stiffness/damping, friction gain, adhesion) that replaces the deprecated per-shapeke/kd/kf/kaparameters. TheNewtonMaterialAPIschema is applied (and thenewton:*attributes authored) by the genericapply_namespaced()writer.Nonefields are left unchanged.Note
The generated
NewtonMaterialAPIUSD schema currently only declares the two friction attributes; the four contact attributes are still authored as rawnewton:*USD attributes and are read directly by Newton’s schema resolver.Composes with other rigid-body material fragments (e.g.
UsdPhysicsRigidBodyMaterialCfg) in the same fragment list passed tospawn_rigid_body_material_from_fragments(). For the legacy (non-fragment) equivalent, seeNewtonMaterialPropertiesCfg.Attributes:
Torsional friction coefficient (resistance to spinning at a contact point) [dimensionless].
Rolling friction coefficient (resistance to rolling motion) [dimensionless].
Contact normal-force stiffness [N/m].
Contact normal-force damping coefficient [N·s/m].
Friction-force stiffness gain used by the tangential (friction) contact response [N·s/m].
shapes closer than this threshold experience an attractive (adhesive) force [m].
- torsional_friction: float | None#
Torsional friction coefficient (resistance to spinning at a contact point) [dimensionless].
Writes
newton:torsionalFriction. Range: [0, inf).
- rolling_friction: float | None#
Rolling friction coefficient (resistance to rolling motion) [dimensionless].
Writes
newton:rollingFriction. Range: [0, inf).
- contact_stiffness: float | None#
Contact normal-force stiffness [N/m].
Writes
newton:contactStiffness. Replaces the deprecated per-shapekecontact parameter; used by the SemiImplicit, Featherstone, MuJoCo, and VBD solvers.
- contact_damping: float | None#
Contact normal-force damping coefficient [N·s/m].
Writes
newton:contactDamping. Replaces the deprecated per-shapekdcontact parameter; used by the SemiImplicit, Featherstone, MuJoCo, and VBD solvers.
Deformable Materials#
Newton provides the backend-specific deformable material cfgs. Deformable material spawning is unified in
isaaclab.sim.spawners.materials.spawn_deformable_body_material().
- class isaaclab_newton.sim.spawners.materials.NewtonDeformableBodyMaterialCfg[source]#
Bases:
DeformableBodyMaterialBaseCfg,NewtonDeformableMaterialCfgNewton-specific physics material parameters for volume deformable bodies.
Attributes:
First Lame material parameter [Pa].
Second Lame material parameter [Pa].
Damping stiffness for tetrahedral elements [Pa*s].
The material density [kg/m^3].
Particle radius [m] used by the Newton backend.
- class isaaclab_newton.sim.spawners.materials.NewtonDeformableMaterialCfg[source]#
Bases:
objectNewton-specific material properties for a deformable body.
These properties are set with the prefix
newton:<property_name>.Attributes:
The material density [kg/m^3].
Particle radius [m] used by the Newton backend.
- class isaaclab_newton.sim.spawners.materials.NewtonSurfaceDeformableBodyMaterialCfg[source]#
Bases:
SurfaceDeformableBodyMaterialBaseCfg,NewtonDeformableMaterialCfgNewton-specific physics material parameters for surface deformable bodies.
Attributes:
Triangle area-preserving stiffness [Pa].
Triangle area stiffness [Pa].
Triangle area damping [Pa*s].
Bending stiffness [N*m].
The material density [kg/m^3].
Particle radius [m] used by the Newton backend.
Bending damping [N*m*s].
Newton MPM particle spawner utilities.
Classes
Base configuration for declarative Newton MPM particle generation. |
|
Generate a regular MPM particle lattice in an axis-aligned local box. |
|
Generate MPM particles from explicit local-space positions. |
|
Per-particle material values consumed by Newton's implicit MPM solver. |
MPM Particles#
Declarative particle generation for MPMObject.
The spawner creates a placeholder Xform prim; the particles themselves are
emitted into the Newton model builder during replication.
- class isaaclab_newton.sim.spawners.mpm.MPMParticleSpawnerCfg[source]#
Bases:
SpawnerCfgBase configuration for declarative Newton MPM particle generation.
Particle geometry is emitted directly into Newton during scene replication. The USD spawner creates only a lightweight placeholder prim used by Isaac Lab’s scene and cloning machinery.
Attributes:
Physical material values applied to generated particles.
RGB display color for particle visualization.
Optional visual-material spawner configuration bound to each particle cloud.
Whether the spawned asset should be visible.
List of semantic tags to add to the spawned asset.
Whether to copy the asset from the source prim or inherit it.
Path where the prototype is spawned.
USD-stage particle visualization update frequency in render frames.
- material: MPMParticleMaterialCfg#
Physical material values applied to generated particles.
- visual_material: VisualMaterialCfg | None#
Optional visual-material spawner configuration bound to each particle cloud.
- semantic_tags: list[tuple[str, str]] | None#
List of semantic tags to add to the spawned asset. Defaults to None, which means no semantic tags will be added.
The semantic tags follow the Replicator Semantic tagging system. Each tag is a tuple of the form
(type, data), wheretypeis the type of the tag anddatais the semantic label associated with the tag. For example, to annotate a spawned asset in the class avocado, the semantic tag would be[("class", "avocado")].You can specify multiple semantic tags by passing in a list of tags. For example, to annotate a spawned asset in the class avocado and the color green, the semantic tags would be
[("class", "avocado"), ("color", "green")].See also
For more information on the semantics filter, see the documentation for the semantics schema editor.
- class isaaclab_newton.sim.spawners.mpm.MPMGridCfg[source]#
Bases:
MPMParticleSpawnerCfgGenerate a regular MPM particle lattice in an axis-aligned local box.
Attributes:
Whether the spawned asset should be visible.
List of semantic tags to add to the spawned asset.
Whether to copy the asset from the source prim or inherit it.
Path where the prototype is spawned.
Physical material values applied to generated particles.
RGB display color for particle visualization.
Optional visual-material spawner configuration bound to each particle cloud.
USD-stage particle visualization update frequency in render frames.
Lower local-space corner [m], shape
(3,).Upper local-space corner [m], shape
(3,).Target MPM voxel size [m], used with
particles_per_cellto choose lattice resolution.Particle resolution multiplier applied independently along each axis.
Particle placement convention.
Width of Newton's uniform per-axis jitter interval [m].
Per-particle mass [kg].
Particle radius [m].
- semantic_tags: list[tuple[str, str]] | None#
List of semantic tags to add to the spawned asset. Defaults to None, which means no semantic tags will be added.
The semantic tags follow the Replicator Semantic tagging system. Each tag is a tuple of the form
(type, data), wheretypeis the type of the tag anddatais the semantic label associated with the tag. For example, to annotate a spawned asset in the class avocado, the semantic tag would be[("class", "avocado")].You can specify multiple semantic tags by passing in a list of tags. For example, to annotate a spawned asset in the class avocado and the color green, the semantic tags would be
[("class", "avocado"), ("color", "green")].See also
For more information on the semantics filter, see the documentation for the semantics schema editor.
- copy_from_source: bool#
Whether to copy the asset from the source prim or inherit it. Defaults to True.
This parameter is only used when cloning prims. If False, then the asset will be inherited from the source prim, i.e. all USD changes to the source prim will be reflected in the cloned prims.
- material: MPMParticleMaterialCfg#
Physical material values applied to generated particles.
- visual_material: VisualMaterialCfg | None#
Optional visual-material spawner configuration bound to each particle cloud.
- voxel_size: float#
Target MPM voxel size [m], used with
particles_per_cellto choose lattice resolution.
- particles_per_cell: float#
Particle resolution multiplier applied independently along each axis.
For example,
2doubles the lattice resolution along every axis and therefore creates approximately eight times as many particles in 3D.
- particle_placement: Literal['boundary', 'cell_center']#
Particle placement convention.
"boundary"preserves the original behavior by emitting particles on both box boundaries."cell_center"emits one equal-volume particle at each lattice-cell center, so derived particle masses sum to the requested box mass.
- jitter: float#
Width of Newton’s uniform per-axis jitter interval [m].
Newton samples each position component in
[-jitter / 2, jitter / 2].
- class isaaclab_newton.sim.spawners.mpm.MPMPointsCfg[source]#
Bases:
MPMParticleSpawnerCfgGenerate MPM particles from explicit local-space positions.
Attributes:
Whether the spawned asset should be visible.
List of semantic tags to add to the spawned asset.
Whether to copy the asset from the source prim or inherit it.
Path where the prototype is spawned.
Physical material values applied to generated particles.
RGB display color for particle visualization.
Optional visual-material spawner configuration bound to each particle cloud.
USD-stage particle visualization update frequency in render frames.
Local-space particle positions [m], shape
(num_particles, 3).Local-space particle velocities [m/s], shape
(num_particles, 3).Positive particle masses [kg], either scalar or one value per particle.
Positive particle radii [m], either scalar or one value per particle.
- semantic_tags: list[tuple[str, str]] | None#
List of semantic tags to add to the spawned asset. Defaults to None, which means no semantic tags will be added.
The semantic tags follow the Replicator Semantic tagging system. Each tag is a tuple of the form
(type, data), wheretypeis the type of the tag anddatais the semantic label associated with the tag. For example, to annotate a spawned asset in the class avocado, the semantic tag would be[("class", "avocado")].You can specify multiple semantic tags by passing in a list of tags. For example, to annotate a spawned asset in the class avocado and the color green, the semantic tags would be
[("class", "avocado"), ("color", "green")].See also
For more information on the semantics filter, see the documentation for the semantics schema editor.
- copy_from_source: bool#
Whether to copy the asset from the source prim or inherit it. Defaults to True.
This parameter is only used when cloning prims. If False, then the asset will be inherited from the source prim, i.e. all USD changes to the source prim will be reflected in the cloned prims.
- material: MPMParticleMaterialCfg#
Physical material values applied to generated particles.
- visual_material: VisualMaterialCfg | None#
Optional visual-material spawner configuration bound to each particle cloud.
- velocities: Sequence[Sequence[float]] | None#
Local-space particle velocities [m/s], shape
(num_particles, 3).If
None, all initial velocities are zero.
- class isaaclab_newton.sim.spawners.mpm.MPMParticleMaterialCfg[source]#
Bases:
objectPer-particle material values consumed by Newton’s implicit MPM solver.
This lightweight value configuration does not create or bind a USD material. Its values are forwarded to Newton as
mpm:*custom attributes when particles are emitted into the model builder. Density is used only when a particle generator derives mass.The defaults model a dry sand-like granular material.
Attributes:
Particle material density [kg/m^3] used to derive particle mass.
Young's modulus [Pa].
Dimensionless Poisson's ratio for elasticity.
Plastic viscosity [Pa·s].
Dimensionless particle friction coefficient.
Elastic damping relaxation time [s].
Pressure at which the material yields [Pa].
Dimensionless tensile-to-compressive yield ratio.
Von Mises yield stress [Pa].
Dimensionless plastic hardening factor.
Dimensionless granular dilatancy factor.