Smart Factory Digital Twin.
Connecting factory geometry to production context
- ROLE
- Workflow direction & simulation validation
- TOOLS
- OpenUSD · Omniverse Kit · Python · OPC UA · MQTT
- DISCIPLINES
- CAD integration · Simulated telemetry · Custom interfaces
- YEAR
- 2026
All telemetry is simulated. No real PLC, MES integration or real-world deployment is claimed.

A factory layout.
Its operational context.
I directed a human-in-the-loop, agent-assisted digital-twin demonstrator for furniture-panel production, combining CAD-derived equipment, reusable OpenUSD assets and simulated station data in a custom USD Composer application.
The industrial digital twin concept links a spatial factory model to station identity and process state. Here, the process is simulated. Storage, CNC, Assembly, Quality Control, Packaging and Shipping form six functional areas within four layout zones. Equipment selection links the model to station records.
SAVED M9 ACCEPTANCE / SIMULATED BATCH
- Simulated stations
- 4
CNC, Assembly, QC and Packaging
- Scenario ticks
- 120
One-second ticks; scripted batch
- Received messages
- 480
120 saved records per station
- QC yield
- 66.7%
2 accepted / 3 inspected
Saved M9 simulation results; no measured transport latency, throughput benchmark or real-factory performance is claimed.
Reusable assets.
Separate placement decisions.
Separate layers organize geometry, equipment identity and corrections.
OpenUSD factory structure
SmartFactory.usda is the main stage: metres, Z-up and a /World default prim. Its saved root contains composition and metadata, with no prim specs. The persistent sublayer order is identity, Work, placement, then the nine existing functional layers in their original order.
The functional layers retain equipment groups, reference sites, facility, openings and layout. Placement owns 23 transform attribute specs at nine equipment occurrences. Reusable asset references and wrappers retain geometry and intrinsic corrections. Four stations supply telemetry; the second assembly bench, racks and pallets stay static.
CAD-to-USD asset integration
NVIDIA’s HOOPS converter retained the OLSK CNC STEP assembly’s hierarchy, instances and materials. A reference wrapper corrects its orientation with +90° X rotation, millimetre-to-metre scaling and centred floor alignment; a separate parent controls placement.
Assembly, QC and packaging assets complement NVIDIA racks and pallets, scaled from centimetres. Layered material overrides preserve vendor originals. Third-party CAD and models are not distributed.
Explicit identity.
A controlled edit destination.
The identity layer uses project customData, not a registered USD schema. A shared binding registry replaces repeated mapping tables. It rejects missing, duplicate or inconsistent targets. The second assembly bench is intentionally unbound. Registry changes require coordinated identity updates and consumer reloads.
The Kit controller waits for the Layers widget, disables automatic authoring and spec linking, selects normal mode, sets Work as the persistent edit target, and verifies it. UI locks and temporary Sdf guards protect source layers during the workflow. They are not security controls; root remains writable for Kit metadata.
Selected principles.
A bounded adaptation.
Jan Haluszka’s OpenUSD GoodStart Composition Contract ↗ informed the separation of identity, working opinions, placement and asset definitions. The project review mapped selected principles from version 0.2.14: add only needed layers, declare strength and ownership, verify the actual authoring target, and compare composition before and after each change.
The contract is an independent proposal, not an NVIDIA or AOUSD standard. This implementation keeps its existing names, metre units, Z-up axis and functional layers. It does not claim full contract compliance. No endorsement, certification, review or contribution by Jan Haluszka to this implementation is claimed.
Python → OPC UA → MQTT.
Then into Omniverse.
A deterministic Python model supplies a simulated OPC UA server. A gateway publishes JSON through Mosquitto MQTT; a Kit extension updates Station Telemetry and Factory Operations.
A shared, versioned binding registry maps cnc_01, asm_01, qc_01 and pack_01 to USD paths and protocol records. The identity layer holds project-local station metadata; physical equipment IDs are null. Consumers validate the composed identity. Telemetry stays in Python, UI state and recordings; it neither comes from meshes nor drives machine motion.
A coherent station snapshot
Four OPC UA station records carry completed-tick markers. The gateway publishes only when all markers agree before and after the read, rejecting partial updates.
Network reception and UI updates
Polling runs at about 5 Hz; each new tick produces one message per station per second. MQTT receives in the background; Kit’s main thread updates the UI. Connection, gateway presence and record age are tracked separately. Localhost transport uses QoS 0, without authentication or encryption.
Diagram wording reflects M9: “NO CONNECTION” became “DISCONNECTED” later. It describes architecture, not the current UI.
Three units.
One deliberate rejection.
Three units pass through CNC, assembly, QC and packaging. Assembly takes 20 simulated seconds per unit, QC 8 and packaging 15, with one-second handovers. Unit 2 is deliberately rejected; only units 1 and 3 are packaged.
The run has 120 one-second ticks; packaging ends at tick 110. A CNC fault at ticks 45–59 follows all CNC completions and does not interrupt downstream work. Transfers are logical, with no physical animation.
Select the equipment.
Read the station state.
Factory Operations shows four stations’ state, record age and active unit. Selecting a station selects its USD prim and links Station Telemetry, which supports MQTT values and stepping through recorded JSONL.
Cycle resets are tracked. Mid-cycle joins show current counters and flag missing earlier alarms and events.

Keep transforms correct.
Keep the data meaningful.
Preserving CAD transforms
separating the orientation and scale wrapper from placement prevented transform overrides.
Valid USD hierarchy
corrected model kinds while retaining geometry and references.
Consistent protocol data
sequence checks and explicit null conversion preserved data consistency between OPC UA and JSON.
Trustworthy state reporting
reset, mid-cycle and stale-data handling corrected misleading counters and freshness indicators.
The recorded batch.
The acceptance boundary.
| Evidence class | Recorded result and limit |
|---|---|
| Offline identity / M5A | 29/29 tests and 32/32 comparison checks passed. Deterministic telemetry hashes stayed equal. Protocol imports and message tests do not prove a live connection. |
| Offline authoring / M5B | Initial checks: 18/18 tests and 35/35 comparisons passed. The later routing fix passed 20 focused tests and 29 M5A regression tests. |
| Manual Composer / M5B | On a disposable scene, Work received the workbench edit, muting restored the old value, and save/reopen retained the edit and target. This passed after a guarded reload of the disposable Work layer. Root was not saved; production Work was untouched. |
| Offline placement / M5C | Candidate and active stages passed LoadAll and LoadNone with zero composition errors. Comparisons retained 27,682 prim records, 14,631 world matrices per mode and 894 prototypes. Four focused policy/rollback checks passed; 693 protected files kept their hashes. |
| Visual Composer / M5C | The project owner reported a visual inspection pass. No separate visual-test artifact was identified. This is not full live migration acceptance. |
Sources: M5A identity, M5B authoring and M5C placement reports; saved author/reopen records and placement comparison results. These are recorded project tests, not new simulation tests run for this page update.
Simulated process tests — earlier M9 evidence
Saved M9 evidence contains 480 MQTT messages: 120 per station. The audit matched server, gateway and subscriber records to the dashboard totals.
| Measurement | Simulated outcome |
|---|---|
| CNC parts | 3 |
| Assembled | 3 |
| Inspected | 3 |
| QC accepted | 2 |
| QC rejected | 1 |
| Packaged | 2 |
| QC yield | 66.7% |
Source: saved M9 server, gateway, subscriber and dashboard records.
Reviewed screenshots show later simulated sessions, separate from M9 acceptance. The earlier M4V asset-validation baseline records 2 failures and 1,188 warnings. Standalone USD still reports an unresolved OmniPBR.mdl dependency and old crate-format warnings. The composition milestones did not repair these assets; no clean validation or SimReady certification is claimed.
Scene organization.
Protocol integration.
Evidence-based validation.
I defined the factory composition, asset workflow and simulation requirements, directed debugging, and validated results. Codex and Claude Code assisted with implementation, scripting and repeatable checks; I reviewed outputs and accepted major changes.
Core tools: OpenUSD, Kit/USD Composer, HOOPS CAD converter, Python/asyncua, Mosquitto, MQTT, omni.ui, PowerShell and NVIDIA asset-validation tools.
- Project direction
- Marko Bokan — workflow direction, integration decisions and validation.
- CNC design
- OLSK Large CNC — Open Lab Starter Kit ↗
Design: Daniele Ingrassia / InMachines Ingrassia GmbH. Copyright Daniele Ingrassia and Tobias Redlich / Helmut-Schmidt-Universität. CAD commit e7081c49c582b732ea6ab3c160bf557609754cfc: CERN-OHL-W-2.0. Integration: STEP-to-USD conversion and orientation, scale and placement corrections. Third-party CAD design. - Library equipment
- NVIDIA Industrial Assets Pack (Industrial_NVD@10012), rack/pallet models. NVIDIA retains ownership; models and textures are not distributed.
- Figures
- Project dashboard captures and original architecture diagram. Telemetry is SIMULATED; no third-party source assets are distributed.
A local demonstrator.
A defined scope.
All telemetry and production events are simulated. There is no real PLC, MES, physical product flow or real-world deployment. QC is illustrative and does not measure geometry.
Outage records are lost; event history is not persistent. Local transport lacks production security. Earlier asset-validation findings remain. No fully validated robotics, physics, production readiness or SimReady certification is claimed. Future third-party imagery requires separate rights review.