Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
# tests; own the whole folder. The nightly Newton-main workflow assigns failure
# issues to these owners. See CONTRIBUTING.md.
/examples/multiphysics/franka_pulley_mechanical_advantage/ @felixmey
/examples/extended_simulation/industrial_lamination/ @Alex-Omar-Nvidia
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@ Choose a sample below for launch instructions, configuration, and validation.
<td width="33%"></td>
<td width="33%"></td>
</tr>
<tr>
<td colspan="3"><h3>Extended Simulation</h3></td>
</tr>
<tr>
<td align="center" width="33%">
<a href="examples/extended_simulation/industrial_lamination/README.md">
<img width="100%" src="examples/extended_simulation/industrial_lamination/images/preview.jpg" alt="UR5e robot applying laminate to a curved windshield with a deformable roller">
</a>
</td>
<td width="33%"></td>
<td width="33%"></td>
</tr>
<tr>
<td align="center" width="33%">
<a href="examples/extended_simulation/industrial_lamination/README.md">Industrial Lamination</a>
</td>
<td width="33%"></td>
<td width="33%"></td>
</tr>
</table>

## Contributing
Expand Down
19 changes: 16 additions & 3 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,28 @@ they are not bundled in this repository or its Python package.
The pulley, cable, and weight are generated by the example. Future assets should
be added to these notices with their sources, revisions, and licenses.

## Runtime-downloaded UR5e robot asset

Industrial Lamination loads the UR5e USD and meshes using
`newton.utils.download_asset("universal_robots_ur5e", ref=...)`. These files are
downloaded on demand and are not bundled in this repository or its Python package.

- Asset collection: [newton-physics/newton-assets](https://github.com/newton-physics/newton-assets).
- Pinned revision: `0deda9b1a68d1c202a6115a78ce0ff61ac861e00`.
- [Asset source at that revision](https://github.com/newton-physics/newton-assets/tree/0deda9b1a68d1c202a6115a78ce0ff61ac861e00/universal_robots_ur5e).
- License: BSD-3-Clause; Copyright 2018 ROS Industrial Consortium.
- [Upstream license at that revision](https://github.com/newton-physics/newton-assets/blob/0deda9b1a68d1c202a6115a78ce0ff61ac861e00/universal_robots_ur5e/LICENSE).

## Dependency license inventory

This inventory records the reviewed dependencies for project version 1.0.0.
Python package names are matched to `uv.lock`; multiple versions reflect conditional
Python and platform dependencies. The build backend has the version range declared
in `pyproject.toml`. The Franka asset is included for completeness.
in `pyproject.toml`. The Franka and UR5e assets are included for completeness.

Package links point to public upstream package metadata; the downloaded package
distributions carry their full license texts and copyright notices. The Franka
asset's upstream license is linked above; the asset files are downloaded separately.
distributions carry their full license texts and copyright notices. The robot
assets' upstream licenses are linked above; the asset files are downloaded separately.
License labels below reproduce the reviewed inventory and do not select a branch
of a multiple-license expression.

Expand Down Expand Up @@ -175,6 +187,7 @@ Development-only tools `pytest` and `ruff` are outside this runtime/build invent
| zipp | 4.1.0 | MIT | [Package metadata](https://pypi.org/project/zipp/4.1.0/) |
| uv-build | >=0.11.0 | MIT OR Apache-2.0 | [Package metadata](https://pypi.org/project/uv-build/) |
| franka_emika_panda (FR3 URDF and meshes) | f8fb7abcbeba2318814a74f3eeb02780ad7925d6 | Apache-2.0; additional Willow Garage BSD notice | [Asset license](https://github.com/newton-physics/newton-assets/blob/f8fb7abcbeba2318814a74f3eeb02780ad7925d6/franka_emika_panda/LICENSE) |
| universal_robots_ur5e (USD and meshes) | 0deda9b1a68d1c202a6115a78ce0ff61ac861e00 | BSD-3-Clause | [Asset license](https://github.com/newton-physics/newton-assets/blob/0deda9b1a68d1c202a6115a78ce0ff61ac861e00/universal_robots_ur5e/LICENSE) |

Dependency updates can change this inventory. Review the upstream license files
and update the entries and retained notices when updating the lockfile or assets.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def pytest_sessionstart(session):
@pytest.fixture
def cuda_device():
if not wp.is_cuda_available():
pytest.skip("Coupled pulley regression requires CUDA")
pytest.skip("Simulation regression requires CUDA")
with wp.ScopedDevice("cuda:0"):
yield
2 changes: 2 additions & 0 deletions examples/extended_simulation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
118 changes: 118 additions & 0 deletions examples/extended_simulation/industrial_lamination/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Industrial Lamination

[Back to Newton Samples](../../../README.md#examples) ·
[Source](example_ur5e_laminate.py)

![Industrial Lamination](images/preview.jpg)

This extensible proof of concept shows a UR5e robot using a deformable laminate
roller to apply lamination to a curved windshield. The surface starts unadhered
and changes from red through yellow to green as the roller bonds the laminate.

Newton does not track adhesion itself. We take the soft-body contact forces
from Newton's collision and solver pipeline and feed them into custom Warp
kernels that compute and track adhesion. Adhesion is a custom engineering
parameter added by this demo, not an output generated by Newton. This approach
can extend Newton to many other use cases with application-specific engineering
parameters; the adhesive behavior here is illustrative, not calibrated.

## Run

From the repository root, install the locked environment:

```bash
uv sync --locked --dev
```

Requires CUDA. The first run downloads the UR5e robot asset through
`newton.utils.download_asset`; internet access and Git on `PATH` are needed.
The windshield and roller are generated in Python. No local robot assets or
Git LFS setup are required. The UR5e USD and meshes are downloaded at revision
`0deda9b1a68d1c202a6115a78ce0ff61ac861e00`; see the
[third-party notices](../../../THIRD_PARTY_NOTICES.md#runtime-downloaded-ur5e-robot-asset)
for the source and BSD-3-Clause license.

```bash
uv run --locked -m examples ur5e_laminate --device cuda:0 --viewer gl
```

## Configuration and Measurements

| Option | Description | Default |
| --- | --- | --- |
| `--roller-clearance` | Extra roller lift in meters; `0.10` exercises the no-contact case. | `0.0` |

Common runner options are `--viewer gl` (interactive), `--viewer null`
(headless), `--device cuda:0`, `--num-frames <count>`, and `--test`
(built-in final checks). Use `--help` for all runner options. The viewer displays adhesion coverage,
contact load, pressure, and the roller's pressure footprint. The film is a
conformal coating; its bond fraction integrates contact pressure above 200 Pa
with an illustrative, spatially varying 5–40 kPa.s saturation dose.

The roller hub follows the wrist with one-way coupling. Its tetrahedra deform
and contact the windshield in VBD. Custom Warp kernels map Newton's
`CONTACT_F` observable into the adhesion field. Control, IK, contact-force
sampling, and bonding run in a CUDA graph.

## Validation

For headless validation, with no display or OpenGL context:

```bash
uv run --locked pytest examples/extended_simulation/industrial_lamination/tests/test_ur5e_laminate.py --require-cuda -q
```

The regression boots the demo with a null viewer, checks that the surface starts
fully unadhered, and requires more than 90% of surface cells to be fully bonded
after the first complete eight-lane sweep, before a second sweep begins.
Additional tests cover contact forces, adhesion updates, and roller motion.

For a short headless run with built-in state and tracking checks:

```bash
uv run --locked -m examples ur5e_laminate --device cuda:0 --viewer null --num-frames 1200 --test
```

This runs 20 simulated seconds at 60 frames per second and must bond some film;
it does not validate full-sweep coverage. The pytest first-sweep regression above
checks that stronger requirement. The eight strokes and seven transfers take
100 seconds of path time, plus the initial approach and contact-settling pauses.
Six substeps and ten VBD iterations per substep are fixed in the implementation.

To verify that a lifted roller produces neither bonding nor laminate load:

```bash
uv run --locked -m examples ur5e_laminate --device cuda:0 --viewer null --roller-clearance 0.10 --num-frames 1200 --test
```

CPU discovery and geometry checks can run without CUDA:

```bash
uv run --locked pytest examples/extended_simulation/industrial_lamination/tests -m "not cuda"
```

The CUDA suite additionally covers pressure-force conservation, stale contact
buffers, graph replay, contact settling, trajectory continuity, tool reach, and
transfer lifts. Repository CI discovers these tests automatically, including the
nightly run against Newton `main`.

## Model Scope and Extension Points

The film is a scalar bond field on a fixed surface. It does not model free-film
motion, peeling, delamination, temperature, or calibrated adhesive chemistry.
The roller hub follows the wrist with one-way coupling, so roller loads do not
feed back into the arm dynamics. Treat coverage and force plots as illustrative
simulation diagnostics rather than manufacturing acceptance predictions.

To adapt the example, start with `surface_z` / `surface_normal` for the workpiece,
`trajectory` / `advance_path` for robot motion and settling, `roller_mesh` for
tool geometry, and `initialize_bond_dose` / `update_attachment` for the custom
engineering parameter. Keep the surface mesh, normals, pressure-cell areas, and
trajectory consistent when changing the workpiece geometry.

## Provenance

Migrated from [DevTech Newton Examples](https://github.com/NVIDIA-dev/devtech-newton-examples/tree/52961e6d4d2d52c77b7bf321daea887e0b7703e7/examples/industrial_lamination)
at commit `52961e6d4d2d52c77b7bf321daea887e0b7703e7`. The original detailed guide and
preview are collected in this sample folder. The
entry point uses the Newton Samples runner and tests use the local package path.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# SPDX-License-Identifier: Apache-2.0
Loading