isaaclab_newton.physics#
Implementation backends for simulation interfaces.
Classes
Newton physics manager for Isaac Lab. |
|
Everything bound to one finalized Newton model, and the operations that initialize, step and query it. |
|
Native replication outputs, kept across hard resets. |
|
Per-step MuJoCo Warp DOF channel for one Newton actuator. |
|
Configuration for Newton physics manager. |
|
Allocate model and state from the matching builder; closing them leaves the builder intact. |
|
Share mutable construction data, populated before model allocation and retained across hard resets. |
|
Global soft-contact parameters applied to the finalized Newton model. |
|
Configuration for Newton collision pipeline. |
|
Default per-shape collision properties applied to all shapes in a Newton scene. |
|
How Isaac Lab builds and drives a Newton solver. |
|
Newton's MuJoCo Warp solver, which steps in place on one state. |
|
Newton's Vertex Block Descent solver. |
|
Newton's XPBD solver, which double-buffers state. |
|
Newton's Featherstone solver, which double-buffers state. |
|
Newton's Kamino solver, which resets its internals through forward kinematics. |
|
Newton's implicit MPM solver, which steps particle materials in place on one state. |
|
Configuration of a Newton solver. |
|
Configuration for MuJoCo Warp solver-related parameters. |
|
Configuration for the Vertex Block Descent solver. |
|
An implicit integrator using eXtended Position-Based Dynamics (XPBD) for rigid and soft body simulation. |
|
A semi-implicit integrator using symplectic Euler. |
|
Internal Kamino collision-detector parameters. |
|
Global constraint stabilization parameters for Kamino. |
|
DVI forward-dynamics solver parameters for Kamino. |
|
Configuration for Kamino with the DVI forward-dynamics solver. |
|
Constrained forward-dynamics problem parameters for Kamino. |
|
Forward-kinematics reset solver parameters for Kamino. |
|
Material mixing parameters for Kamino contacts. |
|
P-ADMM forward-dynamics solver parameters for Kamino. |
|
Configuration for Kamino with the P-ADMM forward-dynamics solver. |
|
Configuration for Newton's implicit Material Point Method (MPM) solver. |
|
Configuration for SDF-based hydroelastic collision handling. |
Physics Manager#
- class isaaclab_newton.physics.NewtonManager[source]#
Bases:
PhysicsManagerNewton physics manager for Isaac Lab.
Runs one
NewtonBackendthrough the physics lifecycle and keeps what survives hard resets: the builder, site requests, replication outputs and decimation.Lifecycle:
initialize() -> reset() -> step()(repeated)-> close().Attributes:
Backend implementation key used by asset and sensor factories.
Shared construction builder, acquired at
initialize()and kept across hard resets.Data bound to the finalized model; replaced on every hard reset.
Whether contacts read one material table shared by all environments instead of per-shape values.
Whether this backend can service
--anim_recording_enabled(OVD Recorder).Backend views by prim path expression, shared by the consumers of this manager.
Methods:
__init__(cfg)Store the physics configuration this manager runs.
setup_deformable_body(prim, deformable_type, ...)Apply Newton's token deformable anchor schemas and sync the visual mesh geometry.
initialize(sim_context)Initialize the manager with simulation context.
reset([soft])Reset physics simulation.
forward()Update articulation kinematics without stepping physics; see
NewtonBackend.forward().Newton GL headless perspective video capture.
step()Advance physics by one environment step, or one physics step when the environment runs decimation.
close()Clean up Newton physics resources.
Return the SceneDataBackend for the SceneDataProvider.
register_callback(callback, event[, order, ...])Register a callback.
Return the registered articulation views.
Check if fabric interface is enabled (not applicable for Newton).
clear()Clear all Newton-specific state (callbacks cleared by super().close()).
register_site(body_pattern, xform, *[, ...])Request a site for injection into prototypes before replication.
inject_sites(main_builder, source_builders)Add unresolved sites to source builders, or to the main builder for global and shared-asset sites.
record_clone(record, site_index_map)Record native replication outputs for model finalization and consumers.
Return resolved sites by label.
Return the root transform of each cloned world, or
Nonewithout replication.Return per-source builders retained from replication, keyed by clone-plan source path.
Request an extended state attribute (e.g.
"body_qdd") from the builder before finalization.Request an extended contact attribute (e.g.
"force") from the builder before finalization.add_model_change(change)Register a model change to notify the solver at the next step.
invalidate_fk([env_mask, articulation_ids, ...])Publish an authored-state change and schedule FK; see
NewtonBackend.invalidate_fk().invalidate_body_state([env_mask, consume_mask])Publish directly authored body state; see
NewtonBackend.invalidate_body_state().Start simulation by finalizing model and initializing state.
Import the explicitly declared clone plan into the Newton builder.
Build the solver, its contacts and the initial body state; see
NewtonBackend.init_solver().create_visual_material_writer(batches)Compile material-to-shape addresses for the active Newton model.
create_visual_shape_color_writer(asset, ...)Compile selected articulation-body shape addresses for the active Newton model.
Return the active scene data provider.
Run the model's Newton actuators inside the step; see
NewtonBackend.activate_actuators().register_solver_init_callback(callback)Append a one-shot hook invoked once the solver exists, before the initial FK and any CUDA graph capture.
register_pre_actuator_callback(callback)Append a hook invoked before the Newton actuators of every physics step.
register_post_actuator_callback(callback)Append a hook invoked after the Newton actuators of every physics step.
register_state_force_callback(callback)Register a graph-safe callback that applies forces before every solver substep.
register_post_step_callback(callback)Append a hook invoked once per
step(), after the last solver substep and before sensors update.unregister_post_step_callback(callback)Remove a post-step callback; removing an absent callback is a no-op.
set_decimation(decimation)Set the decimation count; see
NewtonBackend.set_decimation().Whether
step()executes the full decimation loop; seeNewtonBackend.handles_decimation().add_contact_sensor([body_names_expr, ...])Add a contact sensor between bodies or shapes; see
NewtonBackend.add_contact_sensor().Hook after visualizers have stepped during
render().Remove all registered callbacks.
deregister_callback(callback_id)Remove a registered callback.
dispatch_event(event[, payload])Dispatch an event to all registered callbacks.
fix_articulation_root(articulation_prim[, stage])Ensure that an articulation root has one enabled world fixed joint.
Get the tensor backend being used ("numpy" or "torch").
Get the physics simulation device.
Get the physics timestep in seconds.
Get the current simulation time in seconds.
pause()Pause physics simulation.
play()Start or resume physics simulation.
Sync deferred physics state to the rendering backend.
safe_callback_invoke(fn, *args[, ...])Invoke a callback, catching exceptions that would be swallowed by external event buses.
stop()Stop physics simulation.
Block until the timeline is playing.
add_imu_sensor(sites)Add an IMU sensor at sites; see
NewtonBackend.add_imu_sensor().- backend_name: ClassVar[str] = 'newton'#
Backend implementation key used by asset and sensor factories.
- __init__(cfg: NewtonCfg)[source]#
Store the physics configuration this manager runs.
- Parameters:
cfg¶ – Physics configuration whose
class_typeselected this manager.
- builder: ModelBuilder | None#
Shared construction builder, acquired at
initialize()and kept across hard resets.
- backend: NewtonBackend | None#
Data bound to the finalized model; replaced on every hard reset.
Whether contacts read one material table shared by all environments instead of per-shape values.
- classmethod setup_deformable_body(prim: Any, deformable_type: str, sim_mesh_prim: Any, vis_mesh_prim: Any) None[source]#
Apply Newton’s token deformable anchor schemas and sync the visual mesh geometry.
- initialize(sim_context: SimulationContext) None[source]#
Initialize the manager with simulation context.
- Parameters:
sim_context¶ – Parent simulation context.
- reset(soft: bool = False) None[source]#
Reset physics simulation.
A hard reset (
soft=False) closes the backend, with its solver, contacts, step callbacks and captured graph, and finalizes a new one. Consumers bind to it again onPHYSICS_READY; reacquireasset.dataand its arrays afterwards. A soft reset keeps the backend.- Parameters:
soft¶ – If True, skip full reinitialization.
- forward() None[source]#
Update articulation kinematics without stepping physics; see
NewtonBackend.forward().
- step() None[source]#
Advance physics by one environment step, or one physics step when the environment runs decimation.
- get_scene_data_backend() SceneDataBackend | None[source]#
Return the SceneDataBackend for the SceneDataProvider.
- register_callback(callback: Callable, event: PhysicsEvent, order: int = 0, name: str | None = None, wrap_weak_ref: bool = True) CallbackHandle[source]#
Register a callback. Passes event to parent class.
- register_site(body_pattern: str | None, xform: transformf, *, per_world: bool = False) str[source]#
Request a site for injection into prototypes before replication.
Sensors call this during
__init__. Identical(body_pattern, per_world, transform)requests share a site, and requests persist untilclose(), so sites survive hard resets without being requested again. The pattern matches prototype-local body labels (e.g."Robot/finger.*") during replication, and wildcard patterns create one site per matched body.
- inject_sites(main_builder: newton.ModelBuilder, source_builders: dict[str, newton.ModelBuilder]) tuple[dict[str, int], dict[int, dict[str, list[int]]], dict[str, transformf]][source]#
Add unresolved sites to source builders, or to the main builder for global and shared-asset sites.
- Parameters:
- Returns:
global site shape indices by label, builder-local site indices by
id(builder)and label, and world-root site transforms by label.- Return type:
(global_site_indices, source_site_indices, env_root_sites)
- record_clone(record: NewtonCloneRecord, site_index_map: dict[str, tuple[int, None] | tuple[None, list[list[int]]]]) None[source]#
Record native replication outputs for model finalization and consumers.
- get_site_index_map() dict[str, tuple[int, None] | tuple[None, list[list[int]]]][source]#
Return resolved sites by label.
- get_world_xforms() list[transformf] | None[source]#
Return the root transform of each cloned world, or
Nonewithout replication.
- get_clone_source_builders() dict[str, newton.ModelBuilder][source]#
Return per-source builders retained from replication, keyed by clone-plan source path.
- request_extended_state_attribute(attr: str) None[source]#
Request an extended state attribute (e.g.
"body_qdd") from the builder before finalization.- Parameters:
attr¶ – State attribute name (must be in
State.EXTENDED_ATTRIBUTES).
- request_extended_contact_attribute(attr: str) None[source]#
Request an extended contact attribute (e.g.
"force") from the builder before finalization.- Parameters:
attr¶ – Contact attribute name.
- add_model_change(change: newton.ModelFlags) None[source]#
Register a model change to notify the solver at the next step.
- invalidate_fk(env_mask: array | None = None, articulation_ids: array | None = None, *, articulation_mask: array | None = None, consume_mask: bool = False) None[source]#
Publish an authored-state change and schedule FK; see
NewtonBackend.invalidate_fk().Asset writers invalidate their own caches separately. Pending work is consumed at the next forward, raw-state, rendering, or physics-step boundary.
- invalidate_body_state(env_mask: array | None = None, *, consume_mask: bool = False) None[source]#
Publish directly authored body state; see
NewtonBackend.invalidate_body_state().
- start_simulation() None[source]#
Start simulation by finalizing model and initializing state.
This function finalizes the model and initializes the simulation state. Note: Collision pipeline is initialized later in initialize_solver() after we determine whether the solver needs external collision detection.
- instantiate_builder_from_stage()[source]#
Import the explicitly declared clone plan into the Newton builder.
- initialize_solver() None[source]#
Build the solver, its contacts and the initial body state; see
NewtonBackend.init_solver().
- create_visual_material_writer(batches: tuple[VisualMaterialBatch, ...]) VisualMaterialWriter[source]#
Compile material-to-shape addresses for the active Newton model.
- create_visual_shape_color_writer(asset: BaseArticulation, body_names: tuple[str, ...]) VisualShapeColorWriter[source]#
Compile selected articulation-body shape addresses for the active Newton model.
- get_scene_data_provider() SceneDataProvider[source]#
Return the active scene data provider.
- activate_newton_actuator_path() None[source]#
Run the model’s Newton actuators inside the step; see
NewtonBackend.activate_actuators().
- register_solver_init_callback(callback: Callable[[], None]) None[source]#
Append a one-shot hook invoked once the solver exists, before the initial FK and any CUDA graph capture.
- register_pre_actuator_callback(callback: Callable[[], None]) None[source]#
Append a hook invoked before the Newton actuators of every physics step.
Each callback is recorded into the captured step, so it must be graph-safe. Hard resets discard these hooks; register them again when the new model is ready.
- register_post_actuator_callback(callback: Callable[[], None]) None[source]#
Append a hook invoked after the Newton actuators of every physics step.
Each callback is recorded into the captured step right after the Newton actuators and before the solver substeps, so its writes to
state/controlare visible to the integrator on the same iteration. Callbacks fire in registration order. Hard resets discard these hooks; register them again when the new model is ready.
- register_state_force_callback(callback: Callable[[newton.State], None]) None[source]#
Register a graph-safe callback that applies forces before every solver substep.
Hard resets discard these hooks; register them again when the new model is ready.
- Parameters:
callback¶ – Function that adds forces [N, N·m] to the provided state.
- register_post_step_callback(callback: Callable[[], None]) None[source]#
Append a hook invoked once per
step(), after the last solver substep and before sensors update.The hook reflects the state after all decimation iterations of the step. Callbacks must be graph-safe (fixed shapes, no host branching on device data) because they are recorded into the captured step. Hard resets discard these hooks; register them again when the new model is ready.
- unregister_post_step_callback(callback: Callable[[], None]) None[source]#
Remove a post-step callback; removing an absent callback is a no-op.
- set_decimation(decimation: int) None[source]#
Set the decimation count; see
NewtonBackend.set_decimation().Once Newton actuators run in the step, one
step()advances the whole decimation loop.
- handles_decimation() bool[source]#
Whether
step()executes the full decimation loop; seeNewtonBackend.handles_decimation().
- add_contact_sensor(body_names_expr: str | list[str] | None = None, shape_names_expr: str | list[str] | None = None, contact_partners_body_expr: str | list[str] | None = None, contact_partners_shape_expr: str | list[str] | None = None, verbose: bool = False) newton.sensors.SensorContact[source]#
Add a contact sensor between bodies or shapes; see
NewtonBackend.add_contact_sensor().
- after_visualizers_render() None[source]#
Hook after visualizers have stepped during
render().Use for physics-backend sync (e.g. fabric) if needed. Default is a no-op.
- clear_callbacks() None[source]#
Remove all registered callbacks.
IDs remain unique for this manager’s lifetime. Otherwise a retained handle could deregister a new callback after a close and reinitialization of the same manager.
- deregister_callback(callback_id: int | CallbackHandle) None[source]#
Remove a registered callback.
- Parameters:
callback_id¶ – The ID or CallbackHandle returned by register_callback().
- dispatch_event(event: PhysicsEvent, payload: Any = None) None[source]#
Dispatch an event to all registered callbacks.
This is the default implementation using simple callback lists. Subclasses may override or extend with platform-specific dispatch.
- classmethod fix_articulation_root(articulation_prim: Any, stage: Any = None) Any[source]#
Ensure that an articulation root has one enabled world fixed joint.
An articulation rooted at a fixed joint that attaches it to the world, a layout that UsdPhysics allows, is fixed by that joint. The base implementation leaves the root in place. Backends whose parser requires a different root topology may relocate it and return the resulting root prim.
- Parameters:
- Returns:
The articulation-root prim after backend normalization.
- Raises:
NotImplementedError – If a new joint is needed and the root is not a rigid body.
- pre_render() None[source]#
Sync deferred physics state to the rendering backend.
Called by
render()before cameras and visualizers read scene data. The default implementation is a no-op. Backends that defer transform writes (e.g. Newton’s dirty-flag pattern) should override this to flush pending updates.
- static safe_callback_invoke(fn: Callable, *args, backend_manager: PhysicsManager | None = None, physics_manager: PhysicsManager | None = None) None[source]#
Invoke a callback, catching exceptions that would be swallowed by external event buses.
Ignores
ReferenceError(from garbage-collected weakref proxies). All other exceptions are forwarded to backend_manager.``store_callback_exception`` when available (see note below), or re-raised immediately otherwise.- Parameters:
- Note (Octi):
The carb event bus used by PhysX/Omniverse silently swallows exceptions raised inside callbacks.
PhysxManagerworks around this by storing the exception and re-raising it after event dispatch completes (inreset()/step()). Backends that dispatch events directly (e.g. Newton) don’t need this — exceptions propagate normally — sostore_callback_exceptionis not called for them. This is a known wart; a cleaner solution is actively being explored.
- supports_anim_recording: ClassVar[bool] = False#
Whether this backend can service
--anim_recording_enabled(OVD Recorder).Overridden by backends that implement the recorder (currently PhysX-only).
- views: dict[str, Any]#
Backend views by prim path expression, shared by the consumers of this manager.
- add_imu_sensor(sites: list[int]) newton.sensors.SensorIMU[source]#
Add an IMU sensor at sites; see
NewtonBackend.add_imu_sensor().
- isaaclab_newton.physics.create_builder(physics_cfg: NewtonCfg | None = None, up_axis: str | None = None, **kwargs) newton.ModelBuilder[source]#
Create a
ModelBuilderconfigured with Isaac Lab’s defaults.Forwards
NewtonShapeCfgdefaults onto Newton’s upstreamModelBuilder.default_shape_cfgviachecked_apply(), and registers the custom attributes the configured solver reads. Without a Newton configuration the default shape settings still apply, so rough-terrain margin and gap hold during early construction.
- class isaaclab_newton.physics.NewtonBackend[source]#
Everything bound to one finalized Newton model, and the operations that initialize, step and query it.
A render-only backend (non-Newton physics) holds only the model and
state_0.Attributes:
Finalized Newton model;
model.num_envsis its world count.Advanced whenever the step or FK changes the state; asset data recomputes derived values cached before it.
(start, count)particle range per replicated deformable prim path.(start, count, kind)particle range per deformable label;kindis"surface"or"volume".Current state; the solver reads it and, for double-buffered solvers, writes
state_1.First particle index per deformable label on a render-only backend; empty on a simulation backend.
Timestamp of the last BVH refit, shared by ray casters and cameras.
Newton physics settings, or
Nonefor a render-only backend.Duration of one physics step [s].
Solver substeps per physics step.
Duration of one solver substep [s].
Warp determinism mode of the solver and collision pipeline.
Next state written by the solver.
Joint targets and applied forces read by the solver.
Newton solver, built by
init_solver().Isaac Lab driver of
solver, built fromNewtonCfg.solver_cfgbyinit_solver().Collision pipeline, or
Nonewhen the solver collides internally.Contacts produced by the collision pipeline or the solver.
Solver-owned contact forces when registered sensors require them.
Body forces [N, N·m] written before the step, re-applied before every substep.
Worlds to reset; the final slot is Newton's global world, which Isaac Lab never resets.
Articulations whose forward kinematics must be evaluated.
Whether joint coordinates changed since the last forward kinematics.
Whether state was written inside an outer CUDA graph capture;
forward()then always runs.Model-property categories to notify the solver of at the next step.
Ignored model-property categories already warned about.
Newton contact sensors keyed by their request.
Newton IMU sensors, updated after each physics step.
Newton actuators run inside the step, or
None.Whether an articulation runs its Newton actuators in the step (
activate_actuators()).Run before the Newton actuators of every physics step.
Run after the Newton actuators of every physics step, before its solver substeps.
Add forces [N, N·m] to the input state of every solver substep.
Run once after the last solver substep of a
step().Run once by
init_solver(), after the solver exists and before the initial FK.Physics steps per environment step.
Records the step as a CUDA graph, or
Nonewhen the step runs eagerly; set byinit_solver().Captured parts of the step, keyed by part; empty until the first step is captured.
Methods:
create_visual_material_writer(batches)Bind material writes to this resource's native shape-color buffer.
close()Drop native handles after consumers release their bindings.
init_solver([env_template, relaxed_capture])Build the solver and its contacts, run the solver-init callbacks, and evaluate the initial FK.
invalidate_fk([env_mask, articulation_ids, ...])Schedule solver reset and FK for the masked worlds and articulations.
invalidate_body_state([env_mask, consume_mask])Schedule solver reset for directly authored body state, without requesting FK.
forward()Reset solver internals and evaluate FK for the flagged worlds and articulations, then clear the flags.
Notify the solver of the queued model-property changes once, combining their categories.
Run the model's Newton actuators inside the step.
add_contact_sensor([body_names_expr, ...])Add a contact sensor between bodies or shapes; identical requests share one sensor.
add_imu_sensor(sites)Add an IMU sensor at sites; the
body_qddstate attribute must be requested before finalization.Whether one
step()runs the whole decimation loop: once an articulation runs Newton actuators in it.set_decimation(decimation)Set the physics steps per environment step.
Drop the captured step; with capture enabled, the next step runs eagerly and is captured again.
step()Advance one physics step, or the whole decimation loop when
handles_decimation().Addresses of
state_0's body and particle arrays,0for an absent array.refit_bvh(timestamp, *[, use_cuda_graph])Refit the model's shape and particle BVHs to
state_0once per statetimestamp.- model#
Finalized Newton model;
model.num_envsis its world count.
- state_version#
Advanced whenever the step or FK changes the state; asset data recomputes derived values cached before it.
- particle_ranges: dict[str, tuple[int, int]]#
(start, count)particle range per replicated deformable prim path.
- deformable_ranges#
(start, count, kind)particle range per deformable label;kindis"surface"or"volume".
- state_0: State#
Current state; the solver reads it and, for double-buffered solvers, writes
state_1.
- geometry_offsets#
First particle index per deformable label on a render-only backend; empty on a simulation backend.
- bvh_refit#
Timestamp of the last BVH refit, shared by ray casters and cameras.
- dt#
Duration of one physics step [s].
- num_substeps#
Solver substeps per physics step.
- solver_dt#
Duration of one solver substep [s].
- deterministic_mode#
Warp determinism mode of the solver and collision pipeline.
- control#
Joint targets and applied forces read by the solver.
- solver: SolverBase | None#
Newton solver, built by
init_solver().
- solver_ops: NewtonSolver | None#
Isaac Lab driver of
solver, built fromNewtonCfg.solver_cfgbyinit_solver().
- collision_pipeline: CollisionPipeline | None#
Collision pipeline, or
Nonewhen the solver collides internally.
- contact_observables: SolverBase.Observables | None#
Solver-owned contact forces when registered sensors require them.
- staged_body_f: wp.array | None#
Body forces [N, N·m] written before the step, re-applied before every substep.
- world_mask#
Worlds to reset; the final slot is Newton’s global world, which Isaac Lab never resets.
- fk_mask#
Articulations whose forward kinematics must be evaluated.
- kinematics_dirty#
Whether joint coordinates changed since the last forward kinematics.
- transforms_may_change_on_graph_replay#
Whether state was written inside an outer CUDA graph capture;
forward()then always runs.
- actuators_active#
Whether an articulation runs its Newton actuators in the step (
activate_actuators()).
- pre_actuator_callbacks: list[Callable[[], None]]#
Run before the Newton actuators of every physics step.
- post_actuator_callbacks: list[Callable[[], None]]#
Run after the Newton actuators of every physics step, before its solver substeps.
- state_force_callbacks: list[Callable[[State], None]]#
Add forces [N, N·m] to the input state of every solver substep.
- solver_init_callbacks: list[Callable[[], None]]#
Run once by
init_solver(), after the solver exists and before the initial FK.
- decimation#
Physics steps per environment step.
- capture: Callable[[Callable[[], None]], wp.Graph] | None#
Records the step as a CUDA graph, or
Nonewhen the step runs eagerly; set byinit_solver().
- graphs: dict[str | tuple[str, int], wp.Graph]#
Captured parts of the step, keyed by part; empty until the first step is captured.
- create_visual_material_writer(batches: tuple[VisualMaterialBatch, ...]) VisualMaterialWriter[source]#
Bind material writes to this resource’s native shape-color buffer.
- init_solver(env_template: str | None = None, *, relaxed_capture: Callable[[], bool] | None = None) None[source]#
Build the solver and its contacts, run the solver-init callbacks, and evaluate the initial FK.
- invalidate_fk(env_mask: array | None = None, articulation_ids: array | None = None, *, articulation_mask: array | None = None, consume_mask: bool = False) None[source]#
Schedule solver reset and FK for the masked worlds and articulations.
- Parameters:
env_mask¶ – Mask over envs, which map to worlds through the model’s articulation-to-world table.
articulation_ids¶ – Model articulation index of each
(env, view-local articulation), fromArticulationView.articulation_ids. With either argument None, every world and articulation is flagged, as for native state writes.articulation_mask¶ – View-local articulations to flag. None selects every articulation of the view.
consume_mask¶ – Clear the flagged env_mask entries after reading them. Caller masks are otherwise unchanged.
- invalidate_body_state(env_mask: array | None = None, *, consume_mask: bool = False) None[source]#
Schedule solver reset for directly authored body state, without requesting FK.
- forward() None[source]#
Reset solver internals and evaluate FK for the flagged worlds and articulations, then clear the flags.
- notify_model_changes() None[source]#
Notify the solver of the queued model-property changes once, combining their categories.
Inside an enclosing CUDA graph capture, the refresh is recorded and runs on every replay.
- add_contact_sensor(body_names_expr: str | list[str] | None = None, shape_names_expr: str | list[str] | None = None, contact_partners_body_expr: str | list[str] | None = None, contact_partners_shape_expr: str | list[str] | None = None, verbose: bool = False) newton.sensors.SensorContact[source]#
Add a contact sensor between bodies or shapes; identical requests share one sensor.
- Parameters:
- Returns:
The Newton contact sensor, updated at the end of every step.
- add_imu_sensor(sites: list[int]) newton.sensors.SensorIMU[source]#
Add an IMU sensor at sites; the
body_qddstate attribute must be requested before finalization.- Parameters:
sites¶ – Site index of each environment.
- Returns:
The Newton sensor, updated at the end of every step.
- handles_decimation() bool[source]#
Whether one
step()runs the whole decimation loop: once an articulation runs Newton actuators in it.
- invalidate_graph() None[source]#
Drop the captured step; with capture enabled, the next step runs eagerly and is captured again.
- step() bool[source]#
Advance one physics step, or the whole decimation loop when
handles_decimation().Each physics step runs
_before_actuators(), the Newton actuators, then_after_actuators(), and the step ends with_finish_step(). With capture-safe actuators the whole loop replays from one CUDA graph; otherwise the actuators run eagerly between the captured_before_actuators()and_after_actuators()graphs. Each part runs eagerly the first time and is then captured. Inside an enclosing capture the step records into it instead. The solver then checks the step for asynchronous failures (NewtonSolver.check_step()).- Returns:
Whether the step replays captured graphs.
- state_pointers() tuple[int, int][source]#
Addresses of
state_0’s body and particle arrays,0for an absent array.Captured queries read these arrays, so they are recaptured when an address changes.
- class isaaclab_newton.physics.NewtonCloneRecord[source]#
Native replication outputs, kept across hard resets.
Attributes:
Root transform of each cloned world, or
Nonewithout replication.Per-source builders, keyed by clone-plan source path.
(start, count)particle range per replicated deformable prim path.Body indices per replicated cable prim path.
Shape batches the scene data backend publishes as geometry.
Methods:
__init__(world_xforms, source_builders, ...)- world_xforms: list[transformf] | None#
Root transform of each cloned world, or
Nonewithout replication.
- source_builders: dict[str, newton.ModelBuilder]#
Per-source builders, keyed by clone-plan source path.
Newton simulation data bound to one finalized model, and how it is stepped.
Functions:
|
Record |
Solvers#
- class isaaclab_newton.physics.NewtonSolver[source]#
How Isaac Lab builds and drives a Newton solver.
A solver configuration selects the subclass through
class_type, which builds Newton’s solver on construction and drives it afterwards. Classmethods run before the model exists and take only the configuration. The generic methods below follow Newton’sSolverBaseAPI; a subclass overrides only where its solver differs.Attributes:
Newton solver class that
build()constructs;Nonedescribes geometry only.Whether the solver steps in place on one
newton.State.Whether the solver can honor a Warp determinism guarantee.
Whether the Newton solver can provide CONTACT_F observables to contact sensors.
Model changes the solver does not apply after construction, mapped to the warning logged once.
Solver configuration.
Newton's solver.
Methods:
solver_classes(cfg)Newton solvers whose custom builder attributes, and USD schemas, the builder needs before import.
prepare_builder(cfg, builder)Normalize the complete builder before it is finalized.
applied_deterministic_mode(cfg, mode)The Warp determinism mode the solver and collision pipeline run with for a requested
mode.shares_materials(cfg)Whether contacts read one material table shared by all environments instead of per-shape values.
coupling_error(cfg, in_place)Why the solver cannot run as a coupled-solver entry (stepping in place or not), or
None.__init__(cfg, model, mode[, env_template])Build Newton's solver.
build(model, mode, env_template)Construct Newton's solver from the configuration fields matching its constructor.
init_state(state)Initialize solver-owned buffers of a double-buffered solver's output state.
Whether the solver consumes applied rigid-body forces from
newton.State.body_f.Whether the solver can be recorded into a CUDA graph.
Whether contacts come from Newton's
CollisionPipelineinstead of the solver.create_collision_pipeline(**kwargs)Construct the collision pipeline over the solver's model;
kwargsare the pipeline arguments.Allocate the contacts a solver reports itself when it does not use the collision pipeline.
prepare_contacts(contacts, pipeline)Bind newly allocated contacts to solver-owned buffers before CUDA graph capture.
pre_step(state)Refresh solver structures once per physics step, before collision.
step(state_in, state_out, control, contacts, ...)Advance one substep of
dt[s].post_step(state)Publish derived state once per physics step, after the substeps.
reset(state, world_mask)Clear solver-owned history for the worlds of a
(world_count + 1,)mask, keeping authored joint state.eval_fk(state, world_mask, fk_mask)Update body state from the joint coordinates of the masked articulations;
Noneselects everything.check_step(captured, debug)Raise asynchronous solver failures after a step launch (
captured: a CUDA graph replay), and log diagnostics whendebugis set.fixed_tendon_control(cfg, articulation, model)Build the fixed-tendon command adapter of an articulation, or
Nonewhen no tendon is driven.- solver_class: ClassVar[type[newton.solvers.SolverBase] | None] = None#
Newton solver class that
build()constructs;Nonedescribes geometry only.
- contact_sensors: ClassVar[bool] = True#
Whether the Newton solver can provide CONTACT_F observables to contact sensors.
- ignored_model_changes: ClassVar[Mapping[newton.ModelFlags, str]] = {}#
Model changes the solver does not apply after construction, mapped to the warning logged once.
- classmethod solver_classes(cfg: NewtonSolverCfg) tuple[type[SolverBase], ...][source]#
Newton solvers whose custom builder attributes, and USD schemas, the builder needs before import.
- classmethod prepare_builder(cfg: NewtonSolverCfg, builder: ModelBuilder) None[source]#
Normalize the complete builder before it is finalized.
- classmethod applied_deterministic_mode(cfg: NewtonSolverCfg, mode: wp.DeterministicMode) wp.DeterministicMode[source]#
The Warp determinism mode the solver and collision pipeline run with for a requested
mode.
Whether contacts read one material table shared by all environments instead of per-shape values.
- classmethod coupling_error(cfg: NewtonSolverCfg, in_place: bool) str | None[source]#
Why the solver cannot run as a coupled-solver entry (stepping in place or not), or
None.
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- cfg#
Solver configuration.
- native: newton.solvers.SolverBase#
Newton’s solver.
- build(model: newton.Model, mode: DeterministicMode, env_template: str | None) newton.solvers.SolverBase[source]#
Construct Newton’s solver from the configuration fields matching its constructor.
- init_state(state: newton.State) None[source]#
Initialize solver-owned buffers of a double-buffered solver’s output state.
- applies_body_forces() bool[source]#
Whether the solver consumes applied rigid-body forces from
newton.State.body_f.
- uses_collision_pipeline() bool[source]#
Whether contacts come from Newton’s
CollisionPipelineinstead of the solver.
- create_collision_pipeline(**kwargs) newton.CollisionPipeline[source]#
Construct the collision pipeline over the solver’s model;
kwargsare the pipeline arguments.
- create_contacts() Contacts | None[source]#
Allocate the contacts a solver reports itself when it does not use the collision pipeline.
- prepare_contacts(contacts: Contacts, pipeline: CollisionPipeline | None) None[source]#
Bind newly allocated contacts to solver-owned buffers before CUDA graph capture.
- pre_step(state: newton.State) None[source]#
Refresh solver structures once per physics step, before collision.
- step(state_in: State, state_out: State, control: Control, contacts: Contacts | None, dt: float, *, observables: SolverBase.Observables | None = None) None[source]#
Advance one substep of
dt[s].
- post_step(state: newton.State) None[source]#
Publish derived state once per physics step, after the substeps.
- reset(state: newton.State, world_mask: array) None[source]#
Clear solver-owned history for the worlds of a
(world_count + 1,)mask, keeping authored joint state.
- eval_fk(state: newton.State, world_mask: array | None, fk_mask: array | None) None[source]#
Update body state from the joint coordinates of the masked articulations;
Noneselects everything.
- check_step(captured: bool, debug: bool) None[source]#
Raise asynchronous solver failures after a step launch (
captured: a CUDA graph replay), and log diagnostics whendebugis set.
- classmethod fixed_tendon_control(cfg: NewtonSolverCfg, articulation: Any, model: Model) Any[source]#
Build the fixed-tendon command adapter of an articulation, or
Nonewhen no tendon is driven.
- class isaaclab_newton.physics.MJWarpSolver[source]#
Bases:
NewtonSolverNewton’s MuJoCo Warp solver, which steps in place on one state.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- class isaaclab_newton.physics.VBDSolver[source]#
Bases:
NewtonSolverNewton’s Vertex Block Descent solver.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- class isaaclab_newton.physics.XPBDSolver[source]#
Bases:
NewtonSolverNewton’s XPBD solver, which double-buffers state.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- class isaaclab_newton.physics.FeatherstoneSolver[source]#
Bases:
NewtonSolverNewton’s Featherstone solver, which double-buffers state.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- class isaaclab_newton.physics.KaminoSolver[source]#
Bases:
NewtonSolverNewton’s Kamino solver, which resets its internals through forward kinematics.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
- class isaaclab_newton.physics.MPMSolver[source]#
Bases:
NewtonSolverNewton’s implicit MPM solver, which steps particle materials in place on one state.
Methods:
- classmethod __new__(*args, **kwargs)#
- __init__(cfg: NewtonSolverCfg, model: Model, mode: wp.DeterministicMode, env_template: str | None = None)[source]#
Build Newton’s solver.
Actuator Solver Access#
- class isaaclab_newton.physics.MjWarpActuatorBridge[source]#
Bases:
objectPer-step MuJoCo Warp DOF channel for one Newton actuator.
Attributes:
Stiff
(-stiffness, -damping)friction solref from the reference BAM implementation [N.m/rad, N.m.s/rad].Friction-constraint impedance profile paired with
STIFF_SOLREF_FRICTION[-].Methods:
is_available(solver)Return whether solver steps MuJoCo Warp.
__init__(solver, model, dof_indices, device)Bind the bridge to a MuJoCo Warp solver.
publish_dof_friction(friction_budget)Write the actuator's dry-friction budget into
dof_frictionlossfor the next solve.gather_external_torque(external_torque)Fill external_torque with the previous solve's external load per slot.
Stiffen the managed DOFs' friction constraint in MuJoCo Warp and in the Newton model.
- STIFF_SOLREF_FRICTION: ClassVar[tuple[float, float]] = (-50000.0, -200.0)#
Stiff
(-stiffness, -damping)friction solref from the reference BAM implementation [N.m/rad, N.m.s/rad].
- STIFF_SOLIMP_FRICTION: ClassVar[tuple[float, float, float, float, float]] = (0.99, 0.9999, 0.001, 0.5, 2.0)#
Friction-constraint impedance profile paired with
STIFF_SOLREF_FRICTION[-].
- static is_available(solver: SolverBase | None) bool[source]#
Return whether solver steps MuJoCo Warp.
CPU MuJoCo is unsupported: it still builds the MuJoCo Warp model, but steps the host MuJoCo model, which the bridge neither writes nor reads.
- __init__(solver: newton.solvers.SolverMuJoCo, model: newton.Model, dof_indices: array, device: str)[source]#
Bind the bridge to a MuJoCo Warp solver.
- Parameters:
- Raises:
RuntimeError – If the solver’s DOF fields are not stored per world, so per-environment writes would alias one buffer.
- publish_dof_friction(friction_budget: array) None[source]#
Write the actuator’s dry-friction budget into
dof_frictionlossfor the next solve.- Parameters:
friction_budget¶ – Velocity-independent friction budget per slot [N.m], shape
(N,).
Physics Configuration#
- class isaaclab_newton.physics.NewtonCfg[source]#
Bases:
PhysicsCfgConfiguration for Newton physics manager.
This configuration includes Newton-specific simulation settings and solver configuration.
class_typeselects the integration manager independently of the solver, whichsolver_cfgdescribes. Downstream code can subclassNewtonManagerand set this field.Attributes:
Manager class, constructed by SimulationContext as
instantiate(cfg).Number of substeps to use for the solver.
Whether to request reproducible physics from the backend.
Re-collide every N solver substeps within a physics tick (
0= once per tick).Whether to enable debug mode for the solver.
Whether to use CUDA graphing when simulating.
Determinism guarantee applied to the Newton solver and collision pipeline.
Solver configuration.
Global soft-contact parameters applied after model finalization.
Newton collision pipeline configuration.
Default per-shape collision properties applied to every shape in the scene.
Whether Newton replication imports visual-only geometry from USD.
BVH construction algorithm for mesh geometry colliders.
BVH construction algorithm for the top-level scene (broad-phase) hierarchy.
BVH construction algorithm for Gaussian-splat primitives.
- class_type: type[NewtonManager] | str#
Manager class, constructed by SimulationContext as
instantiate(cfg).
- deterministic: bool#
Whether to request reproducible physics from the backend. Defaults to False.
This is the backend-agnostic form of the request, set by the
--deterministiccommand-line flag. Each physics manager translates it into its own settings when the simulation starts, and raises when its configuration cannot provide the guarantee. A backend-specific determinism attribute set explicitly, such asdeterministic_mode, is the more specific instruction and takes precedence.Deterministic execution can increase memory use and reduce simulation performance.
- collision_decimation: int#
Re-collide every N solver substeps within a physics tick (
0= once per tick).
- use_cuda_graph: bool#
Whether to use CUDA graphing when simulating.
Graphs are captured immediately after the first eager physics step, after reset and decimation setup. Capture does not advance physics. Kit/RTX uses a nonblocking stream with relaxed capture mode; kitless simulation uses Warp’s standard capture mode.
If set to False, the simulation performance will be severely degraded.
- deterministic_mode: Literal['not_guaranteed', 'run_to_run', 'gpu_to_gpu']#
Determinism guarantee applied to the Newton solver and collision pipeline.
The values
"not_guaranteed","run_to_run", and"gpu_to_gpu"map to the correspondingwarp.DeterministicModevalues. Deterministic execution increases memory use and can reduce simulation performance.Warning
Deterministic contact ordering adds sorting work and allocates buffers sized for the configured maximum contact count. Runtime and memory overhead therefore grow with contact capacity. Enable this mode only when its reproducibility guarantee is required.
MJWarp on the GPU (built with its sensor stage disabled), XPBD, and Featherstone support this setting. Newton raises an error during solver initialization for unsupported solvers rather than silently running them without the requested guarantee.
- solver_cfg: NewtonSolverCfg | None#
Solver configuration. If None (default), MJWarpSolverCfg is used by default.
- soft_contact_cfg: NewtonSoftContactCfg | None#
Global soft-contact parameters applied after model finalization.
If
None, Newton model defaults are preserved.
- collision_cfg: NewtonCollisionPipelineCfg | None#
Newton collision pipeline configuration.
Controls how Newton’s
CollisionPipelineis configured when it is active. The pipeline is active when the solver delegates collision detection to Newton:MJWarpSolverCfgwithuse_mujoco_contacts=False,KaminoPADMMSolverCfgorKaminoDVISolverCfgwithuse_collision_detector=False,XPBDSolverCfg(always),VBDSolverCfg(always),FeatherstoneSolverCfg(always).
MPMSolverCfgdoes not use this pipeline; implicit MPM treats rigid geometry as colliders internally.If
None(default), a pipeline withbroad_phase="explicit"is created automatically. Set this to aNewtonCollisionPipelineCfgto customize parameters such as broad phase algorithm, contact limits, or hydroelastic mode.Note
Setting this while
MJWarpSolverCfg.use_mujoco_contacts=TrueraisesValueError. When a Kamino solver config hasuse_collision_detector=True, the field is ignored because Kamino’s internal detector handles contacts.
- default_shape_cfg: NewtonShapeCfg#
Default per-shape collision properties applied to every shape in the scene.
Forwarded to Newton’s
ModelBuilder.default_shape_cfgat builder construction viachecked_apply(). SeeNewtonShapeCfgfor the declared fields.
- load_visual_shapes: bool | None#
Whether Newton replication imports visual-only geometry from USD.
Noneimports it only when a viewer, an offscreenrgb_arraycapture, or a camera sensor is active, so headless training does not pay the USD parse time and memory for shapes nothing draws. Set toTrueto always import it, which is needed when a ray-cast sensor must hit geometry that carries no collider.
- bvh_constructor_geometry: Literal['lbvh', 'sah', 'cubql']#
BVH construction algorithm for mesh geometry colliders.
Selects the bounding-volume-hierarchy builder Newton uses for the triangle meshes of collision geometry, forwarded to
ModelBuilder.BvhConfig. Trades build time against query (traversal) quality:"lbvh": linear BVH; fastest to build, lowest-quality tree."sah": surface-area-heuristic BVH; slower build, tighter tree with faster ray/overlap queries."cubql": cuBQL GPU builder; balances fast construction with good tree quality on the GPU (default).
- bvh_constructor_scene: Literal['lbvh', 'sah']#
BVH construction algorithm for the top-level scene (broad-phase) hierarchy.
Selects the builder for the BVH over all colliders used during broad-phase culling, forwarded to
ModelBuilder.BvhConfig. Seebvh_constructor_geometryfor the"lbvh"/"sah"trade-off;"cubql"is not available for the scene hierarchy.
- bvh_constructor_gaussian: Literal['lbvh', 'sah', 'cubql']#
BVH construction algorithm for Gaussian-splat primitives.
Selects the builder for the BVH over 3D Gaussian primitives (used by the Gaussian renderer/collision path), forwarded to
ModelBuilder.BvhConfig. Seebvh_constructor_geometryfor the"lbvh"/"sah"/"cubql"trade-off.
- class isaaclab_newton.physics.NewtonBackendCfg[source]#
Bases:
BackendCfgAllocate model and state from the matching builder; closing them leaves the builder intact.
Attributes:
Constructor called through
instantiate(cfg); the returned resource must implementclose().Selected physics settings, also identifying the shared construction builder.
Device on which to allocate the model and native buffers.
- class_type: type[NewtonBackend] | str#
Constructor called through
instantiate(cfg); the returned resource must implementclose().
- physics_cfg: PhysicsCfg#
Selected physics settings, also identifying the shared construction builder.
- class isaaclab_newton.physics.NewtonBuilderCfg[source]#
Bases:
objectShare mutable construction data, populated before model allocation and retained across hard resets.
Attributes:
Factory function returning a new
newton.ModelBuilder;instantiate()calls it.Selected physics settings; non-Newton physics requires a render-only Newton representation.
- class_type: Callable[[NewtonBuilderCfg], ModelBuilder] | str#
Factory function returning a new
newton.ModelBuilder;instantiate()calls it.
- physics_cfg: PhysicsCfg#
Selected physics settings; non-Newton physics requires a render-only Newton representation.
- isaaclab_newton.physics.create_newton_builder(cfg: NewtonBuilderCfg) newton.ModelBuilder[source]#
Construct the shared builder: solver-aware under Newton physics, plain otherwise.
- Parameters:
cfg¶ – The selected physics configuration.
- Returns:
An empty builder.
- class isaaclab_newton.physics.NewtonSoftContactCfg[source]#
Bases:
objectGlobal soft-contact parameters applied to the finalized Newton model.
Attributes:
Body-particle and particle self-contact stiffness [N/m].
Body-particle contact damping [N*s/m].
Body-particle contact friction coefficient [dimensionless].
- class isaaclab_newton.physics.NewtonSolverCfg[source]#
Bases:
objectConfiguration of a Newton solver.
class_typeselects theNewtonSolverthat builds and drives the solver; customizing a solver means subclassing it. For the solver parameters, see the Newton documentation.Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type metadata (deprecated).
- class_type: type[NewtonSolver] | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- class isaaclab_newton.physics.MJWarpSolverCfg[source]#
Bases:
NewtonSolverCfgConfiguration for MuJoCo Warp solver-related parameters.
These parameters are used to configure the MuJoCo Warp solver. For more information, see the MuJoCo Warp documentation.
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Number of constraints per environment (world).
Number of contact points per environment (world).
Number of solver iterations.
Number of line search iterations for the solver.
Solver type.
Integrator type.
Whether to use the pure MuJoCo backend instead of mujoco_warp.
Whether to disable contact computation in MuJoCo.
Whether to disable MuJoCo Warp's internal sensor computation.
Default gear ratio for all actuators.
Dictionary mapping joint names to specific gear ratios, overriding the default_actuator_gear.
Frequency (in solver substeps) at which to update the MuJoCo Data object from the Newton state.
Optional path to save the generated MJCF model file.
Frictional-to-normal constraint impedance ratio.
The type of contact friction cone.
Maximum iterations for convex collision detection (GJK/EPA).
Whether to enable multiple-contact convex collision detection.
Deprecated parallel line search option.
Whether to use MuJoCo's internal contact solver.
Solver convergence tolerance for the constraint residual.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- integrator: str#
Integrator type. Can be “euler”, “rk4”, or “implicitfast”, or their corresponding MuJoCo integer constants.
- disable_sensors: bool#
Whether to disable MuJoCo Warp’s internal sensor computation.
A determinism guarantee (
NewtonCfg.deterministic_mode) disables it automatically. Isaac Lab sensors use Newton state directly and do not depend on MuJoCo Warp’s internal sensor data.
- actuator_gears: dict[str, float] | None#
Dictionary mapping joint names to specific gear ratios, overriding the default_actuator_gear.
- update_data_interval: int#
Frequency (in solver substeps) at which to update the MuJoCo Data object from the Newton state.
If 0, periodic state imports are disabled after initialization. With MuJoCo Warp, authored state writes that flag the manager’s reset mask are still synchronized for the affected worlds at the next forward or physics-step boundary, independently of this interval. The native MuJoCo CPU backend only synchronizes template world 0 when it is flagged.
- save_to_mjcf: str | None#
Optional path to save the generated MJCF model file.
If None, the MJCF model is not saved.
- ccd_iterations: int#
Maximum iterations for convex collision detection (GJK/EPA).
Increase this if you see warnings about
opt.ccd_iterationsneeding to be increased, which typically occurs with complex collision geometries (e.g. multi-finger hands).
- enable_multiccd: bool#
Whether to enable multiple-contact convex collision detection. Defaults to False.
With
use_mujoco_contactsenabled, supported convex geometry pairs can generate a contact manifold (several points across a touching surface) instead of a single point. This can improve stability for flat mesh contacts in stacking and grasping. It does not enable continuous collision detection or prevent tunneling between simulation steps.MuJoCo Warp’s supported pairs and contact-margin restrictions differ from MuJoCo CPU. Primitive colliders can already produce multiple contacts with this option disabled. Additional contacts can increase solver work and the required
nconmaxandnjmaxcapacities. See MuJoCo’s multiple-contact documentation.
- ls_parallel: bool#
Deprecated parallel line search option.
Setting this to
Trueemits aDeprecationWarningand is ignored. MuJoCo Warp is dropping support for parallel line search; Isaac Lab uses iterative line search for performance.
- use_mujoco_contacts: bool#
Whether to use MuJoCo’s internal contact solver.
If
True(default), MuJoCo handles collision detection and contact resolution internally. IfFalse, Newton’sCollisionPipelineis used instead. A default pipeline (broad_phase="explicit") is created automatically whenNewtonCfg.collision_cfgisNone. SetNewtonCfg.collision_cfgto aNewtonCollisionPipelineCfgto customize pipeline parameters (broad phase, contact limits, hydroelastic, etc.).Note
Setting
collision_cfgwhileuse_mujoco_contacts=TrueraisesValueErrorbecause the two collision modes are mutually exclusive.
- tolerance: float#
Solver convergence tolerance for the constraint residual.
The solver iterates until the residual drops below this threshold or
iterationsis reached. Lower values give more precise constraint satisfaction at the cost of more iterations. MuJoCo default is1e-8; Newton default is1e-6.
- class isaaclab_newton.physics.VBDSolverCfg[source]#
Bases:
NewtonSolverCfgConfiguration for the Vertex Block Descent solver.
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Number of VBD iterations per substep.
Relative tangential speed used to smooth friction near rest [m/s].
Whether an external solver integrates rigid bodies.
Derive standalone VBD joint positions and velocities after each physics tick.
Whether to enable particle self-contact.
Particle radius used for self-contact detection [m].
Self-contact detection margin [m].
<0 before init, 0 before and after init, k>=1 before every k VBD iterations.
Preallocation size for each vertex contact buffer.
Solver type metadata (deprecated).
Preallocation size for each edge contact buffer.
Topological distance below which self-contacts are discarded.
Rest-shape separation threshold for filtering contacts [m].
Whether to use compliant ALM for rigid joints and contacts;
Nonepreserves Newton's default.Structural linear stiffness of non-rod rigid joints [N/m], separate from joint-drive gains.
Structural angular stiffness of non-rod rigid joints [N m/rad], separate from joint-drive gains.
Initial stiffness seed for rigid-body contacts [N/m].
Per-body body-body contact capacity when VBD integrates rigid bodies.
Per-body particle, edge, and face soft-contact capacity when VBD integrates rigid bodies.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- update_joint_state: bool#
Derive standalone VBD joint positions and velocities after each physics tick.
Disable only when consumers use body state exclusively. External rigid integration and coupled solvers retain ownership of their generalized joint state and skip this synchronization.
- particle_collision_detection_interval: int#
<0 before init, 0 before and after init, k>=1 before every k VBD iterations.
- Type:
Self-contact detection
- solver_type: str#
Solver type metadata (deprecated).
Deprecated since version Solver: dispatch is driven by the configuration class; this field is retained as metadata for logging and debugging only. Do not branch on
solver_typein new code.
- particle_topological_contact_filter_threshold: int#
Topological distance below which self-contacts are discarded.
- particle_rest_shape_contact_exclusion_radius: float#
Rest-shape separation threshold for filtering contacts [m].
- rigid_compliant_alm: bool | None#
Whether to use compliant ALM for rigid joints and contacts;
Nonepreserves Newton’s default.
- rigid_joint_linear_ke: float#
Structural linear stiffness of non-rod rigid joints [N/m], separate from joint-drive gains.
- rigid_joint_angular_ke: float#
Structural angular stiffness of non-rod rigid joints [N m/rad], separate from joint-drive gains.
- class isaaclab_newton.physics.XPBDSolverCfg[source]#
Bases:
NewtonSolverCfgAn implicit integrator using eXtended Position-Based Dynamics (XPBD) for rigid and soft body simulation.
References
Miles Macklin, Matthias Müller, and Nuttapong Chentanez. 2016. XPBD: position-based simulation of compliant constrained dynamics. In Proceedings of the 9th International Conference on Motion in Games (MIG ‘16). Association for Computing Machinery, New York, NY, USA, 49-54. https://doi.org/10.1145/2994258.2994272
Matthias Müller, Miles Macklin, Nuttapong Chentanez, Stefan Jeschke, and Tae-Yong Kim. 2020. Detailed rigid body simulation with extended position based dynamics. In Proceedings of the ACM SIGGRAPH/Eurographics Symposium on Computer Animation (SCA ‘20). Eurographics Association, Goslar, DEU, Article 10, 1-12. https://doi.org/10.1111/cgf.14105
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Number of solver iterations.
Relaxation parameter for soft body simulation.
Relaxation parameter for soft contact simulation.
Relaxation parameter for joint linear simulation.
Relaxation parameter for joint angular simulation.
Compliance parameter for joint linear simulation.
Compliance parameter for joint angular simulation.
Relaxation parameter for rigid contact simulation.
Whether to use contact constraint weighting for rigid contact simulation.
Angular damping parameter for rigid contact simulation.
Whether to enable restitution for rigid contact simulation.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- class isaaclab_newton.physics.FeatherstoneSolverCfg[source]#
Bases:
NewtonSolverCfgA semi-implicit integrator using symplectic Euler.
It operates on reduced (also called generalized) coordinates to simulate articulated rigid body dynamics based on Featherstone’s composite rigid body algorithm (CRBA).
See: Featherstone, Roy. Rigid Body Dynamics Algorithms. Springer US, 2014.
Semi-implicit time integration is a variational integrator that preserves energy, however it is not unconditionally stable, and requires a time-step small enough to support the required stiffness and damping forces.
See: https://en.wikipedia.org/wiki/Semi-implicit_Euler_method
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Angular damping parameter for rigid contact simulation.
Frequency (in simulation steps) at which to update the mass matrix.
Friction smoothing parameter.
Whether to use tile-based GEMM for the mass matrix.
Whether to fuse the Cholesky decomposition.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- class isaaclab_newton.physics.KaminoPADMMCfg[source]#
Bases:
objectP-ADMM forward-dynamics solver parameters for Kamino.
Attributes:
Maximum number of P-ADMM solver iterations.
Primal residual convergence tolerance.
Dual residual convergence tolerance.
Complementarity residual convergence tolerance.
Combined primal-dual residual tolerance for acceleration restarts.
Initial penalty parameter.
Lower bound on the penalty parameter.
Initial acceleration parameter.
Primal-dual residual threshold for penalty updates.
Penalty increase/decrease factor.
Proximal regularization parameter.
Frequency of penalty updates.
Penalty update method.
Absolute tolerance for the iterative linear solver.
Ratio adapting the linear solver tolerance from the ADMM primal residual.
Whether to use Nesterov-type acceleration (APADMM).
Whether to use CUDA graph conditional nodes in the iterative solver.
Warmstart mode.
Contact warm-start method.
- linear_solver_tolerance: float#
Absolute tolerance for the iterative linear solver. Zero leaves it unchanged.
- class isaaclab_newton.physics.KaminoDVICfg[source]#
Bases:
objectDVI forward-dynamics solver parameters for Kamino.
Attributes:
Convergence tolerance on the projected update size.
Diagonal regularization added to each projected update denominator.
Relaxation factor applied to projected Gauss-Seidel updates.
Maximum outer DVI iterations.
Projected Gauss-Seidel sweeps per DVI iteration.
DVI iterations between repeated direct bilateral solves.
Direct linear solver for the bilateral constraint block.
Additional keyword arguments for the bilateral linear solver.
Warmstart mode.
Contact warm-start method when
warmstart_modeiscontainers.- bilateral_solver_type: Literal['LLTB', 'LLTBRCM']#
Direct linear solver for the bilateral constraint block.
- class isaaclab_newton.physics.KaminoDynamicsCfg[source]#
Bases:
objectConstrained forward-dynamics problem parameters for Kamino.
Attributes:
Whether to precondition the dual problem.
Linear solver for the dynamics problem.
Additional keyword arguments for the linear solver.
- class isaaclab_newton.physics.KaminoConstraintsCfg[source]#
Bases:
objectGlobal constraint stabilization parameters for Kamino.
Attributes:
Baumgarte stabilization for bilateral joint constraints.
Baumgarte stabilization for unilateral joint-limit constraints.
Baumgarte stabilization for unilateral contact constraints.
Contact penetration margin [m].
- class isaaclab_newton.physics.KaminoFKCfg[source]#
Bases:
objectForward-kinematics reset solver parameters for Kamino.
Attributes:
Whether to regularize the FK reset solve (Tikhonov term on body poses).
Weight of the FK reset regularizer when
use_regularizationisTrue.Convergence tolerance of the FK reset solve.
- regularization_weight: float#
Weight of the FK reset regularizer when
use_regularizationisTrue.
- class isaaclab_newton.physics.KaminoCollisionDetectorCfg[source]#
Bases:
objectInternal Kamino collision-detector parameters.
Attributes:
Collision-detection pipeline.
Broad-phase algorithm.
Bounding-volume type.
Model-wide contact buffer capacity cap.
Per-world contact buffer capacity override.
Maximum contacts generated per candidate geometry pair.
Maximum triangle-primitive shape pairs in narrow phase.
Default detection gap [m] applied as a floor to per-geometry gaps.
- pipeline: Literal['primitive', 'unified'] | None#
Collision-detection pipeline.
Noneuses Newton’s default (unified).
- class isaaclab_newton.physics.KaminoMaterialsCfg[source]#
Bases:
objectMaterial mixing parameters for Kamino contacts.
Attributes:
How friction coefficients are mixed for a contact pair.
How restitution coefficients are mixed for a contact pair.
- class isaaclab_newton.physics.KaminoPADMMSolverCfg[source]#
Bases:
_KaminoSolverCfgBaseConfiguration for Kamino with the P-ADMM forward-dynamics solver.
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Integrator type.
Whether to use Kamino's internal collision detector instead of Newton's pipeline.
Whether to enable the forward kinematics solver for state resets.
Whether to use sparse Jacobian computation.
Whether to use sparse dynamics computation.
Rotation correction mode.
Angular velocity damping factor.
Whether to collect solver convergence and performance info at each step.
Whether to compute solution metrics at each step.
Constrained dynamics problem parameters.
Constraint stabilization parameters.
Forward-kinematics reset solver parameters.
Internal collision-detector parameters.
Material mixing parameters.
Cap the per-world contact pre-allocation handed to Kamino.
P-ADMM forward-dynamics solver parameters.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- integrator: Literal['euler', 'moreau']#
Integrator type.
- use_collision_detector: bool#
Whether to use Kamino’s internal collision detector instead of Newton’s pipeline.
- use_fk_solver: bool | None#
Whether to enable the forward kinematics solver for state resets.
When
None, Kamino will automatically determine whether to use the FK solver based on the model’s articulation structure. If the model has loop-closing joints, the FK solver will be used.When
True,eval_fk()reconciles body state viaSolverKamino.reset()withSolverKamino.ResetConfig.from_joints. Kamino’s FK solver computes consistent body poses/velocities from the joint coordinates (including the base joint for floating bases), resolves passive / loop-closure joints, and writes back a consistent full joint state. Environment resets only need to write actuated DOFs injoint_q; passive values are filled in by FK. This is required for closed-loop systems.When
False, Newton’s articulatedeval_fkis used instead over the fulljoint_q/joint_qd. It is then up to the user to specify constraint-consistent values. This is the faster option for purely articulated (tree-structured) systems.
- sparse_jacobian: bool | None#
Whether to use sparse Jacobian computation.
Nonelets Newton pick per backend.
- rotation_correction: Literal['twopi', 'continuous', 'none']#
Rotation correction mode.
- collect_solver_info: bool#
Whether to collect solver convergence and performance info at each step.
Warning
Enabling this significantly increases solver runtime and should only be used for debugging.
- compute_solution_metrics: bool#
Whether to compute solution metrics at each step.
Warning
Enabling this significantly increases solver runtime and should only be used for debugging.
- dynamics: KaminoDynamicsCfg | None#
Constrained dynamics problem parameters.
When
None, Newton selects defaults appropriate to the selected dynamics solver and sparsity settings.
- constraints: KaminoConstraintsCfg#
Constraint stabilization parameters.
- fk: KaminoFKCfg#
Forward-kinematics reset solver parameters.
- collision_detector: KaminoCollisionDetectorCfg#
Internal collision-detector parameters.
- materials: KaminoMaterialsCfg#
Material mixing parameters.
- max_contacts_per_world: int | None#
Cap the per-world contact pre-allocation handed to Kamino.
When
None, Kamino falls back togeoms.world_minimum_contactsderived from the collision pipeline, which over-allocates dramatically for contact-rich assets. Set this to bound GPU memory for multi-env training of contact-heavy tasks (e.g. legged locomotion or manipulation). The totalmodel.rigid_contact_maxis computed asmax_contacts_per_world * model.world_countbefore solver construction.This field is applied by
build()and is not forwarded to Newton.
- dynamics_solver_cfg: KaminoPADMMCfg#
P-ADMM forward-dynamics solver parameters.
- class isaaclab_newton.physics.KaminoDVISolverCfg[source]#
Bases:
_KaminoSolverCfgBaseConfiguration for Kamino with the DVI forward-dynamics solver.
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Integrator type.
Whether to use Kamino's internal collision detector instead of Newton's pipeline.
Whether to enable the forward kinematics solver for state resets.
Whether to use sparse Jacobian computation.
Whether to use sparse dynamics computation.
Rotation correction mode.
Angular velocity damping factor.
Whether to collect solver convergence and performance info at each step.
Whether to compute solution metrics at each step.
Constrained dynamics problem parameters.
Constraint stabilization parameters.
Forward-kinematics reset solver parameters.
Internal collision-detector parameters.
Material mixing parameters.
Cap the per-world contact pre-allocation handed to Kamino.
DVI forward-dynamics solver parameters.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- integrator: Literal['euler', 'moreau']#
Integrator type.
- use_collision_detector: bool#
Whether to use Kamino’s internal collision detector instead of Newton’s pipeline.
- use_fk_solver: bool | None#
Whether to enable the forward kinematics solver for state resets.
When
None, Kamino will automatically determine whether to use the FK solver based on the model’s articulation structure. If the model has loop-closing joints, the FK solver will be used.When
True,eval_fk()reconciles body state viaSolverKamino.reset()withSolverKamino.ResetConfig.from_joints. Kamino’s FK solver computes consistent body poses/velocities from the joint coordinates (including the base joint for floating bases), resolves passive / loop-closure joints, and writes back a consistent full joint state. Environment resets only need to write actuated DOFs injoint_q; passive values are filled in by FK. This is required for closed-loop systems.When
False, Newton’s articulatedeval_fkis used instead over the fulljoint_q/joint_qd. It is then up to the user to specify constraint-consistent values. This is the faster option for purely articulated (tree-structured) systems.
- sparse_jacobian: bool | None#
Whether to use sparse Jacobian computation.
Nonelets Newton pick per backend.
- rotation_correction: Literal['twopi', 'continuous', 'none']#
Rotation correction mode.
- collect_solver_info: bool#
Whether to collect solver convergence and performance info at each step.
Warning
Enabling this significantly increases solver runtime and should only be used for debugging.
- compute_solution_metrics: bool#
Whether to compute solution metrics at each step.
Warning
Enabling this significantly increases solver runtime and should only be used for debugging.
- dynamics: KaminoDynamicsCfg | None#
Constrained dynamics problem parameters.
When
None, Newton selects defaults appropriate to the selected dynamics solver and sparsity settings.
- constraints: KaminoConstraintsCfg#
Constraint stabilization parameters.
- fk: KaminoFKCfg#
Forward-kinematics reset solver parameters.
- collision_detector: KaminoCollisionDetectorCfg#
Internal collision-detector parameters.
- materials: KaminoMaterialsCfg#
Material mixing parameters.
- max_contacts_per_world: int | None#
Cap the per-world contact pre-allocation handed to Kamino.
When
None, Kamino falls back togeoms.world_minimum_contactsderived from the collision pipeline, which over-allocates dramatically for contact-rich assets. Set this to bound GPU memory for multi-env training of contact-heavy tasks (e.g. legged locomotion or manipulation). The totalmodel.rigid_contact_maxis computed asmax_contacts_per_world * model.world_countbefore solver construction.This field is applied by
build()and is not forwarded to Newton.
- dynamics_solver_cfg: KaminoDVICfg#
DVI forward-dynamics solver parameters.
- class isaaclab_newton.physics.MPMSolverCfg[source]#
Bases:
NewtonSolverCfgConfiguration for Newton’s implicit Material Point Method (MPM) solver.
The implicit MPM solver advances particle materials and treats rigid geometry as colliders. It is not a rigid-body or articulation dynamics solver.
Attributes:
Solver class that builds and drives Newton's solver, e.g.
instantiate(cfg, model, mode).step(...).Solver type.
Maximum number of iterations for the rheology solver.
Tolerance for the rheology solver.
Rheology solver, or an ordered warm-start sequence of solvers.
Warm-start mode for the rheology solver.
Collider velocity computation mode.
Size of the MPM grid voxels [m].
Type of grid to use.
Number of empty cells to add around particles when allocating the grid.
Maximum active grid-cell count shared by all worlds.
Maximum sparse-grid leaf-node count shared by all worlds.
Maximum sparse-grid lower internal-node count shared by all worlds.
Maximum sparse-grid upper internal-node count shared by all worlds.
Whether each Newton world uses an independent local MPM grid environment.
Particle-grid transfer scheme.
Integration scheme controlling shape-function support.
Dimensionless fraction under which the yield surface collapses.
Numerical drag for background air.
Whether collider normals are computed from SDF gradients rather than closest points.
Collider basis function, such as
"S2"or"Q1".Strain basis function, such as
"P0","P1d","Q1", or"Q1d".Velocity basis function, such as
"Q1","B2", or"B3".Whether to hard-project particles out of collider interiors after each substep.
- class_type: type | str#
Solver class that builds and drives Newton’s solver, e.g.
instantiate(cfg, model, mode).step(...).
- solver: str | tuple[str, ...]#
Rheology solver, or an ordered warm-start sequence of solvers.
Values use the canonical tokens defined by
NewtonMPMSceneAPI."auto"lets Newton pick the solver from the velocity basis. Pass a tuple such as("conjugate-residual", "gauss-seidel")to warm-start solvers left-to-right.
- warmstart_mode: Literal['none', 'auto', 'particles', 'grid', 'smoothed']#
Warm-start mode for the rheology solver.
- collider_velocity_mode: Literal['forward', 'backward', 'instantaneous', 'finite_difference']#
Collider velocity computation mode.
"instantaneous"is deprecated in favor of"forward", and"finite_difference"is deprecated in favor of"backward".
- grid_type: Literal['sparse', 'dense', 'fixed']#
Type of grid to use.
- max_active_cell_count: int#
Maximum active grid-cell count shared by all worlds.
A positive value reserves persistent capacity for rebuildable sparse grids and bounds active subsets of dense and fixed grids.
-1keeps sparse allocation dynamic and uses exact active counts for the other grid types.
- max_leaf_node_count: int#
Maximum sparse-grid leaf-node count shared by all worlds.
-1lets Newton derive the capacity frommax_active_cell_count.
- max_lower_node_count: int#
Maximum sparse-grid lower internal-node count shared by all worlds.
-1lets Newton derive the capacity from the initial topology.
- max_upper_node_count: int#
Maximum sparse-grid upper internal-node count shared by all worlds.
-1lets Newton derive the capacity from the initial topology.
- transfer_scheme: Literal['apic', 'pic']#
Particle-grid transfer scheme.
- integration_scheme: Literal['pic', 'gimp']#
Integration scheme controlling shape-function support.
- collider_normal_from_sdf_gradient: bool#
Whether collider normals are computed from SDF gradients rather than closest points.
- project_outside_colliders: bool#
Whether to hard-project particles out of collider interiors after each substep.
When
True,step()callsSolverImplicitMPM.project_outside()immediately after every solver substep: it applies a Coulomb response and pushes particles that drifted into a collider back onto its surface. The implicit solve already resolves colliders at the grid level; this is the particle-level correction that stops material from slowly settling inside colliders, mirroring Newton’s MPM examples. Leave itFalsefor collider-free scenes to skip a per-substep projection pass over every particle.This is a manager-level stepping option and is intentionally not part of
SolverImplicitMPM.Config.
- class isaaclab_newton.physics.NewtonCollisionPipelineCfg[source]#
Bases:
objectConfiguration for Newton collision pipeline.
Full-featured collision pipeline with GJK/MPR narrow phase and pluggable broad phase. When this config is set on
NewtonCfg.collision_cfg:MJWarpSolverCfg: Newton’s collision pipeline replaces MuJoCo’s internal contact solver.
Other solvers (XPBD, Featherstone, etc.): Configures the collision pipeline parameters (these solvers always use Newton’s collision pipeline).
Key features:
GJK/MPR algorithms for convex-convex collision detection
Multiple broad phase options: NXN (all-pairs), SAP (sweep-and-prune), EXPLICIT (precomputed pairs)
Mesh-mesh collision via SDF with contact reduction
Optional hydroelastic contact model for compliant surfaces
For more details, see the Newton collision pipeline guide and CollisionPipeline API.
Attributes:
Broad phase algorithm for collision detection.
Whether to reduce contacts for mesh-mesh collisions.
Maximum number of rigid contacts to allocate.
Maximum number of triangle pairs allocated by narrow phase for mesh and heightfield collisions.
Maximum number of soft contacts to allocate.
Margin [m] for soft contact generation.
Whether to generate soft contacts against full-surface-capable rigid colliders.
Whether to enable gradient computation for collision.
Configuration for SDF-based hydroelastic collision handling.
Methods:
Build keyword arguments for
newton.CollisionPipeline.- broad_phase: Literal['explicit', 'nxn', 'sap']#
Broad phase algorithm for collision detection.
Options:
"explicit": Use precomputed shape pairs frommodel.shape_contact_pairs."nxn": All-pairs brute force. Simple but O(n^2) complexity."sap": Sweep-and-prune. Good for scenes with many dynamic objects.
Defaults to
"explicit"(same as Newton’s default whenbroad_phase=None).
- reduce_contacts: bool#
Whether to reduce contacts for mesh-mesh collisions.
When True, uses shared memory contact reduction to select representative contacts. Improves performance and stability for meshes with many vertices.
Defaults to
True(same as Newton’s default).
- rigid_contact_max: int | None#
Maximum number of rigid contacts to allocate.
Resolution order:
If provided, use this value.
Else if
model.rigid_contact_max > 0, use the model value.Else estimate automatically from model shape and pair metadata.
Defaults to
None(auto-estimate, same as Newton’s default).
- max_triangle_pairs: int | None#
Maximum number of triangle pairs allocated by narrow phase for mesh and heightfield collisions.
Also sizes the global contact-reduction buffer and hashtable, which all worlds share. If
None, Newton estimates it from the model, so it grows with the number of worlds. Set it explicitly to choose the memory budget, or when overflow warnings appear.Defaults to
None(auto-estimate, same as Newton’s default).
- soft_contact_max: int | None#
Maximum number of soft contacts to allocate.
If None, computed as
shape_count * particle_count.Defaults to
None(auto-compute, same as Newton’s default).
- soft_contact_margin: float#
Margin [m] for soft contact generation.
Defaults to
0.01(same as Newton’s default).
- enable_rigid_soft_full_surface_contact: bool#
Whether to generate soft contacts against full-surface-capable rigid colliders.
When
True, Newton adds edge and triangle-interior soft contacts (in addition to the per-vertex particle contacts) so rigid features that pass between soft vertices are caught. Analytic shapes (boxes, capsules, spheres) are full-surface-capable without an SDF; any participating mesh/convex collider must carry a volume SDF.Defaults to
False(same as Newton’s default).
- requires_grad: bool | None#
Whether to enable gradient computation for collision.
If
None, usesmodel.requires_grad.Defaults to
None(same as Newton’s default).
- sdf_hydroelastic_config: HydroelasticSDFCfg | None#
Configuration for SDF-based hydroelastic collision handling.
If
None, hydroelastic contacts are disabled. If set, enables hydroelastic contacts with the specified parameters.Defaults to
None(hydroelastic disabled, same as Newton’s default).
- to_pipeline_args() dict[str, Any][source]#
Build keyword arguments for
newton.CollisionPipeline.Converts this configuration into the dict expected by
CollisionPipeline.__init__, handling nested config conversion (e.g.HydroelasticSDFCfg→HydroelasticSDF.Config).- Returns:
Keyword arguments suitable for
CollisionPipeline(model, **args).
- class isaaclab_newton.physics.HydroelasticSDFCfg[source]#
Bases:
objectConfiguration for SDF-based hydroelastic collision handling.
Hydroelastic contacts generate distributed contact areas instead of point contacts, providing more realistic force distribution for manipulation and compliant surfaces.
For more details, see the Newton hydroelastic contacts guide.
Attributes:
Whether to reduce contacts to a smaller representative set per shape pair.
(0, 1].
Whether to rotate reduced contact normals to align with aggregate force direction.
Whether to add an anchor contact at the center of pressure for each normal bin.
Contact area [m^2] used for non-penetrating contacts at the margin.
Whether to output hydroelastic contact surface vertices for visualization.
- reduce_contacts: bool#
Whether to reduce contacts to a smaller representative set per shape pair.
When False, all generated contacts are passed through without reduction.
Defaults to
True(same as Newton’s default).
- buffer_fraction: float#
(0, 1].
Lower values reduce memory usage but may cause overflows in dense scenes. Overflows are bounds-safe and emit warnings; increase this value when warnings appear.
Defaults to
1.0(same as Newton’s default).- Type:
Fraction of worst-case hydroelastic buffer allocations. Range
- normal_matching: bool#
Whether to rotate reduced contact normals to align with aggregate force direction.
Only active when
reduce_contactsis True.Defaults to
True(same as Newton’s default).
- anchor_contact: bool#
Whether to add an anchor contact at the center of pressure for each normal bin.
The anchor contact helps preserve moment balance. Only active when
reduce_contactsis True.Defaults to
False(same as Newton’s default).
- class isaaclab_newton.physics.NewtonShapeCfg[source]#
Bases:
objectDefault per-shape collision properties applied to all shapes in a Newton scene.
Mirrors Newton’s
ModelBuilder.default_shape_cfg. Fields that Isaac Lab overrides or exposes for user overrides are declared here; fields not represented keep Newton’s upstream defaults. The struct is forwarded onto Newton’s upstreamShapeConfigviachecked_apply()at builder construction.Attributes:
Default per-shape collision margin [m].
Default per-shape contact gap [m].
Default per-shape normal contact stiffness [N/m].
Default per-shape normal contact damping [N*s/m].
Default per-shape friction coefficient [dimensionless].
- margin: float#
Default per-shape collision margin [m].
A nonzero margin (e.g.
0.01) is required for stable contact on triangle-mesh terrain — without it, lightweight robots fail to learn rough-terrain locomotion on Newton. Newton’s upstream default is0.0.
- ke: float#
Default per-shape normal contact stiffness [N/m].
Applied to shapes that lack an explicit material; per-asset materials override it. Mirrors Newton’s
ShapeConfig.kedefault.
MPM Solver State#
- isaaclab_newton.physics.reset_mpm_solver_state(backend: NewtonBackend, state: State | None = None, world_mask: wp.array(dtype=wp.bool) | None = None, flags: StateFlags | int | None = None) None[source]#
Reset MPM and coupled-solver history after task state is rewritten.
When
stateis omitted, both distinct backend state buffers are reset so a later buffer swap cannot restore stale history. A mask follows Newton’s canonicalworld_count + 1contract, where the last entry selects global entities in world -1. A selected single local world is promoted to a full reset because a one-world MPM grid has no environment offsets.- Parameters:
backend¶ – Backend whose solver to reset, e.g.
NewtonManager.backend.state¶ – State whose solver-owned history should be reset. If omitted, reset both backend states.
world_mask¶ – Canonical per-world mask, including the final global-world entry.
flags¶ – State components whose solver-owned history should reset.
- Raises:
RuntimeError – If the MPM solver or a usable state is not initialized.
ValueError – If
world_maskdoes not use Newton’s canonical shape.