feat(assets): integrate realistic 3d openusd assets, modular builder, and robot animator
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
# Implementation Report: Realistic 3D Asset Integration
|
||||
|
||||
**Warehouse Robot Fleet Digital Twin**
|
||||
**Subsystem**: NVIDIA Omniverse OpenUSD 3D Visualization
|
||||
**Platform**: Ubuntu 24.04 LTS | NVIDIA Omniverse Kit 110.4 | OpenUSD ASCII (`.usda`)
|
||||
|
||||
---
|
||||
|
||||
## 1. Assessment of Prior Implementation
|
||||
|
||||
Prior to this milestone, the warehouse 3D visualization relied on procedurally generated primitive cubes and cylinders (`WarehouseUSDGenerator` and `AnimatedUSDGenerator`):
|
||||
- Racks were represented by single extruded rectangular bounding boxes with solid colors.
|
||||
- Pallets and cargo cartons were simple monolithic blocks without structural detail.
|
||||
- Robots were represented by basic cuboids with small indicator prisms.
|
||||
- Architectural elements (walls, floors, columns) lacked structural framing, concrete slabs, dock doors, or safety bollards.
|
||||
- Stations and charging pads were flat rectangular plates.
|
||||
|
||||
While mathematically accurate and aligned with the NetworkX graph nodes, the visual appearance did not reflect a production-grade industrial facility.
|
||||
|
||||
### Preservation Guarantees
|
||||
The underlying discrete-event simulation engine, path planning, and spatial topology remain **100% preserved**:
|
||||
- **NetworkX Graph**: Grid nodes, edge lengths, traversal costs, and 4.0m wider aisles in Zone B remain the single source of truth.
|
||||
- **SimPy Discrete-Event Simulation**: Master clock, Poisson order generation, time-space conflict reservations, priority yielding, and opportunity charging operate identically.
|
||||
- **Strict Decoupling**: Simulation logic contains zero dependencies on visual meshes or rendering APIs.
|
||||
|
||||
---
|
||||
|
||||
## 2. Modular Architecture & Responsibilities
|
||||
|
||||
The visualization subsystem is structured into dedicated, decoupled modules under `src/warehouse_twin/visualization/`:
|
||||
|
||||
```
|
||||
src/warehouse_twin/visualization/
|
||||
├── __init__.py # Package exports
|
||||
├── asset_loader.py # Manifest resolution, validation, and USD referencing
|
||||
├── coordinate_mapper.py # Deterministic graph-to-world coordinate transformation
|
||||
├── materials.py # Industrial PBR UsdPreviewSurface shader library
|
||||
├── route_visualizer.py # Navigation highway corridor and lane visualizers
|
||||
├── warehouse_builder.py # Static 3D warehouse builder referencing modular assets
|
||||
├── robot_animator.py # Time-sampled kinematic track generator for 3D AMRs
|
||||
├── animated_usd.py # Legacy/primitive animation engine (preserved)
|
||||
└── trajectory_player.py # Continuous trajectory interpolation and playback state machine
|
||||
|
||||
assets/
|
||||
├── warehouse/
|
||||
│ ├── building_shell.usda # Concrete floor, perimeter walls, structural I-beam columns
|
||||
│ └── safety_barrier.usda # Industrial tubular steel safety guardrail
|
||||
├── racks/
|
||||
│ ├── pallet_rack_heavy.usda # Multi-tier heavy pallet rack with cross beams and decking
|
||||
│ └── shelving_unit_light.usda # High-density small parts shelving for Zone A
|
||||
├── pallets/
|
||||
│ ├── euro_pallet.usda # Standard European EPAL wooden pallet
|
||||
│ └── pallet_with_cartons.usda # Euro-pallet loaded with corrugated cardboard cartons
|
||||
├── robots/
|
||||
│ ├── amr_light.usda # Agile lightweight AMR with drive wheels, casters, LiDAR pucks
|
||||
│ └── amr_heavy.usda # Heavy-duty AMR with reinforced chassis, dual drives, lift bed
|
||||
└── stations/
|
||||
├── dock_inbound.usda # Inbound dock bay with leveler ramp, bumpers, bollards
|
||||
├── picking_station.usda # Ergonomic workstation table, terminal arm, roller conveyor
|
||||
└── charging_station.usda # Automated inductive charging pad with power pedestal tower
|
||||
|
||||
config/
|
||||
└── asset_manifest.json # Declarative catalog recording asset roles, dimensions, scales
|
||||
```
|
||||
|
||||
### Module Responsibilities
|
||||
|
||||
1. **`asset_loader.py` (`AssetManifest`, `USDAssetLoader`)**:
|
||||
- Parses and validates `config/asset_manifest.json`.
|
||||
- Resolves relative file paths between scene directories and asset files.
|
||||
- Generates non-destructive OpenUSD references (`references = @.../asset.usda@`).
|
||||
- Maintains registered prim paths to prevent namespace collisions or duplicate prims.
|
||||
|
||||
2. **`coordinate_mapper.py` (`CoordinateMapper`)**:
|
||||
- Maps 2D/3D graph coordinates to continuous world coordinates.
|
||||
- Configurable origin `(0.0, 0.0, 0.0)`, floor elevation, and scale multiplier.
|
||||
- Computes multi-level shelf elevations for pallets seated on rack tiers.
|
||||
|
||||
3. **`materials.py` (`MaterialManager`)**:
|
||||
- Defines standard industrial PBR materials compliant with `UsdPreviewSurface`.
|
||||
- Includes `ConcreteFloor`, `SafetyYellow`, `SafetyAmber`, `StructuralSteel`, `WoodPine`, `KraftCardboard`, `TechWhite`, `BeaconCyan`, and `BeaconEmerald`.
|
||||
|
||||
4. **`route_visualizer.py` (`RouteVisualizer`)**:
|
||||
- Generates navigation highway corridors, lane markings, and aisle boundaries under `/World/Routes/...`.
|
||||
|
||||
5. **`warehouse_builder.py` (`Warehouse3DBuilder`)**:
|
||||
- Constructs the complete static 3D warehouse stage.
|
||||
- Instantiates architecture, zones, storage racks, multi-tier pallets, stations, charging bays, barriers, camera presets, and robot fleet.
|
||||
|
||||
6. **`robot_animator.py` (`Robot3DAnimator`)**:
|
||||
- Connects simulation trajectory waypoints to 3D robot assets.
|
||||
- Generates time-sampled translation (`xformOp:translate.timeSamples`) and rotation (`xformOp:rotateXYZ.timeSamples`).
|
||||
- Overrides status dome beacon colors dynamically based on operational state.
|
||||
- Dynamically mounts cargo pallets atop the AMR lift bed with time-sampled visibility (`visibility.timeSamples = { t: "inherited" / "invisible" }`).
|
||||
|
||||
---
|
||||
|
||||
## 3. Validated 3D Assets & Manifest
|
||||
|
||||
All 11 assets are valid OpenUSD ASCII stages (`.usda`) adhering to `metersPerUnit = 1.0` and `upAxis = "Z"`:
|
||||
|
||||
| Asset ID | Role | Dimensions (L x W x H) | File Path | Key Features |
|
||||
| :--- | :--- | :---: | :--- | :--- |
|
||||
| `building_shell` | Architecture | 60.0m x 40.0m x 8.0m | `assets/warehouse/building_shell.usda` | Concrete slab, perimeter walls, structural I-beam columns with hazard base guards |
|
||||
| `safety_barrier` | Barrier | 1.8m x 0.25m x 0.9m | `assets/warehouse/safety_barrier.usda` | High-vis yellow tubular guardrails with mounting floor flanges |
|
||||
| `pallet_rack_heavy` | Storage Rack | 2.8m x 1.2m x 4.5m | `assets/racks/pallet_rack_heavy.usda` | 4 structural steel uprights, 3 safety orange load beam tiers, steel decking, anchor footplates |
|
||||
| `shelving_unit_light`| Storage Shelf | 1.9m x 0.8m x 3.2m | `assets/racks/shelving_unit_light.usda`| 4 slotted posts, 4 powder-coated blue steel shelves, canopy cover |
|
||||
| `euro_pallet` | Pallet | 1.2m x 0.8m x 0.144m | `assets/pallets/euro_pallet.usda` | 5 top deck boards, 3 stringers, 9 spacer blocks, 3 base runners (EPAL standard) |
|
||||
| `pallet_with_cartons`| Inventory | 1.2m x 0.8m x 0.95m | `assets/pallets/pallet_with_cartons.usda`| Euro-pallet loaded with 8 corrugated cardboard boxes, shipping labels, strap bands |
|
||||
| `amr_light` | Robot | 0.8m x 0.6m x 0.35m | `assets/robots/amr_light.usda` | Beveled tech-white chassis, recessed drive wheels, casters, LiDAR scanner, 360 status dome, E-stop |
|
||||
| `amr_heavy` | Robot | 1.4m x 1.0m x 0.45m | `assets/robots/amr_heavy.usda` | Reinforced amber steel chassis, dual high-torque wheels, corner LiDARs, hydraulic pallet lift bed |
|
||||
| `dock_inbound` | Station | 2.6m x 3.0m x 3.6m | `assets/stations/dock_inbound.usda` | Hydraulic leveler ramp, rubber bumpers, yellow safety bollards, overhead roll-up portal frame |
|
||||
| `picking_station` | Station | 2.0m x 1.5m x 1.8m | `assets/stations/picking_station.usda` | Steel workbench, articulated terminal display arm, roller conveyor, kitting tote bins |
|
||||
| `charging_station` | Station | 1.5m x 1.5m x 1.4m | `assets/stations/charging_station.usda` | Copper inductive contact pad, vertical power pedestal tower, digital battery telemetry display |
|
||||
|
||||
---
|
||||
|
||||
## 4. Coordinate & Scale Conventions
|
||||
|
||||
- **Units**: 1 USD unit = 1.0 meter (`metersPerUnit = 1.0`).
|
||||
- **Coordinate System**: Right-handed Cartesian (`upAxis = "Z"`).
|
||||
- $+X$: Facility Width (0.0m to 60.0m, East).
|
||||
- $+Y$: Facility Depth (0.0m to 40.0m, North).
|
||||
- $+Z$: Facility Elevation (0.0m ground floor to 8.0m roof clearance).
|
||||
- **Origin**: South-West corner of the warehouse interior floor is at $(0.0, 0.0, 0.0)$.
|
||||
- **Storage Rack Alignment**: Racks are placed at exact storage location positions defined in `config/warehouse.json`.
|
||||
- **Aisle Clearance**:
|
||||
- Standard Zone A/C aisles: 2.5m - 3.0m width.
|
||||
- Slow-moving Zone B aisles: 4.0m width, strictly restricted to `heavy_amr`.
|
||||
|
||||
---
|
||||
|
||||
## 5. Generated 3D Stages
|
||||
|
||||
The system exports two primary stages into `omniverse/scenes/`:
|
||||
|
||||
1. **Static Realistic Stage** ([`omniverse/scenes/warehouse_realistic.usda`](file:///home/dmhai/warehouse-digital-twin/omniverse/scenes/warehouse_realistic.usda)):
|
||||
- Complete facility populated with modular referenced building shell, multi-tier racks, pallets, cartons, stations, charging bays, barriers, camera presets, and stationary AMR fleet.
|
||||
- Size: ~35 KB (compact due to modular referencing).
|
||||
|
||||
2. **Animated Dynamic Stage** ([`omniverse/scenes/warehouse_realistic_animated.usda`](file:///home/dmhai/warehouse-digital-twin/omniverse/scenes/warehouse_realistic_animated.usda)):
|
||||
- Complete facility plus time-sampled kinematic tracks for the 4-AMR fleet across 1 hour of simulation (86,383 animation frames at 24 fps).
|
||||
- Time-sampled translation, rotation, status beacon colors, and dynamic cargo pallet attachment.
|
||||
- Size: ~1.3 MB.
|
||||
|
||||
---
|
||||
|
||||
## 6. How to Open and Play in NVIDIA Omniverse Kit
|
||||
|
||||
### Option 1: Native Timeline Playback (Zero Extensions Required)
|
||||
1. Launch Omniverse Kit:
|
||||
```bash
|
||||
/home/dmhai/Desktop/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/warehouse_twin.kit.sh
|
||||
```
|
||||
2. In the Kit application, select **File $\rightarrow$ Open**.
|
||||
3. Select `omniverse/scenes/warehouse_realistic_animated.usda`.
|
||||
4. Press **Spacebar** (or click **Play** on the timeline toolbar at the bottom).
|
||||
5. Use the Camera menu in the viewport to switch between:
|
||||
- `OverviewCamera` (elevated 3/4 perspective view of the entire facility).
|
||||
- `TopDownCamera` (orthographic floorplan view).
|
||||
- `Free Camera` (WASD + right-click navigation).
|
||||
|
||||
### Option 2: Inspect Static Stage
|
||||
```bash
|
||||
warehouse-twin export-usd
|
||||
```
|
||||
Opens `omniverse/scenes/warehouse_realistic.usda` to inspect architecture, rack placement, pallets, and stations without playback.
|
||||
|
||||
---
|
||||
|
||||
## 7. Testing & Verification Summary
|
||||
|
||||
A dedicated test suite was added in `tests/unit/test_assets_validation.py` and `tests/unit/test_realistic_3d_assets.py`.
|
||||
|
||||
```bash
|
||||
.venv/bin/pytest tests/ -v
|
||||
```
|
||||
|
||||
- **Total Unit Tests Executed**: 164
|
||||
- **Passed**: 164
|
||||
- **Failed**: 0
|
||||
- **Pass Rate**: 100.0%
|
||||
- **Execution Time**: ~2.53 seconds
|
||||
|
||||
```
|
||||
tests/unit/test_assets_validation.py::test_asset_manifest_structure_and_completeness PASSED [ 1%]
|
||||
tests/unit/test_assets_validation.py::test_manifest_assets_exist_on_disk PASSED [ 1%]
|
||||
tests/unit/test_assets_validation.py::test_rack_and_robot_usda_syntax PASSED [ 2%]
|
||||
tests/unit/test_realistic_3d_assets.py::test_coordinate_mapper_bidirectional PASSED [ 59%]
|
||||
tests/unit/test_realistic_3d_assets.py::test_asset_loader_creates_valid_references PASSED [ 60%]
|
||||
tests/unit/test_realistic_3d_assets.py::test_warehouse_builder_generates_valid_scene PASSED[ 60%]
|
||||
tests/unit/test_realistic_3d_assets.py::test_robot_animator_single_and_multi_robot PASSED [ 61%]
|
||||
...
|
||||
============================= 164 passed in 2.53s ==============================
|
||||
```
|
||||
+47
-7
@@ -19,11 +19,49 @@
|
||||
| **Phase 6** | **Analytics and experiment framework** | **COMPLETED** | **129 passed** |
|
||||
| **Phase 7** | **Omniverse USD visualization** | **COMPLETED** | **137 passed** |
|
||||
| **Phase 8** | **Operational dashboard** | **COMPLETED** | **144 passed** |
|
||||
| **Phase 9** | **Optimization and final demonstration** | **COMPLETED** | **157 passed (100%)** |
|
||||
| **Phase 9** | **Optimization and final demonstration** | **COMPLETED** | **157 passed** |
|
||||
| **Extension** | **Realistic 3D Asset Integration** | **COMPLETED** | **164 passed (100%)** |
|
||||
|
||||
---
|
||||
|
||||
## 2. Completed Tasks (Phase 9)
|
||||
## 2. Completed Tasks (Realistic 3D Asset Integration)
|
||||
|
||||
- [x] Conducted Repository Inspection & Asset Analysis:
|
||||
- Validated Kit 110.4 environment at `/home/dmhai/Desktop/nvidia-omniverse/kit-app-template/source/apps/warehouse_twin.kit`.
|
||||
- Identified coordinate conventions: $1.0\text{m}$ units, `upAxis = "Z"`, right-handed Cartesian.
|
||||
- Documented low disk space constraint (~11 GB free, 99% usage) to avoid heavy external downloads.
|
||||
- [x] Designed & Created Modular Industrial 3D OpenUSD Assets (`assets/` and `omniverse/assets/`):
|
||||
- `assets/racks/pallet_rack_heavy.usda`: Multi-tier heavy pallet rack with 4 upright columns, 3 safety orange load beam levels, steel grates, footplates.
|
||||
- `assets/racks/shelving_unit_light.usda`: High-density parts shelving unit for Zone A with slotted posts, 4 powder-coated blue steel shelves, canopy cover.
|
||||
- `assets/pallets/euro_pallet.usda`: Standard European EPAL wooden pallet with 5 deck boards, stringers, 9 solid spacer blocks, and base runners.
|
||||
- `assets/pallets/pallet_with_cartons.usda`: Euro-pallet loaded with corrugated cardboard cartons, shipping labels, strap bands.
|
||||
- `assets/robots/amr_light.usda`: Agile lightweight AMR with beveled chassis, recessed drive wheels, casters, LiDAR scanner, 360 status dome, E-stop.
|
||||
- `assets/robots/amr_heavy.usda`: Heavy-duty pallet AMR with reinforced steel chassis, dual high-torque wheels, corner LiDARs, hydraulic pallet lift bed.
|
||||
- `assets/stations/dock_inbound.usda`: Inbound loading bay with hydraulic leveler ramp, bumpers, safety bollards, roll-up door frame.
|
||||
- `assets/stations/picking_station.usda`: Ergonomic workstation table, articulated terminal display arm, roller conveyor, kitting tote bins.
|
||||
- `assets/stations/charging_station.usda`: Automated inductive charging station with copper contact strips, vertical power pedestal tower, telemetry display.
|
||||
- `assets/warehouse/safety_barrier.usda`: High-vis yellow tubular steel safety guardrail.
|
||||
- `assets/warehouse/building_shell.usda`: Industrial concrete floor slab, exterior architectural walls, structural I-beam columns with hazard base guards.
|
||||
- [x] Created Declarative Asset Manifest (`config/asset_manifest.json`):
|
||||
- Catalog defining asset IDs, roles, paths, dimensions, scales, orientations, and zone suitability metadata.
|
||||
- [x] Implemented Reusable 3D Visualization Architecture (`src/warehouse_twin/visualization/`):
|
||||
- `asset_loader.py` (`AssetManifest`, `USDAssetLoader`): Safe reference instantiation, relative path resolution, collision prevention.
|
||||
- `coordinate_mapper.py` (`CoordinateMapper`): Graph-to-world Cartesian transformation, elevation offsets, multi-tier shelf heights.
|
||||
- `materials.py` (`MaterialManager`): PBR `UsdPreviewSurface` materials library (Concrete, Steel, Safety Yellow/Amber, Pine Wood, Kraft Cardboard, Beacon Emissive).
|
||||
- `route_visualizer.py` (`RouteVisualizer`): Navigation highway corridors, lane visualizers, and aisle markings.
|
||||
- `warehouse_builder.py` (`Warehouse3DBuilder`): Constructs complete static 3D warehouse referencing modular assets.
|
||||
- `robot_animator.py` (`Robot3DAnimator`): Generates time-sampled kinematic tracks for 3D AMRs, dynamic status beacons, and mounted cargo attachments.
|
||||
- [x] Updated CLI Interface (`src/warehouse_twin/cli.py`):
|
||||
- `warehouse-twin export-usd` default generates realistic 3D scenes (`warehouse_realistic.usda` and `warehouse_realistic_animated.usda`).
|
||||
- Added `--legacy-blocks` and `--manifest` flags for full backward compatibility.
|
||||
- [x] Documentation & Test Suite:
|
||||
- Created `IMPLEMENTATION.md` detailing architecture, assets, coordinate conventions, and Omniverse instructions.
|
||||
- Added 7 new unit tests in `test_assets_validation.py` and `test_realistic_3d_assets.py`.
|
||||
- Expanded test suite to **164 passed unit tests (100% pass rate in 2.53s)**.
|
||||
|
||||
---
|
||||
|
||||
## 3. Completed Tasks (Phase 9)
|
||||
|
||||
- [x] Implemented Layout Variation & Optimization Engine (`src/warehouse_twin/optimization/layout_optimizer.py`):
|
||||
- 5 layout architectural variants: `baseline`, `decentralized_charging`, `directional_highways`, `velocity_slotting`, and `hybrid_optimal`.
|
||||
@@ -168,12 +206,12 @@
|
||||
|
||||
---
|
||||
|
||||
## 6. Test & Validation Summary
|
||||
## 7. Test & Validation Summary
|
||||
|
||||
- **Total Unit Tests Executed**: 157
|
||||
- **Passed**: 157
|
||||
- **Total Unit Tests Executed**: 164
|
||||
- **Passed**: 164
|
||||
- **Failed**: 0
|
||||
- **Execution Time**: ~3.05 seconds
|
||||
- **Execution Time**: ~2.53 seconds
|
||||
- **Pass Rate**: 100.0%
|
||||
- **Test Suites**:
|
||||
- `test_environment.py`: 5 passed
|
||||
@@ -211,10 +249,12 @@
|
||||
- `test_fleet_optimizer.py`: 4 passed
|
||||
- `test_benchmark_comparator.py`: 2 passed
|
||||
- `test_final_demo.py`: 2 passed
|
||||
- `test_assets_validation.py`: 3 passed
|
||||
- `test_realistic_3d_assets.py`: 4 passed
|
||||
|
||||
---
|
||||
|
||||
## 7. Benchmark Performance & Optimization Results
|
||||
## 8. Benchmark Performance & Optimization Results
|
||||
|
||||
### Baseline vs. Hybrid Optimal Layout (1,800s Simulation, Seed 42)
|
||||
|
||||
|
||||
@@ -236,28 +236,42 @@ The primary drive (`/`) has constrained free space (~8.9 GB free). To prevent di
|
||||
|
||||
---
|
||||
|
||||
## 9. Omniverse Visualization (Phase 7)
|
||||
## 9. Omniverse 3D Visualization (Realistic Assets & Time-Sampled Playback)
|
||||
|
||||
The visualizer connects via file-based trajectory playback and time-sampled OpenUSD scenes:
|
||||
The visualizer supports modular, realistic 3D OpenUSD assets (architectural building shell, multi-tier pallet racks, parts shelving, wooden Euro-pallets, cargo cartons, charging pedestals, inbound dock ramps, and high-detail AMRs) referencing a declarative manifest (`config/asset_manifest.json`):
|
||||
|
||||
### Option A: Native OpenUSD Timeline Playback (Zero Extensions Required)
|
||||
1. Generate the animated OpenUSD scene:
|
||||
```bash
|
||||
warehouse-twin export-usd \
|
||||
--trajectory results/trajectories/trajectory_default.json \
|
||||
--output omniverse/scenes/warehouse_phase7_animated.usda
|
||||
```
|
||||
2. Launch Omniverse Kit:
|
||||
### Option A: Realistic 3D Warehouse Scene (Static)
|
||||
Generate a realistic 3D warehouse scene with structural shell, racks, multi-level pallets, stations, and parked fleet:
|
||||
```bash
|
||||
warehouse-twin export-usd
|
||||
```
|
||||
Exports to `omniverse/scenes/warehouse_realistic.usda`.
|
||||
|
||||
### Option B: Realistic 3D Animated Fleet Simulation (Native Timeline Playback)
|
||||
Export complete time-sampled kinematic tracks for all AMRs, dynamic status beacons, and mounted cargo attachments:
|
||||
```bash
|
||||
warehouse-twin export-usd \
|
||||
--trajectory results/trajectories/trajectory_sim.json \
|
||||
--output omniverse/scenes/warehouse_realistic_animated.usda \
|
||||
--step-seconds 2.0
|
||||
```
|
||||
|
||||
1. Launch Omniverse Kit:
|
||||
```bash
|
||||
/home/dmhai/Desktop/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/warehouse_twin.kit.sh
|
||||
```
|
||||
3. Open `omniverse/scenes/warehouse_phase7_animated.usda` via `File -> Open` and click **Play** (or press `Spacebar`) on the timeline toolbar!
|
||||
2. In the Kit window, select **File $\rightarrow$ Open** and choose `omniverse/scenes/warehouse_realistic_animated.usda`.
|
||||
3. Press **Spacebar** or click **Play** on the timeline toolbar to view the simulation with realistic assets!
|
||||
4. Use the viewport camera dropdown to switch to `OverviewCamera` or `TopDownCamera`.
|
||||
|
||||
### Option B: Interactive Trajectory Playback Extension
|
||||
### Option C: Interactive Trajectory Playback Extension
|
||||
1. Launch Omniverse Kit.
|
||||
2. Open `omniverse/scenes/warehouse_phase7.usda`.
|
||||
2. Open `omniverse/scenes/warehouse_realistic.usda`.
|
||||
3. The `omni.warehouse.twin.visualizer` window automatically provides Play/Pause controls, time scrubbing slider, speed multipliers ($0.5\times$ to $10.0\times$), and real-time fleet telemetry HUD.
|
||||
|
||||
> [!NOTE]
|
||||
> To export using legacy block/primitive geometry instead of realistic 3D assets, append `--legacy-blocks` to the command line.
|
||||
|
||||
---
|
||||
|
||||
## 10. Operational Dashboard (Phase 8)
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "EuroPallet"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Standard European Industrial Wooden Euro-Pallet 3D Asset (1200mm x 800mm x 144mm)"
|
||||
)
|
||||
|
||||
def Xform "EuroPallet" (
|
||||
assetInfo = {
|
||||
string name = "EuroPallet"
|
||||
string role = "pallet"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Top Deck Boards (Pine Wood Tone)
|
||||
def Scope "TopDeck"
|
||||
{
|
||||
def Cube "Board_1"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.34, 0.134)
|
||||
double3 xformOp:scale = (0.60, 0.065, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.76, 0.60, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.75]
|
||||
}
|
||||
def Cube "Board_2"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.17, 0.134)
|
||||
double3 xformOp:scale = (0.60, 0.055, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.78, 0.62, 0.42)]
|
||||
float[] primvars:displayRoughness = [0.75]
|
||||
}
|
||||
def Cube "Board_3"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.134)
|
||||
double3 xformOp:scale = (0.60, 0.065, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.75, 0.59, 0.39)]
|
||||
float[] primvars:displayRoughness = [0.75]
|
||||
}
|
||||
def Cube "Board_4"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.17, 0.134)
|
||||
double3 xformOp:scale = (0.60, 0.055, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.77, 0.61, 0.41)]
|
||||
float[] primvars:displayRoughness = [0.75]
|
||||
}
|
||||
def Cube "Board_5"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.34, 0.134)
|
||||
double3 xformOp:scale = (0.60, 0.065, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.76, 0.60, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.75]
|
||||
}
|
||||
}
|
||||
|
||||
# Transverse Stringer Boards (z = 0.114)
|
||||
def Scope "Stringers"
|
||||
{
|
||||
def Cube "Stringer_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-0.53, 0.0, 0.114)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.72, 0.56, 0.36)]
|
||||
}
|
||||
def Cube "Stringer_Center"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.114)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.72, 0.56, 0.36)]
|
||||
}
|
||||
def Cube "Stringer_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.53, 0.0, 0.114)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.010)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.72, 0.56, 0.36)]
|
||||
}
|
||||
}
|
||||
|
||||
# 9 Solid Wood Spacer Blocks (z = 0.064)
|
||||
def Scope "Blocks"
|
||||
{
|
||||
def Cube "Block_FL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.53, -0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_FC"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_FR"
|
||||
{
|
||||
double3 xformOp:translate = (0.53, -0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_ML"
|
||||
{
|
||||
double3 xformOp:translate = (-0.53, 0.0, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_MC"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_MR"
|
||||
{
|
||||
double3 xformOp:translate = (0.53, 0.0, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.53, 0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_RC"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
def Cube "Block_RR"
|
||||
{
|
||||
double3 xformOp:translate = (0.53, 0.33, 0.064)
|
||||
double3 xformOp:scale = (0.07, 0.07, 0.040)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.70, 0.54, 0.34)]
|
||||
}
|
||||
}
|
||||
|
||||
# Bottom Base Runner Boards (z = 0.012)
|
||||
def Scope "BaseRunners"
|
||||
{
|
||||
def Cube "Runner_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-0.53, 0.0, 0.012)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.012)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.68, 0.52, 0.32)]
|
||||
}
|
||||
def Cube "Runner_Center"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.012)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.012)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.68, 0.52, 0.32)]
|
||||
}
|
||||
def Cube "Runner_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.53, 0.0, 0.012)
|
||||
double3 xformOp:scale = (0.07, 0.40, 0.012)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.68, 0.52, 0.32)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "PalletWithCartons"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Euro-Pallet Loaded with Cargo Cartons 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "PalletWithCartons" (
|
||||
assetInfo = {
|
||||
string name = "PalletWithCartons"
|
||||
string role = "inventory_pallet"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Base Euro Pallet
|
||||
def "BasePallet" (
|
||||
references = @./euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
# StPrimary Stack Layer 1 (Cardboard Kraft Brown)
|
||||
def Scope "CartonLayer1"
|
||||
{
|
||||
def Cube "Carton_1"
|
||||
{
|
||||
double3 xformOp:translate = (-0.28, -0.19, 0.35)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.19)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.80, 0.62, 0.38)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_2"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, -0.19, 0.35)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.19)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.82, 0.64, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_3"
|
||||
{
|
||||
double3 xformOp:translate = (-0.28, 0.19, 0.35)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.19)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.79, 0.61, 0.37)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_4"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, 0.19, 0.35)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.19)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.81, 0.63, 0.39)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
}
|
||||
|
||||
# Stack Layer 2 (z = 0.73m)
|
||||
def Scope "CartonLayer2"
|
||||
{
|
||||
def Cube "Carton_5"
|
||||
{
|
||||
double3 xformOp:translate = (-0.28, -0.19, 0.73)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.18)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.81, 0.63, 0.39)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_6"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, -0.19, 0.73)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.18)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.78, 0.60, 0.36)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_7"
|
||||
{
|
||||
double3 xformOp:translate = (-0.28, 0.19, 0.73)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.18)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.82, 0.64, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
def Cube "Carton_8"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, 0.19, 0.73)
|
||||
double3 xformOp:scale = (0.27, 0.18, 0.18)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.80, 0.62, 0.38)]
|
||||
float[] primvars:displayRoughness = [0.85]
|
||||
}
|
||||
}
|
||||
|
||||
# Shipping Labels & Corner Edge Protectors
|
||||
def Scope "Details"
|
||||
{
|
||||
def Cube "ShippingLabel"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, -0.375, 0.73)
|
||||
double3 xformOp:scale = (0.10, 0.005, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.98, 0.98, 0.98)]
|
||||
}
|
||||
def Cube "StrapBand_X1"
|
||||
{
|
||||
double3 xformOp:translate = (-0.28, 0.0, 0.54)
|
||||
double3 xformOp:scale = (0.015, 0.385, 0.40)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.15, 0.15)]
|
||||
}
|
||||
def Cube "StrapBand_X2"
|
||||
{
|
||||
double3 xformOp:translate = (0.28, 0.0, 0.54)
|
||||
double3 xformOp:scale = (0.015, 0.385, 0.40)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.15, 0.15)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "PalletRackHeavy"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Multi-Tier Heavy Pallet Rack 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "PalletRackHeavy" (
|
||||
assetInfo = {
|
||||
string name = "PalletRackHeavy"
|
||||
string role = "storage_rack"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Upright Frame Columns (Structural Steel Blue)
|
||||
def Scope "Uprights"
|
||||
{
|
||||
# Front-Left Column
|
||||
def Cube "Column_FL"
|
||||
{
|
||||
double3 xformOp:translate = (-1.35, -0.55, 2.25)
|
||||
double3 xformOp:scale = (0.05, 0.05, 2.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.28, 0.55)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
# Front-Right Column
|
||||
def Cube "Column_FR"
|
||||
{
|
||||
double3 xformOp:translate = (1.35, -0.55, 2.25)
|
||||
double3 xformOp:scale = (0.05, 0.05, 2.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.28, 0.55)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
# Rear-Left Column
|
||||
def Cube "Column_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-1.35, 0.55, 2.25)
|
||||
double3 xformOp:scale = (0.05, 0.05, 2.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.28, 0.55)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
# Rear-Right Column
|
||||
def Cube "Column_RR"
|
||||
{
|
||||
double3 xformOp:translate = (1.35, 0.55, 2.25)
|
||||
double3 xformOp:scale = (0.05, 0.05, 2.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.28, 0.55)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
# Footplates (Anchors)
|
||||
def Cube "Footplate_FL"
|
||||
{
|
||||
double3 xformOp:translate = (-1.35, -0.55, 0.01)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.01)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.75, 0.75, 0.20)]
|
||||
}
|
||||
def Cube "Footplate_FR"
|
||||
{
|
||||
double3 xformOp:translate = (1.35, -0.55, 0.01)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.01)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.75, 0.75, 0.20)]
|
||||
}
|
||||
def Cube "Footplate_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-1.35, 0.55, 0.01)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.01)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.75, 0.75, 0.20)]
|
||||
}
|
||||
def Cube "Footplate_RR"
|
||||
{
|
||||
double3 xformOp:translate = (1.35, 0.55, 0.01)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.01)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.75, 0.75, 0.20)]
|
||||
}
|
||||
}
|
||||
|
||||
# Cross Beams & Diagonal Bracing Trusses (Safety Orange / Hazard Amber)
|
||||
def Scope "CrossBeams"
|
||||
{
|
||||
# Level 1 Beams (z = 0.5m)
|
||||
def Cube "Beam_Front_L1"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.55, 0.5)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
def Cube "Beam_Rear_L1"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.55, 0.5)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
# Level 2 Beams (z = 1.9m)
|
||||
def Cube "Beam_Front_L2"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.55, 1.9)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
def Cube "Beam_Rear_L2"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.55, 1.9)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
# Level 3 Beams (z = 3.3m)
|
||||
def Cube "Beam_Front_L3"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.55, 3.3)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
def Cube "Beam_Rear_L3"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.55, 3.3)
|
||||
double3 xformOp:scale = (1.35, 0.04, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.45, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
}
|
||||
|
||||
# Shelf Decking (Galvanized Steel Grates / Deck Boards)
|
||||
def Scope "Decking"
|
||||
{
|
||||
def Cube "Deck_L1"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.53)
|
||||
double3 xformOp:scale = (1.30, 0.50, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.65, 0.68, 0.72)]
|
||||
float[] primvars:displayRoughness = [0.5]
|
||||
}
|
||||
def Cube "Deck_L2"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 1.93)
|
||||
double3 xformOp:scale = (1.30, 0.50, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.65, 0.68, 0.72)]
|
||||
float[] primvars:displayRoughness = [0.5]
|
||||
}
|
||||
def Cube "Deck_L3"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 3.33)
|
||||
double3 xformOp:scale = (1.30, 0.50, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.65, 0.68, 0.72)]
|
||||
float[] primvars:displayRoughness = [0.5]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "ShelvingUnitLight"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Multi-Shelf Fast-Moving Parts Shelving Unit 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "ShelvingUnitLight" (
|
||||
assetInfo = {
|
||||
string name = "ShelvingUnitLight"
|
||||
string role = "storage_shelf"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Upright Posts (Industrial Machine Grey)
|
||||
def Scope "Posts"
|
||||
{
|
||||
def Cube "Post_FL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.95, -0.40, 1.60)
|
||||
double3 xformOp:scale = (0.03, 0.03, 1.60)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.30, 0.35)]
|
||||
}
|
||||
def Cube "Post_FR"
|
||||
{
|
||||
double3 xformOp:translate = (0.95, -0.40, 1.60)
|
||||
double3 xformOp:scale = (0.03, 0.03, 1.60)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.30, 0.35)]
|
||||
}
|
||||
def Cube "Post_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.95, 0.40, 1.60)
|
||||
double3 xformOp:scale = (0.03, 0.03, 1.60)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.30, 0.35)]
|
||||
}
|
||||
def Cube "Post_RR"
|
||||
{
|
||||
double3 xformOp:translate = (0.95, 0.40, 1.60)
|
||||
double3 xformOp:scale = (0.03, 0.03, 1.60)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.30, 0.35)]
|
||||
}
|
||||
}
|
||||
|
||||
# 4 Steel Shelves (Powder-Coated Industrial Blue)
|
||||
def Scope "Shelves"
|
||||
{
|
||||
def Cube "Shelf_L1"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.30)
|
||||
double3 xformOp:scale = (0.95, 0.40, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.20, 0.45, 0.75)]
|
||||
}
|
||||
def Cube "Shelf_L2"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 1.10)
|
||||
double3 xformOp:scale = (0.95, 0.40, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.20, 0.45, 0.75)]
|
||||
}
|
||||
def Cube "Shelf_L3"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 1.90)
|
||||
double3 xformOp:scale = (0.95, 0.40, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.20, 0.45, 0.75)]
|
||||
}
|
||||
def Cube "Shelf_L4"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 2.70)
|
||||
double3 xformOp:scale = (0.95, 0.40, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.20, 0.45, 0.75)]
|
||||
}
|
||||
# Top canopy cover
|
||||
def Cube "Canopy"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 3.20)
|
||||
double3 xformOp:scale = (0.96, 0.41, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "AMRHeavy"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Heavy-Duty Pallet Autonomous Mobile Robot (AMR) 3D Model"
|
||||
)
|
||||
|
||||
def Xform "AMRHeavy" (
|
||||
assetInfo = {
|
||||
string name = "AMRHeavy"
|
||||
string role = "robot"
|
||||
string robot_type = "heavy_amr"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Main Reinforced Chassis (Industrial Safety Amber / Orange)
|
||||
def Scope "Chassis"
|
||||
{
|
||||
def Cube "MainHull"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.225)
|
||||
double3 xformOp:scale = (0.70, 0.50, 0.16)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.92, 0.62, 0.08)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
# Heavy Steel Perimeter Guard Bumpers
|
||||
def Cube "FrontBumper"
|
||||
{
|
||||
double3 xformOp:translate = (0.68, 0.0, 0.16)
|
||||
double3 xformOp:scale = (0.05, 0.48, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.14, 0.16)]
|
||||
}
|
||||
def Cube "RearBumper"
|
||||
{
|
||||
double3 xformOp:translate = (-0.68, 0.0, 0.16)
|
||||
double3 xformOp:scale = (0.05, 0.48, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.14, 0.16)]
|
||||
}
|
||||
# Hazard Stripes (Yellow/Black)
|
||||
def Cube "HazardStripe_L"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.51, 0.20)
|
||||
double3 xformOp:scale = (0.50, 0.005, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.85, 0.10)]
|
||||
}
|
||||
def Cube "HazardStripe_R"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.51, 0.20)
|
||||
double3 xformOp:scale = (0.50, 0.005, 0.06)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.85, 0.10)]
|
||||
}
|
||||
}
|
||||
|
||||
# Wheels & Drive Assemblies
|
||||
def Scope "Drivetrain"
|
||||
{
|
||||
# High-Torque Left Drive Wheel
|
||||
def Cylinder "DriveWheel_Left"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.51, 0.15)
|
||||
double3 xformOp:rotateXYZ = (90.0, 0.0, 0.0)
|
||||
double3 xformOp:scale = (0.15, 0.04, 0.15)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.08, 0.08, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.9]
|
||||
}
|
||||
# High-Torque Right Drive Wheel
|
||||
def Cylinder "DriveWheel_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.51, 0.15)
|
||||
double3 xformOp:rotateXYZ = (90.0, 0.0, 0.0)
|
||||
double3 xformOp:scale = (0.15, 0.04, 0.15)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.08, 0.08, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.9]
|
||||
}
|
||||
# 4 Corner Heavy Stabilizer Casters
|
||||
def Sphere "Caster_FL"
|
||||
{
|
||||
double3 xformOp:translate = (0.55, 0.38, 0.08)
|
||||
double3 xformOp:scale = (0.08, 0.08, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.5, 0.55, 0.6)]
|
||||
}
|
||||
def Sphere "Caster_FR"
|
||||
{
|
||||
double3 xformOp:translate = (0.55, -0.38, 0.08)
|
||||
double3 xformOp:scale = (0.08, 0.08, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.5, 0.55, 0.6)]
|
||||
}
|
||||
def Sphere "Caster_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.55, 0.38, 0.08)
|
||||
double3 xformOp:scale = (0.08, 0.08, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.5, 0.55, 0.6)]
|
||||
}
|
||||
def Sphere "Caster_RR"
|
||||
{
|
||||
double3 xformOp:translate = (-0.55, -0.38, 0.08)
|
||||
double3 xformOp:scale = (0.08, 0.08, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.5, 0.55, 0.6)]
|
||||
}
|
||||
}
|
||||
|
||||
# Safety LiDAR Scanners (4-Corner 360 Coverage)
|
||||
def Scope "SafetySensors"
|
||||
{
|
||||
def Cylinder "LiDAR_FL"
|
||||
{
|
||||
double3 xformOp:translate = (0.65, 0.44, 0.28)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.035)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
def Cylinder "LiDAR_FR"
|
||||
{
|
||||
double3 xformOp:translate = (0.65, -0.44, 0.28)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.035)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
def Cylinder "LiDAR_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.65, 0.44, 0.28)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.035)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
def Cylinder "LiDAR_RR"
|
||||
{
|
||||
double3 xformOp:translate = (-0.65, -0.44, 0.28)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.035)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
}
|
||||
|
||||
# Pallet Scissor/Hydraulic Lift Bed
|
||||
def Scope "PalletLiftBed"
|
||||
{
|
||||
def Cube "LiftPlatform"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.41)
|
||||
double3 xformOp:scale = (0.65, 0.45, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.22, 0.25, 0.28)]
|
||||
float[] primvars:displayRoughness = [0.4]
|
||||
}
|
||||
}
|
||||
|
||||
# Indicators & Controls
|
||||
def Scope "Indicators"
|
||||
{
|
||||
def Cylinder "StatusDome"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.44)
|
||||
double3 xformOp:scale = (0.16, 0.16, 0.025)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.85, 0.35)]
|
||||
}
|
||||
def Cube "BatteryLED"
|
||||
{
|
||||
double3 xformOp:translate = (-0.60, 0.0, 0.36)
|
||||
double3 xformOp:scale = (0.04, 0.12, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.85, 0.25)]
|
||||
}
|
||||
def Cylinder "EStop_1"
|
||||
{
|
||||
double3 xformOp:translate = (-0.55, 0.35, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.025)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.90, 0.10, 0.10)]
|
||||
}
|
||||
def Cylinder "EStop_2"
|
||||
{
|
||||
double3 xformOp:translate = (0.55, -0.35, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.025)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.90, 0.10, 0.10)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "AMRLight"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Agile Lightweight Autonomous Mobile Robot (AMR) 3D Model"
|
||||
)
|
||||
|
||||
def Xform "AMRLight" (
|
||||
assetInfo = {
|
||||
string name = "AMRLight"
|
||||
string role = "robot"
|
||||
string robot_type = "light_amr"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Main Chassis Body (Tech White / Platinum Gloss)
|
||||
def Scope "Chassis"
|
||||
{
|
||||
def Cube "MainHull"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.175)
|
||||
double3 xformOp:scale = (0.40, 0.30, 0.12)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.92, 0.94, 0.97)]
|
||||
float[] primvars:displayRoughness = [0.2]
|
||||
}
|
||||
# Beveled Front Bumper
|
||||
def Cube "FrontBumper"
|
||||
{
|
||||
double3 xformOp:translate = (0.38, 0.0, 0.14)
|
||||
double3 xformOp:scale = (0.04, 0.28, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.18, 0.22)]
|
||||
}
|
||||
# Rear Bumper
|
||||
def Cube "RearBumper"
|
||||
{
|
||||
double3 xformOp:translate = (-0.38, 0.0, 0.14)
|
||||
double3 xformOp:scale = (0.04, 0.28, 0.08)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.18, 0.22)]
|
||||
}
|
||||
}
|
||||
|
||||
# Wheels & Drive Assembly
|
||||
def Scope "Drivetrain"
|
||||
{
|
||||
# Left Drive Wheel
|
||||
def Cylinder "Wheel_Left"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.31, 0.10)
|
||||
double3 xformOp:rotateXYZ = (90.0, 0.0, 0.0)
|
||||
double3 xformOp:scale = (0.10, 0.03, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.10, 0.10, 0.12)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
# Right Drive Wheel
|
||||
def Cylinder "Wheel_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.31, 0.10)
|
||||
double3 xformOp:rotateXYZ = (90.0, 0.0, 0.0)
|
||||
double3 xformOp:scale = (0.10, 0.03, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.10, 0.10, 0.12)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
# Front Caster
|
||||
def Sphere "Caster_Front"
|
||||
{
|
||||
double3 xformOp:translate = (0.32, 0.0, 0.05)
|
||||
double3 xformOp:scale = (0.05, 0.05, 0.05)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.6, 0.65, 0.7)]
|
||||
}
|
||||
# Rear Caster
|
||||
def Sphere "Caster_Rear"
|
||||
{
|
||||
double3 xformOp:translate = (-0.32, 0.0, 0.05)
|
||||
double3 xformOp:scale = (0.05, 0.05, 0.05)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.6, 0.65, 0.7)]
|
||||
}
|
||||
}
|
||||
|
||||
# Sensors (LiDAR Turrets & Optical Scanners)
|
||||
def Scope "Sensors"
|
||||
{
|
||||
# Front 2D Safety LiDAR Scanner
|
||||
def Cylinder "LiDAR_Front"
|
||||
{
|
||||
double3 xformOp:translate = (0.39, 0.0, 0.22)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.03)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
# Rear Safety Scanner
|
||||
def Cylinder "LiDAR_Rear"
|
||||
{
|
||||
double3 xformOp:translate = (-0.39, 0.0, 0.22)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.03)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.05, 0.05, 0.05)]
|
||||
}
|
||||
}
|
||||
|
||||
# Top Lift Deck / Cargo Bed
|
||||
def Scope "CargoBed"
|
||||
{
|
||||
def Cube "TopDeck"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.31)
|
||||
double3 xformOp:scale = (0.38, 0.28, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.28, 0.32)]
|
||||
float[] primvars:displayRoughness = [0.4]
|
||||
}
|
||||
}
|
||||
|
||||
# Visual Indicators: Status Dome, Battery LED, Emergency Stop
|
||||
def Scope "Indicators"
|
||||
{
|
||||
# Circular LED Status Halo Beacon Dome
|
||||
def Cylinder "StatusDome"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.34)
|
||||
double3 xformOp:scale = (0.12, 0.12, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.75, 0.95)]
|
||||
float[] primvars:displayRoughness = [0.1]
|
||||
}
|
||||
# Battery Indicator LED
|
||||
def Cube "BatteryLED"
|
||||
{
|
||||
double3 xformOp:translate = (-0.35, 0.0, 0.28)
|
||||
double3 xformOp:scale = (0.03, 0.08, 0.01)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.85, 0.25)]
|
||||
}
|
||||
# Emergency Stop Button (E-Stop)
|
||||
def Cylinder "EStop"
|
||||
{
|
||||
double3 xformOp:translate = (-0.30, 0.20, 0.34)
|
||||
double3 xformOp:scale = (0.025, 0.025, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.90, 0.12, 0.12)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "ChargingStation"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Automated Guided Vehicle High-Power Charging Station 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "ChargingStation" (
|
||||
assetInfo = {
|
||||
string name = "ChargingStation"
|
||||
string role = "station"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Floor-Mounted Inductive Charging Pad with Beveled Entry
|
||||
def Scope "GroundPad"
|
||||
{
|
||||
def Cube "BasePlate"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.02)
|
||||
double3 xformOp:scale = (0.75, 0.75, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.18, 0.22)]
|
||||
}
|
||||
# Copper / Brass High-Current Contact Strips
|
||||
def Cube "ContactStrip_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-0.30, 0.0, 0.045)
|
||||
double3 xformOp:scale = (0.06, 0.60, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.55, 0.20)]
|
||||
float[] primvars:displayRoughness = [0.2]
|
||||
}
|
||||
def Cube "ContactStrip_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.30, 0.0, 0.045)
|
||||
double3 xformOp:scale = (0.06, 0.60, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.55, 0.20)]
|
||||
float[] primvars:displayRoughness = [0.2]
|
||||
}
|
||||
}
|
||||
|
||||
# Vertical Power Pedestal Tower (Charcoal & Electric Cyan Accents)
|
||||
def Scope "Pedestal"
|
||||
{
|
||||
def Cube "Cabinet"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.65, 0.65)
|
||||
double3 xformOp:scale = (0.25, 0.15, 0.65)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
# Digital Telemetry / SoC Status Display
|
||||
def Cube "StatusScreen"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.50, 1.05)
|
||||
double3 xformOp:scale = (0.18, 0.005, 0.12)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.85, 0.95)]
|
||||
}
|
||||
# Top Beacon Tower
|
||||
def Cylinder "ChargingBeacon"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.65, 1.35)
|
||||
double3 xformOp:scale = (0.06, 0.06, 0.05)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.85, 0.35)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "DockInbound"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Warehouse Inbound Loading Dock Station 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "DockInbound" (
|
||||
assetInfo = {
|
||||
string name = "DockInbound"
|
||||
string role = "station"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Hydraulic Dock Leveler Pit & Ramp Platform
|
||||
def Scope "DockLeveler"
|
||||
{
|
||||
def Cube "PitFrame"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.05)
|
||||
double3 xformOp:scale = (1.20, 1.50, 0.05)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.25, 0.28, 0.32)]
|
||||
}
|
||||
# Steel Treadplate Diamond Ramp
|
||||
def Cube "TreadplateRamp"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.12)
|
||||
double3 xformOp:scale = (1.10, 1.40, 0.02)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.45, 0.50, 0.55)]
|
||||
float[] primvars:displayRoughness = [0.4]
|
||||
}
|
||||
# Heavy Molded Rubber Dock Bumpers
|
||||
def Cube "Bumper_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-1.15, -1.45, 0.25)
|
||||
double3 xformOp:scale = (0.12, 0.15, 0.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.10, 0.10, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.9]
|
||||
}
|
||||
def Cube "Bumper_Right"
|
||||
{
|
||||
double3 xformOp:translate = (1.15, -1.45, 0.25)
|
||||
double3 xformOp:scale = (0.12, 0.15, 0.25)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.10, 0.10, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.9]
|
||||
}
|
||||
}
|
||||
|
||||
# Safety Bollards (Safety Yellow with Hazard Bands)
|
||||
def Scope "SafetyBollards"
|
||||
{
|
||||
def Cylinder "Bollard_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-1.30, 1.30, 0.50)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.50)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.82, 0.10)]
|
||||
}
|
||||
def Cylinder "Bollard_Right"
|
||||
{
|
||||
double3 xformOp:translate = (1.30, 1.30, 0.50)
|
||||
double3 xformOp:scale = (0.10, 0.10, 0.50)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.82, 0.10)]
|
||||
}
|
||||
}
|
||||
|
||||
# Overhead Dock Door Frame
|
||||
def Scope "DoorPortal"
|
||||
{
|
||||
def Cube "Post_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-1.25, -1.40, 1.80)
|
||||
double3 xformOp:scale = (0.06, 0.06, 1.80)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.35, 0.15)]
|
||||
}
|
||||
def Cube "Post_Right"
|
||||
{
|
||||
double3 xformOp:translate = (1.25, -1.40, 1.80)
|
||||
double3 xformOp:scale = (0.06, 0.06, 1.80)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.35, 0.15)]
|
||||
}
|
||||
def Cube "Lintel_Header"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -1.40, 3.55)
|
||||
double3 xformOp:scale = (1.31, 0.08, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.35, 0.15)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "PickingStation"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Ergonomic Order Picking and Kitting Workstation 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "PickingStation" (
|
||||
assetInfo = {
|
||||
string name = "PickingStation"
|
||||
string role = "station"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Main Industrial Workbench
|
||||
def Scope "Workbench"
|
||||
{
|
||||
# Work Table Surface
|
||||
def Cube "TableTop"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.90)
|
||||
double3 xformOp:scale = (1.00, 0.60, 0.03)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.80, 0.82, 0.85)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
# Steel Legs Frame (Industrial Blue)
|
||||
def Cube "Leg_FL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.95, -0.55, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.44)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.35, 0.65)]
|
||||
}
|
||||
def Cube "Leg_FR"
|
||||
{
|
||||
double3 xformOp:translate = (0.95, -0.55, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.44)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.35, 0.65)]
|
||||
}
|
||||
def Cube "Leg_RL"
|
||||
{
|
||||
double3 xformOp:translate = (-0.95, 0.55, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.44)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.35, 0.65)]
|
||||
}
|
||||
def Cube "Leg_RR"
|
||||
{
|
||||
double3 xformOp:translate = (0.95, 0.55, 0.44)
|
||||
double3 xformOp:scale = (0.03, 0.03, 0.44)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.35, 0.65)]
|
||||
}
|
||||
}
|
||||
|
||||
# Computer Terminal & Display Screen
|
||||
def Scope "Terminal"
|
||||
{
|
||||
def Cube "MonitorArm"
|
||||
{
|
||||
double3 xformOp:translate = (-0.60, 0.40, 1.25)
|
||||
double3 xformOp:scale = (0.02, 0.02, 0.32)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.2, 0.2, 0.2)]
|
||||
}
|
||||
def Cube "MonitorScreen"
|
||||
{
|
||||
double3 xformOp:translate = (-0.60, 0.35, 1.55)
|
||||
double3 xformOp:scale = (0.25, 0.02, 0.16)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.10, 0.65, 0.85)]
|
||||
}
|
||||
def Cube "BarcodeScannerStand"
|
||||
{
|
||||
double3 xformOp:translate = (0.50, 0.30, 1.05)
|
||||
double3 xformOp:scale = (0.05, 0.05, 0.12)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.90, 0.75, 0.10)]
|
||||
}
|
||||
}
|
||||
|
||||
# Roller Conveyor Segment & Tote Bins
|
||||
def Scope "MaterialHandling"
|
||||
{
|
||||
def Cube "RollerFrame"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, -0.65, 0.75)
|
||||
double3 xformOp:scale = (0.90, 0.25, 0.05)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.4, 0.45, 0.5)]
|
||||
}
|
||||
# Red and Blue Kitting Totes
|
||||
def Cube "Tote_1"
|
||||
{
|
||||
double3 xformOp:translate = (-0.40, -0.65, 0.88)
|
||||
double3 xformOp:scale = (0.18, 0.20, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.20, 0.20)]
|
||||
}
|
||||
def Cube "Tote_2"
|
||||
{
|
||||
double3 xformOp:translate = (0.40, -0.65, 0.88)
|
||||
double3 xformOp:scale = (0.18, 0.20, 0.10)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.20, 0.50, 0.85)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "BuildingShell"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Warehouse Building Architecture Shell 3D Asset (60m x 40m x 8m)"
|
||||
)
|
||||
|
||||
def Xform "BuildingShell" (
|
||||
assetInfo = {
|
||||
string name = "BuildingShell"
|
||||
string role = "architecture"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Polished Industrial Concrete Floor
|
||||
def Scope "Flooring"
|
||||
{
|
||||
def Mesh "ConcreteSlab"
|
||||
{
|
||||
float3[] extent = [(-2.0, -2.0, -0.2), (62.0, 42.0, 0.0)]
|
||||
int[] faceVertexCounts = [4]
|
||||
int[] faceVertexIndices = [0, 1, 2, 3]
|
||||
point3f[] points = [(-2.0, -2.0, 0.0), (62.0, -2.0, 0.0), (62.0, 42.0, 0.0), (-2.0, 42.0, 0.0)]
|
||||
normal3f[] normals = [(0.0, 0.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0)]
|
||||
color3f[] primvars:displayColor = [(0.22, 0.24, 0.27)]
|
||||
float[] primvars:displayRoughness = [0.35]
|
||||
}
|
||||
}
|
||||
|
||||
# Exterior Architectural Walls (Industrial Slate with White Clerestory Band)
|
||||
def Scope "Walls"
|
||||
{
|
||||
# North Wall (y = 40.0)
|
||||
def Cube "Wall_North"
|
||||
{
|
||||
double3 xformOp:translate = (30.0, 40.2, 4.0)
|
||||
double3 xformOp:scale = (30.0, 0.2, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.32, 0.36, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.6]
|
||||
}
|
||||
# South Wall (y = 0.0)
|
||||
def Cube "Wall_South"
|
||||
{
|
||||
double3 xformOp:translate = (30.0, -0.2, 4.0)
|
||||
double3 xformOp:scale = (30.0, 0.2, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.32, 0.36, 0.40)]
|
||||
float[] primvars:displayRoughness = [0.6]
|
||||
}
|
||||
# East Wall (x = 60.0)
|
||||
def Cube "Wall_East"
|
||||
{
|
||||
double3 xformOp:translate = (60.2, 20.0, 4.0)
|
||||
double3 xformOp:scale = (0.2, 20.0, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.30, 0.34, 0.38)]
|
||||
float[] primvars:displayRoughness = [0.6]
|
||||
}
|
||||
# West Wall (x = 0.0)
|
||||
def Cube "Wall_West"
|
||||
{
|
||||
double3 xformOp:translate = (-0.2, 20.0, 4.0)
|
||||
double3 xformOp:scale = (0.2, 20.0, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.30, 0.34, 0.38)]
|
||||
float[] primvars:displayRoughness = [0.6]
|
||||
}
|
||||
}
|
||||
|
||||
# Structural Steel Building Columns with High-Visibility Base Guards
|
||||
def Scope "Columns"
|
||||
{
|
||||
# Column Row 1 (x = 27.5m, Central Highway)
|
||||
def Scope "Col_Row1"
|
||||
{
|
||||
def Cube "Column_1A"
|
||||
{
|
||||
double3 xformOp:translate = (27.5, 10.0, 4.0)
|
||||
double3 xformOp:scale = (0.25, 0.25, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
}
|
||||
def Cube "Guard_1A"
|
||||
{
|
||||
double3 xformOp:translate = (27.5, 10.0, 0.5)
|
||||
double3 xformOp:scale = (0.35, 0.35, 0.5)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
def Cube "Column_1B"
|
||||
{
|
||||
double3 xformOp:translate = (27.5, 30.0, 4.0)
|
||||
double3 xformOp:scale = (0.25, 0.25, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
}
|
||||
def Cube "Guard_1B"
|
||||
{
|
||||
double3 xformOp:translate = (27.5, 30.0, 0.5)
|
||||
double3 xformOp:scale = (0.35, 0.35, 0.5)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
}
|
||||
# Column Row 2 (x = 47.0m, Zone B/C Boundary)
|
||||
def Scope "Col_Row2"
|
||||
{
|
||||
def Cube "Column_2A"
|
||||
{
|
||||
double3 xformOp:translate = (47.0, 10.0, 4.0)
|
||||
double3 xformOp:scale = (0.25, 0.25, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
}
|
||||
def Cube "Guard_2A"
|
||||
{
|
||||
double3 xformOp:translate = (47.0, 10.0, 0.5)
|
||||
double3 xformOp:scale = (0.35, 0.35, 0.5)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
def Cube "Column_2B"
|
||||
{
|
||||
double3 xformOp:translate = (47.0, 30.0, 4.0)
|
||||
double3 xformOp:scale = (0.25, 0.25, 4.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.18, 0.22, 0.26)]
|
||||
}
|
||||
def Cube "Guard_2B"
|
||||
{
|
||||
double3 xformOp:translate = (47.0, 30.0, 0.5)
|
||||
double3 xformOp:scale = (0.35, 0.35, 0.5)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "SafetyBarrier"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Industrial Steel Safety Guardrail Barrier 3D Asset"
|
||||
)
|
||||
|
||||
def Xform "SafetyBarrier" (
|
||||
assetInfo = {
|
||||
string name = "SafetyBarrier"
|
||||
string role = "barrier"
|
||||
string version = "1.0.0"
|
||||
}
|
||||
)
|
||||
{
|
||||
# Upright Posts
|
||||
def Scope "Posts"
|
||||
{
|
||||
def Cylinder "Post_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-0.90, 0.0, 0.45)
|
||||
double3 xformOp:scale = (0.05, 0.05, 0.45)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
def Cylinder "Post_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.90, 0.0, 0.45)
|
||||
double3 xformOp:scale = (0.05, 0.05, 0.45)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
float[] primvars:displayRoughness = [0.3]
|
||||
}
|
||||
# Base Flanges
|
||||
def Cube "Flange_Left"
|
||||
{
|
||||
double3 xformOp:translate = (-0.90, 0.0, 0.015)
|
||||
double3 xformOp:scale = (0.12, 0.12, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.15, 0.15)]
|
||||
}
|
||||
def Cube "Flange_Right"
|
||||
{
|
||||
double3 xformOp:translate = (0.90, 0.0, 0.015)
|
||||
double3 xformOp:scale = (0.12, 0.12, 0.015)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.15, 0.15)]
|
||||
}
|
||||
}
|
||||
|
||||
# Horizontal Tubular Rails
|
||||
def Scope "Rails"
|
||||
{
|
||||
def Cylinder "Rail_Top"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.85)
|
||||
double3 xformOp:rotateXYZ = (0.0, 90.0, 0.0)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.90)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
def Cylinder "Rail_Mid"
|
||||
{
|
||||
double3 xformOp:translate = (0.0, 0.0, 0.45)
|
||||
double3 xformOp:rotateXYZ = (0.0, 90.0, 0.0)
|
||||
double3 xformOp:scale = (0.04, 0.04, 0.90)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.95, 0.80, 0.10)]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"meters_per_unit": 1.0,
|
||||
"up_axis": "Z",
|
||||
"assets": {
|
||||
"pallet_rack_heavy": {
|
||||
"asset_id": "pallet_rack_heavy",
|
||||
"name": "Industrial Heavy Multi-Tier Pallet Rack",
|
||||
"role": "storage_rack",
|
||||
"path": "assets/racks/pallet_rack_heavy.usda",
|
||||
"dimensions": [2.8, 1.2, 4.5],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"suitable_zones": ["zone_b", "zone_c"],
|
||||
"shelf_levels": 3,
|
||||
"material_finish": "industrial_steel"
|
||||
}
|
||||
},
|
||||
"shelving_unit_light": {
|
||||
"asset_id": "shelving_unit_light",
|
||||
"name": "High-Density Parts Shelving Unit",
|
||||
"role": "storage_shelf",
|
||||
"path": "assets/racks/shelving_unit_light.usda",
|
||||
"dimensions": [1.9, 0.8, 3.2],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"suitable_zones": ["zone_a"],
|
||||
"shelf_levels": 4,
|
||||
"material_finish": "powder_coated_steel"
|
||||
}
|
||||
},
|
||||
"euro_pallet": {
|
||||
"asset_id": "euro_pallet",
|
||||
"name": "Standard European Wooden Euro-Pallet",
|
||||
"role": "pallet",
|
||||
"path": "assets/pallets/euro_pallet.usda",
|
||||
"dimensions": [1.2, 0.8, 0.144],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": true,
|
||||
"metadata": {
|
||||
"standard": "EPAL Euro 1",
|
||||
"material": "pine_timber"
|
||||
}
|
||||
},
|
||||
"pallet_with_cartons": {
|
||||
"asset_id": "pallet_with_cartons",
|
||||
"name": "Euro-Pallet Loaded with Cargo Cartons",
|
||||
"role": "inventory_pallet",
|
||||
"path": "assets/pallets/pallet_with_cartons.usda",
|
||||
"dimensions": [1.2, 0.8, 0.95],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": true,
|
||||
"metadata": {
|
||||
"layers": 2,
|
||||
"boxes_count": 8,
|
||||
"strapping": "polypropylene"
|
||||
}
|
||||
},
|
||||
"amr_light": {
|
||||
"asset_id": "amr_light",
|
||||
"name": "Agile Lightweight Autonomous Mobile Robot",
|
||||
"role": "robot",
|
||||
"robot_type": "light_amr",
|
||||
"path": "assets/robots/amr_light.usda",
|
||||
"dimensions": [0.8, 0.6, 0.35],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": true,
|
||||
"metadata": {
|
||||
"drivetrain": "differential_with_dual_casters",
|
||||
"max_speed_mps": 1.8,
|
||||
"sensors": ["dual_2d_lidar", "e_stop"]
|
||||
}
|
||||
},
|
||||
"amr_heavy": {
|
||||
"asset_id": "amr_heavy",
|
||||
"name": "Heavy-Duty Pallet Autonomous Mobile Robot",
|
||||
"role": "robot",
|
||||
"robot_type": "heavy_amr",
|
||||
"path": "assets/robots/amr_heavy.usda",
|
||||
"dimensions": [1.4, 1.0, 0.45],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": true,
|
||||
"metadata": {
|
||||
"drivetrain": "high_torque_differential_with_4_casters",
|
||||
"max_speed_mps": 1.1,
|
||||
"sensors": ["quad_corner_lidar", "dual_e_stop"]
|
||||
}
|
||||
},
|
||||
"dock_inbound": {
|
||||
"asset_id": "dock_inbound",
|
||||
"name": "Inbound Loading Bay with Leveler Ramp",
|
||||
"role": "station",
|
||||
"station_type": "inbound_dock",
|
||||
"path": "assets/stations/dock_inbound.usda",
|
||||
"dimensions": [2.6, 3.0, 3.6],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"features": ["dock_leveler", "rubber_bumpers", "safety_bollards"]
|
||||
}
|
||||
},
|
||||
"picking_station": {
|
||||
"asset_id": "picking_station",
|
||||
"name": "Ergonomic Order Picking Station",
|
||||
"role": "station",
|
||||
"station_type": "picking_station",
|
||||
"path": "assets/stations/picking_station.usda",
|
||||
"dimensions": [2.0, 1.5, 1.8],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"features": ["steel_workbench", "terminal_display", "conveyor_roller", "kitting_totes"]
|
||||
}
|
||||
},
|
||||
"charging_station": {
|
||||
"asset_id": "charging_station",
|
||||
"name": "Automated Inductive AMR Charging Station",
|
||||
"role": "station",
|
||||
"station_type": "charging_station",
|
||||
"path": "assets/stations/charging_station.usda",
|
||||
"dimensions": [1.5, 1.5, 1.4],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"features": ["copper_contact_strips", "power_pedestal", "telemetry_screen"]
|
||||
}
|
||||
},
|
||||
"safety_barrier": {
|
||||
"asset_id": "safety_barrier",
|
||||
"name": "Tubular Steel Safety Guardrail",
|
||||
"role": "barrier",
|
||||
"path": "assets/warehouse/safety_barrier.usda",
|
||||
"dimensions": [1.8, 0.25, 0.9],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"paint": "safety_yellow"
|
||||
}
|
||||
},
|
||||
"building_shell": {
|
||||
"asset_id": "building_shell",
|
||||
"name": "Warehouse Architectural Concrete Shell",
|
||||
"role": "architecture",
|
||||
"path": "assets/warehouse/building_shell.usda",
|
||||
"dimensions": [60.0, 40.0, 8.0],
|
||||
"default_scale": [1.0, 1.0, 1.0],
|
||||
"default_rotation": [0.0, 0.0, 0.0],
|
||||
"supports_animation": false,
|
||||
"metadata": {
|
||||
"floor": "polished_concrete",
|
||||
"columns": "structural_steel_i_beam"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/pallets
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/racks
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/robots
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/stations
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../assets/warehouse
|
||||
@@ -0,0 +1,859 @@
|
||||
#usda 1.0
|
||||
(
|
||||
defaultPrim = "World"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
doc = "Warehouse Robot Fleet Digital Twin - Realistic 3D Asset Stage"
|
||||
)
|
||||
|
||||
def Xform "World"
|
||||
{
|
||||
# -------------------------------------------------------------------------
|
||||
# Environment Lighting & Sunlight Framing
|
||||
# -------------------------------------------------------------------------
|
||||
def DistantLight "SunLight"
|
||||
{
|
||||
float inputs:intensity = 3800.0
|
||||
color3f inputs:color = (0.98, 0.96, 0.92)
|
||||
float inputs:angle = 1.2
|
||||
double3 xformOp:rotateXYZ = (-48.0, 32.0, 0.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:rotateXYZ"]
|
||||
}
|
||||
|
||||
def DomeLight "SkyLight"
|
||||
{
|
||||
float inputs:intensity = 950.0
|
||||
color3f inputs:color = (0.86, 0.91, 0.98)
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Physical Warehouse PBR Materials Library
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Materials"
|
||||
{
|
||||
def Material "ConcreteFloor"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.200, 0.220, 0.250)
|
||||
float inputs:roughness = 0.35
|
||||
float inputs:metallic = 0.05
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "SafetyYellow"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.950, 0.820, 0.080)
|
||||
float inputs:roughness = 0.25
|
||||
float inputs:metallic = 0.10
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "SafetyAmber"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.920, 0.550, 0.080)
|
||||
float inputs:roughness = 0.30
|
||||
float inputs:metallic = 0.10
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "StructuralSteel"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.140, 0.280, 0.500)
|
||||
float inputs:roughness = 0.35
|
||||
float inputs:metallic = 0.40
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "IndustrialDarkSteel"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.180, 0.200, 0.240)
|
||||
float inputs:roughness = 0.45
|
||||
float inputs:metallic = 0.30
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "WoodPine"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.760, 0.600, 0.400)
|
||||
float inputs:roughness = 0.75
|
||||
float inputs:metallic = 0.00
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "KraftCardboard"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.800, 0.620, 0.380)
|
||||
float inputs:roughness = 0.85
|
||||
float inputs:metallic = 0.00
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "TechWhite"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.920, 0.940, 0.970)
|
||||
float inputs:roughness = 0.20
|
||||
float inputs:metallic = 0.15
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.000, 0.000, 0.000)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "BeaconCyan"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.100, 0.700, 0.950)
|
||||
float inputs:roughness = 0.10
|
||||
float inputs:metallic = 0.00
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.100, 0.700, 0.950)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
def Material "BeaconEmerald"
|
||||
{
|
||||
def Shader "PBRShader"
|
||||
{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = (0.150, 0.850, 0.350)
|
||||
float inputs:roughness = 0.10
|
||||
float inputs:metallic = 0.00
|
||||
float inputs:opacity = 1.00
|
||||
color3f inputs:emissiveColor = (0.150, 0.850, 0.350)
|
||||
token outputs:surface
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Industrial Building Architecture Shell
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Warehouse"
|
||||
{
|
||||
def Scope "Architecture"
|
||||
{
|
||||
def Xform "BuildingShell" (
|
||||
references = @../../assets/warehouse/building_shell.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (0.000, 0.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Operational Zones Demarcations
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Zones"
|
||||
{
|
||||
def Cube "zone_a"
|
||||
{
|
||||
double3 xformOp:translate = (15.00, 20.00, 0.005)
|
||||
double3 xformOp:scale = (10.00, 15.00, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.15, 0.45, 0.85)]
|
||||
float[] primvars:displayOpacity = [0.22]
|
||||
}
|
||||
def Cube "zone_b"
|
||||
{
|
||||
double3 xformOp:translate = (37.50, 20.00, 0.005)
|
||||
double3 xformOp:scale = (7.50, 15.00, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.85, 0.55, 0.12)]
|
||||
float[] primvars:displayOpacity = [0.22]
|
||||
}
|
||||
def Cube "zone_c"
|
||||
{
|
||||
double3 xformOp:translate = (53.00, 20.00, 0.005)
|
||||
double3 xformOp:scale = (5.00, 15.00, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
color3f[] primvars:displayColor = [(0.12, 0.68, 0.38)]
|
||||
float[] primvars:displayOpacity = [0.22]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Storage Racks & Shelving Units
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Racks"
|
||||
{
|
||||
def Xform "rack_a_01" (
|
||||
references = @../../assets/racks/shelving_unit_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_02" (
|
||||
references = @../../assets/racks/shelving_unit_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 20.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_03" (
|
||||
references = @../../assets/racks/shelving_unit_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (16.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_04" (
|
||||
references = @../../assets/racks/shelving_unit_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (16.000, 20.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_05" (
|
||||
references = @../../assets/racks/shelving_unit_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (20.000, 30.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_01" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_02" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 22.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_03" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_04" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 22.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_01" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_02" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 22.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_03" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_04" (
|
||||
references = @../../assets/racks/pallet_rack_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 22.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Multi-Level Inventory Pallets & Carton Stacks
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Inventory"
|
||||
{
|
||||
def Xform "rack_a_01_Cartons_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 10.000, 0.320)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (0.700, 0.700, 0.700)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_02_Cartons_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 20.000, 0.320)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (0.700, 0.700, 0.700)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_03_Cartons_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (16.000, 10.000, 0.320)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (0.700, 0.700, 0.700)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_04_Cartons_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (16.000, 20.000, 0.320)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (0.700, 0.700, 0.700)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_a_05_Cartons_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (20.000, 30.000, 0.320)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (0.700, 0.700, 0.700)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_01_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 10.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_01_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 10.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_02_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 22.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_02_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (34.000, 22.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_03_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 10.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_03_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 10.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_04_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 22.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_b_04_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 22.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_01_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 10.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_01_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 10.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_02_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 22.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_02_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (50.000, 22.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_03_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 10.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_03_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 10.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_04_Pallet_L1" (
|
||||
references = @../../assets/pallets/pallet_with_cartons.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 22.000, 0.550)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "rack_c_04_Pallet_L2" (
|
||||
references = @../../assets/pallets/euro_pallet.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (54.000, 22.000, 1.950)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Loading, Picking, and Assembly Stations
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Stations"
|
||||
{
|
||||
def Xform "dock_inbound_1" (
|
||||
references = @../../assets/stations/dock_inbound.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 10.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 90.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "dock_inbound_2" (
|
||||
references = @../../assets/stations/dock_inbound.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 20.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 90.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "picking_station_a1" (
|
||||
references = @../../assets/stations/picking_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (25.000, 2.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "picking_station_b1" (
|
||||
references = @../../assets/stations/picking_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (40.000, 2.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "production_dropoff_c1" (
|
||||
references = @../../assets/stations/picking_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (55.000, 38.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "outbound_pack_1" (
|
||||
references = @../../assets/stations/dock_inbound.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 30.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 90.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# AMR Automated Charging Bays
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "ChargingStations"
|
||||
{
|
||||
def Xform "charge_bay_1" (
|
||||
references = @../../assets/stations/charging_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 180.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "charge_bay_2" (
|
||||
references = @../../assets/stations/charging_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (4.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 180.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "charge_bay_3" (
|
||||
references = @../../assets/stations/charging_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (6.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 180.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "charge_bay_4" (
|
||||
references = @../../assets/stations/charging_station.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 180.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Industrial Safety Guardrails & Perimeter Barriers
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "SafetyBarriers"
|
||||
{
|
||||
def Xform "Barrier_Dock_1" (
|
||||
references = @../../assets/warehouse/safety_barrier.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 15.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 90.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "Barrier_Dock_2" (
|
||||
references = @../../assets/warehouse/safety_barrier.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 25.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 90.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "Barrier_Charging_Corner" (
|
||||
references = @../../assets/warehouse/safety_barrier.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (10.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "Barrier_Transfer_AB" (
|
||||
references = @../../assets/warehouse/safety_barrier.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (28.000, 5.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "Barrier_Transfer_BC" (
|
||||
references = @../../assets/warehouse/safety_barrier.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (46.000, 5.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Navigation Network & Aisle Markings
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Routes"
|
||||
{
|
||||
def Xform "Highway_West_Dock"
|
||||
{
|
||||
double3 xformOp:translate = (2.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.200, 18.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.25, 0.65, 0.95)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Highway_Transfer_AB"
|
||||
{
|
||||
double3 xformOp:translate = (26.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.200, 18.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.35, 0.75, 0.95)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Highway_Transfer_BC"
|
||||
{
|
||||
double3 xformOp:translate = (46.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.200, 18.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.35, 0.75, 0.95)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Highway_East_Perimeter"
|
||||
{
|
||||
double3 xformOp:translate = (58.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.200, 18.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.25, 0.65, 0.95)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Highway_South_Picking"
|
||||
{
|
||||
double3 xformOp:translate = (30.00, 2.00, 0.010)
|
||||
double3 xformOp:scale = (28.000, 0.200, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.25, 0.70, 0.85)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Highway_North_Charging"
|
||||
{
|
||||
double3 xformOp:translate = (30.00, 38.00, 0.010)
|
||||
double3 xformOp:scale = (28.000, 0.200, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.25, 0.70, 0.85)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Aisle_B1_Wide_Aisle"
|
||||
{
|
||||
double3 xformOp:translate = (34.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.250, 14.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.95, 0.65, 0.15)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
def Xform "Aisle_B2_Wide_Aisle"
|
||||
{
|
||||
double3 xformOp:translate = (40.00, 20.00, 0.010)
|
||||
double3 xformOp:scale = (0.250, 14.000, 0.005)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]
|
||||
|
||||
def Cube "LaneVisualizer"
|
||||
{
|
||||
color3f[] primvars:displayColor = [(0.95, 0.65, 0.15)]
|
||||
float[] primvars:displayRoughness = [0.8]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Preset Omniverse Cameras
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Cameras"
|
||||
{
|
||||
def Camera "OverviewCamera"
|
||||
{
|
||||
float focalLength = 24.0
|
||||
float focusDistance = 45.0
|
||||
double3 xformOp:translate = (30.0, -18.0, 28.0)
|
||||
double3 xformOp:rotateXYZ = (52.0, 0.0, 0.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ"]
|
||||
}
|
||||
def Camera "TopDownCamera"
|
||||
{
|
||||
float focalLength = 35.0
|
||||
double3 xformOp:translate = (30.0, 20.0, 65.0)
|
||||
double3 xformOp:rotateXYZ = (0.0, 0.0, 0.0)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ"]
|
||||
}
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Autonomous Mobile Robot (AMR) Fleet (Referencing 3D Robot Assets)
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Robots"
|
||||
{
|
||||
def Xform "amr_light_01" (
|
||||
references = @../../assets/robots/amr_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (2.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "amr_light_02" (
|
||||
references = @../../assets/robots/amr_light.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (4.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "amr_heavy_01" (
|
||||
references = @../../assets/robots/amr_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (6.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
def Xform "amr_heavy_02" (
|
||||
references = @../../assets/robots/amr_heavy.usda@
|
||||
)
|
||||
{
|
||||
double3 xformOp:translate = (8.000, 36.000, 0.000)
|
||||
double3 xformOp:rotateXYZ = (0.00, 0.00, 0.00)
|
||||
double3 xformOp:scale = (1.000, 1.000, 1.000)
|
||||
uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+78
-31
@@ -202,13 +202,13 @@ def export_usd(
|
||||
output_path: Optional[str] = None,
|
||||
trajectory_path: Optional[str] = None,
|
||||
step_seconds: float = 1.0,
|
||||
legacy_blocks: bool = False,
|
||||
manifest_path: Optional[str] = None,
|
||||
) -> int:
|
||||
"""Build and export warehouse 3D scene to OpenUSD (.usda), with optional time-sampled animation."""
|
||||
setup_logging()
|
||||
logger = get_logger("cli")
|
||||
try:
|
||||
from warehouse_twin.interfaces.usd_generator import WarehouseUSDGenerator
|
||||
from warehouse_twin.visualization.animated_usd import AnimatedUSDGenerator
|
||||
from warehouse_twin.visualization.trajectory_player import TrajectoryData
|
||||
|
||||
loader = ConfigLoader(config_dir)
|
||||
@@ -221,49 +221,77 @@ def export_usd(
|
||||
return 1
|
||||
|
||||
traj_data = TrajectoryData.from_file(traj_file)
|
||||
anim_gen = AnimatedUSDGenerator.from_config_and_trajectory(
|
||||
bundle=bundle,
|
||||
trajectory_data=traj_data,
|
||||
sample_step_seconds=step_seconds,
|
||||
)
|
||||
default_out = Path("omniverse/scenes/warehouse_phase7_animated.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = anim_gen.export_usda(out_file)
|
||||
print("=" * 65)
|
||||
|
||||
if legacy_blocks:
|
||||
from warehouse_twin.visualization.animated_usd import AnimatedUSDGenerator
|
||||
anim_gen = AnimatedUSDGenerator.from_config_and_trajectory(
|
||||
bundle=bundle,
|
||||
trajectory_data=traj_data,
|
||||
sample_step_seconds=step_seconds,
|
||||
)
|
||||
default_out = Path("omniverse/scenes/warehouse_phase7_animated.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = anim_gen.export_usda(out_file)
|
||||
mode_desc = "Legacy Block/Primitive Mode"
|
||||
else:
|
||||
from warehouse_twin.visualization.robot_animator import Robot3DAnimator
|
||||
anim_gen = Robot3DAnimator.from_config_and_trajectory(
|
||||
bundle=bundle,
|
||||
trajectory_data=traj_data,
|
||||
manifest_path=manifest_path,
|
||||
sample_step_seconds=step_seconds,
|
||||
)
|
||||
default_out = Path("omniverse/scenes/warehouse_realistic_animated.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = anim_gen.export_usda(out_file)
|
||||
mode_desc = "Realistic 3D Asset Mode (Referenced Racks, Pallets, AMRs)"
|
||||
|
||||
print("=" * 70)
|
||||
print("Warehouse Animated OpenUSD Scene Successfully Generated")
|
||||
print("=" * 65)
|
||||
print("=" * 70)
|
||||
print(f"Mode: {mode_desc}")
|
||||
print(f"Scene Path: {saved_path}")
|
||||
print(f"Animation Range: 0.0s to {traj_data.duration:.1f}s ({round(traj_data.duration * anim_gen.timecodes_per_second)} frames)")
|
||||
print(f"Sample Step: {step_seconds}s ({anim_gen.timecodes_per_second} fps)")
|
||||
print(f"Animation Range: 0.0s to {traj_data.duration:.1f}s ({round(traj_data.duration * anim_gen.fps if hasattr(anim_gen, 'fps') else traj_data.duration * anim_gen.timecodes_per_second)} frames)")
|
||||
print(f"Sample Step: {step_seconds}s")
|
||||
print(f"AMRs Animated: {len(traj_data.robots)}")
|
||||
print("-" * 65)
|
||||
print("-" * 70)
|
||||
print("How to view in Omniverse Kit:")
|
||||
print(f" 1. Launch Kit: /home/dmhai/Desktop/nvidia-omniverse/kit-app-template/_build/linux-x86_64/release/warehouse_twin.kit.sh")
|
||||
print(f" 2. In Kit App, select File -> Open -> {saved_path}")
|
||||
print(f" 3. Press Spacebar or Play on the Timeline toolbar to view the simulation!")
|
||||
print("=" * 65)
|
||||
print("=" * 70)
|
||||
return 0
|
||||
else:
|
||||
generator = WarehouseUSDGenerator.from_config_bundle(bundle, include_routing_network=True)
|
||||
default_out = Path("omniverse/scenes/warehouse_phase7.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = generator.export_usda(out_file)
|
||||
model = generator.model
|
||||
print("=" * 65)
|
||||
if legacy_blocks:
|
||||
from warehouse_twin.interfaces.usd_generator import WarehouseUSDGenerator
|
||||
generator = WarehouseUSDGenerator.from_config_bundle(bundle, include_routing_network=True)
|
||||
default_out = Path("omniverse/scenes/warehouse_phase7.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = generator.export_usda(out_file)
|
||||
model = generator.model
|
||||
mode_desc = "Legacy Block/Primitive Mode"
|
||||
else:
|
||||
from warehouse_twin.visualization.warehouse_builder import Warehouse3DBuilder
|
||||
builder = Warehouse3DBuilder.from_config_bundle(bundle, manifest_path=manifest_path)
|
||||
default_out = Path("omniverse/scenes/warehouse_realistic.usda")
|
||||
out_file = Path(output_path).resolve() if output_path else default_out.resolve()
|
||||
saved_path = builder.export_usda(out_file)
|
||||
model = builder.model
|
||||
mode_desc = "Realistic 3D Asset Mode (Modular Referenced Meshes & Materials)"
|
||||
|
||||
print("=" * 70)
|
||||
print("Warehouse 3D OpenUSD Scene Successfully Generated")
|
||||
print("=" * 65)
|
||||
print("=" * 70)
|
||||
print(f"Mode: {mode_desc}")
|
||||
print(f"Scene Path: {saved_path}")
|
||||
print(f"Facility: {model.dimensions.width}m x {model.dimensions.depth}m x {model.dimensions.height}m")
|
||||
print(f"Zones: Zone A (Blue), Zone B (Amber), Zone C (Green)")
|
||||
print(f"Entities: {len(model.storage_locations)} Storage Racks, {len(model.stations)} Stations, {len(model.charging_stations)} Chargers")
|
||||
print(f"AMR Fleet: {len(generator.robots)} Autonomous Mobile Robots")
|
||||
for r in generator.robots:
|
||||
print(f" - {r.robot_id} ({r.robot_type}) at ({r.position.x}, {r.position.y}, {r.position.z}) [battery: {r.battery_percent:.0f}%]")
|
||||
print("-" * 65)
|
||||
print(f"Zones: Zone A (Fast-Moving), Zone B (Slow-Moving), Zone C (Raw Materials)")
|
||||
print(f"Entities: {len(model.storage_locations)} Storage Locations, {len(model.stations)} Stations, {len(model.charging_stations)} Chargers")
|
||||
print("-" * 70)
|
||||
print("How to view in Omniverse Kit:")
|
||||
print(f" 1. In the active Kit App window, select File -> Open")
|
||||
print(f" 2. Navigate to: {saved_path}")
|
||||
print("=" * 65)
|
||||
print("=" * 70)
|
||||
return 0
|
||||
except Exception as err:
|
||||
logger.error("USD export failed: %s", err)
|
||||
@@ -820,6 +848,18 @@ def main(argv: Optional[list[str]] = None) -> int:
|
||||
default=1.0,
|
||||
help="Sample step in seconds for time-sampled animation (default: 1.0)",
|
||||
)
|
||||
usd_exp_parser.add_argument(
|
||||
"--legacy-blocks",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Use legacy block/primitive geometry instead of realistic 3D assets",
|
||||
)
|
||||
usd_exp_parser.add_argument(
|
||||
"--manifest",
|
||||
type=str,
|
||||
default=None,
|
||||
help="Path to 3D asset manifest JSON (default: config/asset_manifest.json)",
|
||||
)
|
||||
|
||||
# Subcommand: play-trajectory (Phase 7)
|
||||
play_parser = subparsers.add_parser("play-trajectory", help="Validate and preview AMR trajectory playback kinematics")
|
||||
@@ -917,7 +957,14 @@ def main(argv: Optional[list[str]] = None) -> int:
|
||||
elif args.command == "export-graph":
|
||||
return export_graph(args.config_dir, args.output)
|
||||
elif args.command == "export-usd":
|
||||
return export_usd(args.config_dir, args.output, args.trajectory, args.step_seconds)
|
||||
return export_usd(
|
||||
config_dir=args.config_dir,
|
||||
output_path=args.output,
|
||||
trajectory_path=args.trajectory,
|
||||
step_seconds=args.step_seconds,
|
||||
legacy_blocks=args.legacy_blocks,
|
||||
manifest_path=args.manifest,
|
||||
)
|
||||
elif args.command == "play-trajectory":
|
||||
return play_trajectory_cmd(args.trajectory, args.speed, args.step)
|
||||
elif args.command == "run-sim":
|
||||
|
||||
@@ -4,12 +4,29 @@ from warehouse_twin.visualization.animated_usd import (
|
||||
AnimatedUSDGenerator,
|
||||
compute_battery_indicator_color,
|
||||
)
|
||||
from warehouse_twin.visualization.asset_loader import (
|
||||
AssetManifest,
|
||||
AssetMetadata,
|
||||
USDAssetLoader,
|
||||
USDReferenceInstance,
|
||||
)
|
||||
from warehouse_twin.visualization.coordinate_mapper import (
|
||||
CoordinateMapper,
|
||||
TransformSpec,
|
||||
)
|
||||
from warehouse_twin.visualization.materials import (
|
||||
MaterialManager,
|
||||
MaterialSpec,
|
||||
)
|
||||
from warehouse_twin.visualization.robot_animator import Robot3DAnimator
|
||||
from warehouse_twin.visualization.route_visualizer import RouteVisualizer
|
||||
from warehouse_twin.visualization.trajectory_player import (
|
||||
RobotPlaybackState,
|
||||
TrajectoryData,
|
||||
TrajectoryPlayer,
|
||||
interpolate_robot_state,
|
||||
)
|
||||
from warehouse_twin.visualization.warehouse_builder import Warehouse3DBuilder
|
||||
|
||||
__all__ = [
|
||||
"AnimatedUSDGenerator",
|
||||
@@ -18,4 +35,16 @@ __all__ = [
|
||||
"TrajectoryData",
|
||||
"TrajectoryPlayer",
|
||||
"interpolate_robot_state",
|
||||
"AssetManifest",
|
||||
"AssetMetadata",
|
||||
"USDAssetLoader",
|
||||
"USDReferenceInstance",
|
||||
"CoordinateMapper",
|
||||
"TransformSpec",
|
||||
"MaterialManager",
|
||||
"MaterialSpec",
|
||||
"RouteVisualizer",
|
||||
"Warehouse3DBuilder",
|
||||
"Robot3DAnimator",
|
||||
]
|
||||
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
"""USD Asset Loader for Warehouse Robot Fleet Digital Twin.
|
||||
|
||||
Manages asset manifest resolution, validation, reference generation, and stable prim hierarchy
|
||||
instantiation into OpenUSD stages compliant with NVIDIA Omniverse Kit.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
import json
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Set, Tuple
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AssetMetadata:
|
||||
"""Descriptor for a reusable 3D OpenUSD asset."""
|
||||
|
||||
asset_id: str
|
||||
name: str
|
||||
role: str
|
||||
path: Path
|
||||
dimensions: Tuple[float, float, float]
|
||||
default_scale: Tuple[float, float, float] = (1.0, 1.0, 1.0)
|
||||
default_rotation: Tuple[float, float, float] = (0.0, 0.0, 0.0)
|
||||
supports_animation: bool = False
|
||||
robot_type: Optional[str] = None
|
||||
station_type: Optional[str] = None
|
||||
metadata: Dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, data: Dict[str, Any], base_dir: Path) -> AssetMetadata:
|
||||
"""Parse asset metadata dictionary from manifest."""
|
||||
rel_path = Path(data["path"])
|
||||
full_path = (base_dir / rel_path).resolve() if not rel_path.is_absolute() else rel_path
|
||||
|
||||
dims = tuple(data.get("dimensions", [1.0, 1.0, 1.0]))
|
||||
scale = tuple(data.get("default_scale", [1.0, 1.0, 1.0]))
|
||||
rot = tuple(data.get("default_rotation", [0.0, 0.0, 0.0]))
|
||||
|
||||
return cls(
|
||||
asset_id=data["asset_id"],
|
||||
name=data.get("name", data["asset_id"]),
|
||||
role=data.get("role", "general"),
|
||||
path=full_path,
|
||||
dimensions=dims, # type: ignore[arg-type]
|
||||
default_scale=scale, # type: ignore[arg-type]
|
||||
default_rotation=rot, # type: ignore[arg-type]
|
||||
supports_animation=data.get("supports_animation", False),
|
||||
robot_type=data.get("robot_type"),
|
||||
station_type=data.get("station_type"),
|
||||
metadata=data.get("metadata", {}),
|
||||
)
|
||||
|
||||
|
||||
class AssetManifest:
|
||||
"""Manages discovery, cataloging, and validation of 3D USD assets."""
|
||||
|
||||
def __init__(self, manifest_file: Path | str) -> None:
|
||||
"""Load manifest from json file."""
|
||||
self.manifest_file = Path(manifest_file).resolve()
|
||||
self.base_dir = self.manifest_file.parent.parent # Project root
|
||||
self.assets: Dict[str, AssetMetadata] = {}
|
||||
self.load()
|
||||
|
||||
def load(self) -> None:
|
||||
"""Read manifest file and populate asset registry."""
|
||||
if not self.manifest_file.exists():
|
||||
raise FileNotFoundError(f"Asset manifest not found: {self.manifest_file}")
|
||||
|
||||
with open(self.manifest_file, "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
|
||||
for asset_id, item_data in data.get("assets", {}).items():
|
||||
try:
|
||||
asset_meta = AssetMetadata.from_dict(item_data, self.base_dir)
|
||||
self.assets[asset_id] = asset_meta
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to parse asset entry '{asset_id}': {e}")
|
||||
|
||||
logger.info(f"Loaded {len(self.assets)} assets from {self.manifest_file.name}")
|
||||
|
||||
def get(self, asset_id: str) -> AssetMetadata:
|
||||
"""Retrieve asset metadata by ID."""
|
||||
if asset_id not in self.assets:
|
||||
raise KeyError(f"Asset '{asset_id}' not found in manifest")
|
||||
return self.assets[asset_id]
|
||||
|
||||
def find_by_role(self, role: str) -> List[AssetMetadata]:
|
||||
"""Find all assets matching a specific role."""
|
||||
return [a for a in self.assets.values() if a.role == role]
|
||||
|
||||
def find_for_robot_type(self, robot_type: str) -> Optional[AssetMetadata]:
|
||||
"""Find matching 3D asset for a robot type."""
|
||||
for a in self.assets.values():
|
||||
if a.role == "robot" and a.robot_type == robot_type:
|
||||
return a
|
||||
# Fallback to light_amr or first robot asset
|
||||
for a in self.assets.values():
|
||||
if a.role == "robot":
|
||||
return a
|
||||
return None
|
||||
|
||||
def validate_all_paths(self) -> Dict[str, bool]:
|
||||
"""Check existence and accessibility of all registered asset files."""
|
||||
results: Dict[str, bool] = {}
|
||||
for asset_id, asset in self.assets.items():
|
||||
exists = asset.path.exists() and asset.path.stat().st_size > 0
|
||||
results[asset_id] = exists
|
||||
if not exists:
|
||||
logger.warning(f"Asset file missing on disk for '{asset_id}': {asset.path}")
|
||||
return results
|
||||
|
||||
|
||||
@dataclass
|
||||
class USDReferenceInstance:
|
||||
"""A concrete referenced asset instance located at a specific prim path."""
|
||||
|
||||
prim_path: str
|
||||
asset: AssetMetadata
|
||||
translation: Tuple[float, float, float]
|
||||
rotation_xyz: Tuple[float, float, float] = (0.0, 0.0, 0.0)
|
||||
scale: Tuple[float, float, float] = (1.0, 1.0, 1.0)
|
||||
extra_attributes: Dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
def generate_usda_reference(self, scene_directory: Path) -> str:
|
||||
"""Generate OpenUSD ASCII reference block with relative path to asset."""
|
||||
# Compute relative path from scene directory to asset file
|
||||
try:
|
||||
rel_asset_path = self.asset.path.relative_to(scene_directory)
|
||||
asset_ref_str = f"./{rel_asset_path.as_posix()}"
|
||||
except ValueError:
|
||||
# Fallback to relative path using os.path.relpath
|
||||
import os
|
||||
rel = os.path.relpath(self.asset.path, scene_directory)
|
||||
asset_ref_str = rel.replace("\\", "/")
|
||||
|
||||
prim_name = self.prim_path.split("/")[-1]
|
||||
tx, ty, tz = self.translation
|
||||
rx, ry, rz = self.rotation_xyz
|
||||
sx, sy, sz = self.scale
|
||||
|
||||
lines = [
|
||||
f' def Xform "{prim_name}" (',
|
||||
f" references = @{asset_ref_str}@",
|
||||
" )",
|
||||
" {",
|
||||
f" double3 xformOp:translate = ({tx:.3f}, {ty:.3f}, {tz:.3f})",
|
||||
f" double3 xformOp:rotateXYZ = ({rx:.2f}, {ry:.2f}, {rz:.2f})",
|
||||
f" double3 xformOp:scale = ({sx:.3f}, {sy:.3f}, {sz:.3f})",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"]',
|
||||
]
|
||||
|
||||
# Add optional extra attributes
|
||||
for k, v in self.extra_attributes.items():
|
||||
lines.append(f" {k} = {v}")
|
||||
|
||||
lines.append(" }")
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
class USDAssetLoader:
|
||||
"""Safe asset instantiation manager that tracks prim paths and prevents collisions."""
|
||||
|
||||
def __init__(self, manifest: AssetManifest) -> None:
|
||||
"""Initialize asset loader with catalog manifest."""
|
||||
self.manifest = manifest
|
||||
self.registered_prim_paths: Set[str] = set()
|
||||
self.instances: List[USDReferenceInstance] = []
|
||||
|
||||
def create_reference(
|
||||
self,
|
||||
prim_path: str,
|
||||
asset_id: str,
|
||||
translation: Tuple[float, float, float],
|
||||
rotation_xyz: Tuple[float, float, float] = (0.0, 0.0, 0.0),
|
||||
scale: Optional[Tuple[float, float, float]] = None,
|
||||
extra_attributes: Optional[Dict[str, Any]] = None,
|
||||
) -> USDReferenceInstance:
|
||||
"""Create and register a referenced 3D asset instance.
|
||||
|
||||
Args:
|
||||
prim_path: Full target prim path (e.g. '/World/Warehouse/Racks/rack_a_01').
|
||||
asset_id: Asset identifier in the manifest.
|
||||
translation: (x, y, z) translation in world meters.
|
||||
rotation_xyz: (rx, ry, rz) rotation in degrees.
|
||||
scale: (sx, sy, sz) scale factors.
|
||||
extra_attributes: Optional extra USD attributes.
|
||||
"""
|
||||
if prim_path in self.registered_prim_paths:
|
||||
logger.warning(f"Prim path '{prim_path}' is already registered. Overwriting existing instance.")
|
||||
|
||||
asset = self.manifest.get(asset_id)
|
||||
if not asset.path.exists():
|
||||
logger.error(f"Asset file does not exist: {asset.path}")
|
||||
|
||||
actual_scale = scale if scale is not None else asset.default_scale
|
||||
|
||||
instance = USDReferenceInstance(
|
||||
prim_path=prim_path,
|
||||
asset=asset,
|
||||
translation=translation,
|
||||
rotation_xyz=rotation_xyz,
|
||||
scale=actual_scale,
|
||||
extra_attributes=extra_attributes or {},
|
||||
)
|
||||
|
||||
self.registered_prim_paths.add(prim_path)
|
||||
self.instances.append(instance)
|
||||
return instance
|
||||
|
||||
def clear(self) -> None:
|
||||
"""Clear all registered asset instances."""
|
||||
self.registered_prim_paths.clear()
|
||||
self.instances.clear()
|
||||
@@ -0,0 +1,157 @@
|
||||
"""Coordinate mapping utilities between warehouse graph space and USD 3D world space.
|
||||
|
||||
Provides deterministic, configurable spatial transformations respecting facility dimensions,
|
||||
elevation offsets, grid-cell dimensions, and orientation conventions.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
|
||||
from warehouse_twin.domain.warehouse import (
|
||||
ChargingStation,
|
||||
Position3D,
|
||||
Station,
|
||||
StorageLocation,
|
||||
WarehouseDimensions,
|
||||
WarehouseModel,
|
||||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TransformSpec:
|
||||
"""3D transformation parameters (translation, rotation, scale) in world space."""
|
||||
|
||||
translation: Tuple[float, float, float]
|
||||
rotation_xyz: Tuple[float, float, float] = (0.0, 0.0, 0.0)
|
||||
scale: Tuple[float, float, float] = (1.0, 1.0, 1.0)
|
||||
|
||||
@property
|
||||
def x(self) -> float:
|
||||
return self.translation[0]
|
||||
|
||||
@property
|
||||
def y(self) -> float:
|
||||
return self.translation[1]
|
||||
|
||||
@property
|
||||
def z(self) -> float:
|
||||
return self.translation[2]
|
||||
|
||||
|
||||
class CoordinateMapper:
|
||||
"""Maps warehouse topological graph nodes and discrete simulation coordinates to continuous USD world coordinates."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
origin: Tuple[float, float, float] = (0.0, 0.0, 0.0),
|
||||
floor_elevation: float = 0.0,
|
||||
grid_cell_size: float = 2.0,
|
||||
scale_factor: float = 1.0,
|
||||
) -> None:
|
||||
"""Initialize coordinate mapper with spatial reference parameters.
|
||||
|
||||
Args:
|
||||
origin: World-space coordinates corresponding to graph origin (0, 0, 0).
|
||||
floor_elevation: Elevation offset Z for floor objects (meters).
|
||||
grid_cell_size: Spacing between topological grid nodes (meters).
|
||||
scale_factor: Linear scale multiplier (default 1.0 for meters).
|
||||
"""
|
||||
self.origin = origin
|
||||
self.floor_elevation = floor_elevation
|
||||
self.grid_cell_size = grid_cell_size
|
||||
self.scale_factor = scale_factor
|
||||
|
||||
def graph_to_world(
|
||||
self,
|
||||
x: float,
|
||||
y: float,
|
||||
z: float = 0.0,
|
||||
) -> Tuple[float, float, float]:
|
||||
"""Convert a graph coordinate (x, y, z) into USD world space (wx, wy, wz)."""
|
||||
wx = self.origin[0] + (x * self.scale_factor)
|
||||
wy = self.origin[1] + (y * self.scale_factor)
|
||||
wz = self.origin[2] + self.floor_elevation + (z * self.scale_factor)
|
||||
return (round(wx, 4), round(wy, 4), round(wz, 4))
|
||||
|
||||
def world_to_graph(
|
||||
self,
|
||||
wx: float,
|
||||
wy: float,
|
||||
wz: float = 0.0,
|
||||
) -> Tuple[float, float, float]:
|
||||
"""Convert a USD world coordinate (wx, wy, wz) back into graph space."""
|
||||
x = (wx - self.origin[0]) / self.scale_factor
|
||||
y = (wy - self.origin[1]) / self.scale_factor
|
||||
z = (wz - self.origin[2] - self.floor_elevation) / self.scale_factor
|
||||
return (round(x, 4), round(y, 4), round(z, 4))
|
||||
|
||||
def get_rack_transform(
|
||||
self,
|
||||
location: StorageLocation,
|
||||
rotation_z: float = 0.0,
|
||||
) -> TransformSpec:
|
||||
"""Compute the world-space transform for a storage rack asset."""
|
||||
wx, wy, wz = self.graph_to_world(location.position.x, location.position.y, 0.0)
|
||||
return TransformSpec(
|
||||
translation=(wx, wy, wz),
|
||||
rotation_xyz=(0.0, 0.0, rotation_z),
|
||||
scale=(1.0, 1.0, 1.0),
|
||||
)
|
||||
|
||||
def get_pallet_shelf_transform(
|
||||
self,
|
||||
rack_transform: TransformSpec,
|
||||
level_index: int = 0,
|
||||
level_elevation_meters: float = 0.53,
|
||||
) -> TransformSpec:
|
||||
"""Compute world-space transform for a pallet seated on a specific rack shelf level."""
|
||||
# Level 0 = 0.53m, Level 1 = 1.93m, Level 2 = 3.33m
|
||||
z_offset = level_elevation_meters + (level_index * 1.40)
|
||||
return TransformSpec(
|
||||
translation=(rack_transform.x, rack_transform.y, rack_transform.z + z_offset),
|
||||
rotation_xyz=rack_transform.rotation_xyz,
|
||||
scale=(1.0, 1.0, 1.0),
|
||||
)
|
||||
|
||||
def get_station_transform(
|
||||
self,
|
||||
station: Station,
|
||||
rotation_z: float = 0.0,
|
||||
) -> TransformSpec:
|
||||
"""Compute the world-space transform for an operational station."""
|
||||
wx, wy, wz = self.graph_to_world(station.position.x, station.position.y, 0.0)
|
||||
return TransformSpec(
|
||||
translation=(wx, wy, wz),
|
||||
rotation_xyz=(0.0, 0.0, rotation_z),
|
||||
scale=(1.0, 1.0, 1.0),
|
||||
)
|
||||
|
||||
def get_charging_bay_transform(
|
||||
self,
|
||||
bay: ChargingStation,
|
||||
rotation_z: float = 0.0,
|
||||
) -> TransformSpec:
|
||||
"""Compute the world-space transform for an AMR charging station."""
|
||||
wx, wy, wz = self.graph_to_world(bay.position.x, bay.position.y, 0.0)
|
||||
return TransformSpec(
|
||||
translation=(wx, wy, wz),
|
||||
rotation_xyz=(0.0, 0.0, rotation_z),
|
||||
scale=(1.0, 1.0, 1.0),
|
||||
)
|
||||
|
||||
def get_robot_transform(
|
||||
self,
|
||||
x: float,
|
||||
y: float,
|
||||
yaw_degrees: float = 0.0,
|
||||
elevation: float = 0.0,
|
||||
) -> TransformSpec:
|
||||
"""Compute the world-space transform for an AMR at given coordinate and heading."""
|
||||
wx, wy, wz = self.graph_to_world(x, y, elevation)
|
||||
return TransformSpec(
|
||||
translation=(wx, wy, wz),
|
||||
rotation_xyz=(0.0, 0.0, yaw_degrees),
|
||||
scale=(1.0, 1.0, 1.0),
|
||||
)
|
||||
@@ -0,0 +1,116 @@
|
||||
"""Material definitions and USD Preview Surface shaders for warehouse digital twin."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MaterialSpec:
|
||||
"""PBR material specification compliant with UsdPreviewSurface."""
|
||||
|
||||
material_id: str
|
||||
diffuse_color: Tuple[float, float, float]
|
||||
roughness: float = 0.5
|
||||
metallic: float = 0.0
|
||||
opacity: float = 1.0
|
||||
emissive_color: Tuple[float, float, float] = (0.0, 0.0, 0.0)
|
||||
|
||||
def generate_usda_definition(self) -> str:
|
||||
"""Render OpenUSD Preview Surface material definition."""
|
||||
dc = f"({self.diffuse_color[0]:.3f}, {self.diffuse_color[1]:.3f}, {self.diffuse_color[2]:.3f})"
|
||||
ec = f"({self.emissive_color[0]:.3f}, {self.emissive_color[1]:.3f}, {self.emissive_color[2]:.3f})"
|
||||
|
||||
return f""" def Material "{self.material_id}"
|
||||
{{
|
||||
def Shader "PBRShader"
|
||||
{{
|
||||
uniform token info:id = "UsdPreviewSurface"
|
||||
color3f inputs:diffuseColor = {dc}
|
||||
float inputs:roughness = {self.roughness:.2f}
|
||||
float inputs:metallic = {self.metallic:.2f}
|
||||
float inputs:opacity = {self.opacity:.2f}
|
||||
color3f inputs:emissiveColor = {ec}
|
||||
token outputs:surface
|
||||
}}
|
||||
}}"""
|
||||
|
||||
|
||||
class MaterialManager:
|
||||
"""Registry and generator of standard industrial warehouse materials."""
|
||||
|
||||
STANDARD_MATERIALS: Dict[str, MaterialSpec] = {
|
||||
"ConcreteFloor": MaterialSpec(
|
||||
material_id="ConcreteFloor",
|
||||
diffuse_color=(0.20, 0.22, 0.25),
|
||||
roughness=0.35,
|
||||
metallic=0.05,
|
||||
),
|
||||
"SafetyYellow": MaterialSpec(
|
||||
material_id="SafetyYellow",
|
||||
diffuse_color=(0.95, 0.82, 0.08),
|
||||
roughness=0.25,
|
||||
metallic=0.10,
|
||||
),
|
||||
"SafetyAmber": MaterialSpec(
|
||||
material_id="SafetyAmber",
|
||||
diffuse_color=(0.92, 0.55, 0.08),
|
||||
roughness=0.30,
|
||||
metallic=0.10,
|
||||
),
|
||||
"StructuralSteel": MaterialSpec(
|
||||
material_id="StructuralSteel",
|
||||
diffuse_color=(0.14, 0.28, 0.50),
|
||||
roughness=0.35,
|
||||
metallic=0.40,
|
||||
),
|
||||
"IndustrialDarkSteel": MaterialSpec(
|
||||
material_id="IndustrialDarkSteel",
|
||||
diffuse_color=(0.18, 0.20, 0.24),
|
||||
roughness=0.45,
|
||||
metallic=0.30,
|
||||
),
|
||||
"WoodPine": MaterialSpec(
|
||||
material_id="WoodPine",
|
||||
diffuse_color=(0.76, 0.60, 0.40),
|
||||
roughness=0.75,
|
||||
metallic=0.0,
|
||||
),
|
||||
"KraftCardboard": MaterialSpec(
|
||||
material_id="KraftCardboard",
|
||||
diffuse_color=(0.80, 0.62, 0.38),
|
||||
roughness=0.85,
|
||||
metallic=0.0,
|
||||
),
|
||||
"TechWhite": MaterialSpec(
|
||||
material_id="TechWhite",
|
||||
diffuse_color=(0.92, 0.94, 0.97),
|
||||
roughness=0.20,
|
||||
metallic=0.15,
|
||||
),
|
||||
"BeaconCyan": MaterialSpec(
|
||||
material_id="BeaconCyan",
|
||||
diffuse_color=(0.10, 0.70, 0.95),
|
||||
emissive_color=(0.10, 0.70, 0.95),
|
||||
roughness=0.10,
|
||||
),
|
||||
"BeaconEmerald": MaterialSpec(
|
||||
material_id="BeaconEmerald",
|
||||
diffuse_color=(0.15, 0.85, 0.35),
|
||||
emissive_color=(0.15, 0.85, 0.35),
|
||||
roughness=0.10,
|
||||
),
|
||||
}
|
||||
|
||||
def generate_materials_scope(self) -> str:
|
||||
"""Generate OpenUSD Scope containing all standard materials."""
|
||||
defs = [mat.generate_usda_definition() for mat in self.STANDARD_MATERIALS.values()]
|
||||
body = "\n".join(defs)
|
||||
return f""" # -------------------------------------------------------------------------
|
||||
# Physical Warehouse PBR Materials Library
|
||||
# -------------------------------------------------------------------------
|
||||
def Scope "Materials"
|
||||
{{
|
||||
{body}
|
||||
}}"""
|
||||
@@ -0,0 +1,262 @@
|
||||
"""3D Robot Animator generating time-sampled kinematic tracks for realistic 3D AMR assets.
|
||||
|
||||
Connects simulation trajectory waypoints and SimPy event timing to referenced 3D robot models,
|
||||
animating position, heading, cargo pallet attachment, and telemetry beacon indicators.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
|
||||
from warehouse_twin.domain.robot import Robot, RobotTypeSpec
|
||||
from warehouse_twin.domain.warehouse import WarehouseModel
|
||||
from warehouse_twin.visualization.animated_usd import (
|
||||
compute_battery_indicator_color,
|
||||
interpolate_robot_state,
|
||||
)
|
||||
from warehouse_twin.visualization.asset_loader import AssetManifest
|
||||
from warehouse_twin.visualization.coordinate_mapper import CoordinateMapper
|
||||
from warehouse_twin.visualization.trajectory_player import TrajectoryData
|
||||
from warehouse_twin.visualization.warehouse_builder import Warehouse3DBuilder
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Robot3DAnimator:
|
||||
"""Animates realistic 3D AMR assets along discrete-event simulation trajectory waypoints."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
model: WarehouseModel,
|
||||
trajectory_data: TrajectoryData,
|
||||
manifest: AssetManifest,
|
||||
robots: Optional[List[Robot]] = None,
|
||||
sample_step_seconds: float = 1.0,
|
||||
timecodes_per_second: float = 24.0,
|
||||
coordinate_mapper: Optional[CoordinateMapper] = None,
|
||||
) -> None:
|
||||
"""Initialize animator with warehouse layout, trajectory waypoints, and asset manifest."""
|
||||
self.model = model
|
||||
self.trajectory_data = trajectory_data
|
||||
self.manifest = manifest
|
||||
self.robots = robots or []
|
||||
self.sample_step = max(0.1, sample_step_seconds)
|
||||
self.fps = timecodes_per_second
|
||||
self.mapper = coordinate_mapper or CoordinateMapper()
|
||||
self.builder = Warehouse3DBuilder(
|
||||
model=model,
|
||||
manifest=manifest,
|
||||
robots=[], # Animated robots injected separately
|
||||
coordinate_mapper=self.mapper,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def from_config_and_trajectory(
|
||||
cls,
|
||||
bundle: Any,
|
||||
trajectory_data: TrajectoryData,
|
||||
manifest_path: Optional[Path | str] = None,
|
||||
sample_step_seconds: float = 1.0,
|
||||
timecodes_per_second: float = 24.0,
|
||||
) -> Robot3DAnimator:
|
||||
"""Factory constructor initializing models and fleet from ConfigBundle."""
|
||||
model = WarehouseModel.from_config_dict(bundle.warehouse)
|
||||
|
||||
type_specs: Dict[str, RobotTypeSpec] = {}
|
||||
for t_id, t_data in bundle.robots.get("robot_types", {}).items():
|
||||
type_specs[t_id] = RobotTypeSpec.from_dict(t_id, t_data)
|
||||
|
||||
robots: List[Robot] = []
|
||||
for r_data in bundle.robots.get("fleet", []):
|
||||
robots.append(Robot.from_fleet_dict(r_data, type_specs))
|
||||
|
||||
manifest_file = Path(manifest_path) if manifest_path else Path("config/asset_manifest.json")
|
||||
manifest = AssetManifest(manifest_file)
|
||||
|
||||
return cls(
|
||||
model=model,
|
||||
trajectory_data=trajectory_data,
|
||||
manifest=manifest,
|
||||
robots=robots,
|
||||
sample_step_seconds=sample_step_seconds,
|
||||
timecodes_per_second=timecodes_per_second,
|
||||
)
|
||||
|
||||
def generate_animated_usda(
|
||||
self,
|
||||
scene_directory: Path,
|
||||
target_robot_ids: Optional[List[str]] = None,
|
||||
) -> str:
|
||||
"""Generate complete OpenUSD stage with realistic 3D assets and kinematic robot tracks."""
|
||||
# 1. Generate base static warehouse scene content
|
||||
static_scene = self.builder.generate_usda_scene(scene_directory)
|
||||
|
||||
# Truncate closing brace of World
|
||||
idx_close = static_scene.rfind("}")
|
||||
if idx_close != -1:
|
||||
base_body = static_scene[:idx_close].rstrip()
|
||||
else:
|
||||
base_body = static_scene
|
||||
|
||||
# Compute animation frame bounds
|
||||
duration = self.trajectory_data.duration
|
||||
fps = self.fps
|
||||
end_frame = round(duration * fps)
|
||||
|
||||
# Update stage metadata header with timeline timecodes
|
||||
header_meta = f"""(
|
||||
defaultPrim = "World"
|
||||
metersPerUnit = 1.0
|
||||
upAxis = "Z"
|
||||
startTimeCode = 0.0
|
||||
endTimeCode = {end_frame:.1f}
|
||||
timeCodesPerSecond = {fps:.1f}
|
||||
doc = "Warehouse Robot Fleet Digital Twin - Realistic 3D Asset Kinematic Stage"
|
||||
)"""
|
||||
|
||||
# Replace static header
|
||||
start_meta_idx = base_body.find("(")
|
||||
end_meta_idx = base_body.find(")", start_meta_idx)
|
||||
if start_meta_idx != -1 and end_meta_idx != -1:
|
||||
stage_content = base_body[:start_meta_idx] + header_meta + base_body[end_meta_idx + 1:]
|
||||
else:
|
||||
stage_content = base_body
|
||||
|
||||
# Compute sampling timestamps
|
||||
sim_times: List[float] = []
|
||||
cur_t = self.trajectory_data.start_time
|
||||
while cur_t <= self.trajectory_data.end_time:
|
||||
sim_times.append(round(cur_t, 3))
|
||||
cur_t += self.sample_step
|
||||
if not sim_times or sim_times[-1] < self.trajectory_data.end_time:
|
||||
sim_times.append(round(self.trajectory_data.end_time, 3))
|
||||
|
||||
# Filter target robots
|
||||
active_robots = [
|
||||
r for r in self.robots
|
||||
if target_robot_ids is None or r.robot_id in target_robot_ids
|
||||
]
|
||||
if not active_robots and self.robots:
|
||||
active_robots = self.robots
|
||||
|
||||
# Build dynamic Robots Scope
|
||||
robot_lines: List[str] = [
|
||||
"",
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Realistic 3D Animated AMR Fleet (Kinematic Time-Sampled Tracks)",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Robots"',
|
||||
" {",
|
||||
]
|
||||
|
||||
# Asset paths relative to scene directory
|
||||
for robot in active_robots:
|
||||
r_id = robot.robot_id
|
||||
pts = self.trajectory_data.robots.get(r_id, [])
|
||||
is_heavy = "heavy" in robot.robot_type
|
||||
asset_id = "amr_heavy" if is_heavy else "amr_light"
|
||||
robot_meta = self.manifest.get(asset_id)
|
||||
|
||||
# Compute relative reference path
|
||||
try:
|
||||
rel_path = robot_meta.path.relative_to(scene_directory).as_posix()
|
||||
ref_str = f"./{rel_path}"
|
||||
except ValueError:
|
||||
import os
|
||||
ref_str = os.path.relpath(robot_meta.path, scene_directory).replace("\\", "/")
|
||||
|
||||
pallet_meta = self.manifest.get("pallet_with_cartons")
|
||||
try:
|
||||
pallet_rel_path = pallet_meta.path.relative_to(scene_directory).as_posix()
|
||||
pallet_ref_str = f"./{pallet_rel_path}"
|
||||
except ValueError:
|
||||
import os
|
||||
pallet_ref_str = os.path.relpath(pallet_meta.path, scene_directory).replace("\\", "/")
|
||||
|
||||
cargo_bed_z = 0.43 if is_heavy else 0.33
|
||||
|
||||
trans_samples: List[str] = []
|
||||
rot_samples: List[str] = []
|
||||
beacon_samples: List[str] = []
|
||||
payload_vis_samples: List[str] = []
|
||||
|
||||
for st_time in sim_times:
|
||||
frame_code = round((st_time - self.trajectory_data.start_time) * fps, 2)
|
||||
state = interpolate_robot_state(r_id, pts, st_time)
|
||||
|
||||
# World coordinate transformation
|
||||
wx, wy, wz = self.mapper.graph_to_world(state.x, state.y, 0.0)
|
||||
|
||||
trans_samples.append(f" {frame_code:.1f}: ({wx:.3f}, {wy:.3f}, {wz:.3f}),")
|
||||
rot_samples.append(f" {frame_code:.1f}: (0.0, 0.0, {state.yaw_degrees:.1f}),")
|
||||
|
||||
# Beacon color override
|
||||
r, g, b = state.status_color
|
||||
beacon_samples.append(f" {frame_code:.1f}: [({r:.2f}, {g:.2f}, {b:.2f})],")
|
||||
|
||||
# Cargo visibility
|
||||
vis_tok = '"inherited"' if state.is_loaded else '"invisible"'
|
||||
payload_vis_samples.append(f" {frame_code:.1f}: {vis_tok},")
|
||||
|
||||
# Format referenced 3D robot prim with time-sampled translation & rotation
|
||||
robot_lines.extend([
|
||||
f' def Xform "{r_id}" (',
|
||||
f" references = @{ref_str}@",
|
||||
" )",
|
||||
" {",
|
||||
" double3 xformOp:translate.timeSamples = {",
|
||||
*trans_samples,
|
||||
" }",
|
||||
" double3 xformOp:rotateXYZ.timeSamples = {",
|
||||
*rot_samples,
|
||||
" }",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ"]',
|
||||
"",
|
||||
" # Dynamic Telemetry Status Beacon",
|
||||
' over "Indicators"',
|
||||
" {",
|
||||
' over "StatusDome"',
|
||||
" {",
|
||||
" color3f[] primvars:displayColor.timeSamples = {",
|
||||
*beacon_samples,
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" # Dynamic Mounted Cargo Pallet Attachment",
|
||||
f' def Xform "CargoAttachment" (',
|
||||
f" references = @{pallet_ref_str}@",
|
||||
" )",
|
||||
" {",
|
||||
f" double3 xformOp:translate = (0.0, 0.0, {cargo_bed_z:.3f})",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate"]',
|
||||
" token visibility.timeSamples = {",
|
||||
*payload_vis_samples,
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
])
|
||||
|
||||
robot_lines.extend([
|
||||
" }",
|
||||
"}", # Close World
|
||||
"",
|
||||
])
|
||||
|
||||
return stage_content + "\n" + "\n".join(robot_lines)
|
||||
|
||||
def export_usda(
|
||||
self,
|
||||
filepath: Path | str,
|
||||
target_robot_ids: Optional[List[str]] = None,
|
||||
) -> Path:
|
||||
"""Export time-sampled animated 3D USD scene to disk."""
|
||||
target_path = Path(filepath).resolve()
|
||||
target_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
content = self.generate_animated_usda(target_path.parent, target_robot_ids=target_robot_ids)
|
||||
target_path.write_text(content, encoding="utf-8")
|
||||
logger.info(f"Exported animated 3D warehouse scene to {target_path}")
|
||||
return target_path
|
||||
@@ -0,0 +1,57 @@
|
||||
"""Navigation network and route visualizer for warehouse 3D scene."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import List, Tuple
|
||||
|
||||
from warehouse_twin.visualization.coordinate_mapper import CoordinateMapper
|
||||
|
||||
|
||||
class RouteVisualizer:
|
||||
"""Generates visual representations of navigation highways, aisle lanes, and robot routes."""
|
||||
|
||||
def __init__(self, coordinate_mapper: CoordinateMapper) -> None:
|
||||
"""Initialize route visualizer with coordinate mapper."""
|
||||
self.mapper = coordinate_mapper
|
||||
|
||||
def generate_routes_scope(self) -> str:
|
||||
"""Generate OpenUSD Scope containing navigation lane visualizers and floor markings."""
|
||||
lines = [
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Navigation Network & Aisle Markings",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Routes"',
|
||||
" {",
|
||||
]
|
||||
|
||||
# Highway corridors: (name, cx, cy, sx, sy, color)
|
||||
corridors = [
|
||||
("Highway_West_Dock", 2.0, 20.0, 0.4, 36.0, "(0.25, 0.65, 0.95)"),
|
||||
("Highway_Transfer_AB", 26.0, 20.0, 0.4, 36.0, "(0.35, 0.75, 0.95)"),
|
||||
("Highway_Transfer_BC", 46.0, 20.0, 0.4, 36.0, "(0.35, 0.75, 0.95)"),
|
||||
("Highway_East_Perimeter", 58.0, 20.0, 0.4, 36.0, "(0.25, 0.65, 0.95)"),
|
||||
("Highway_South_Picking", 30.0, 2.0, 56.0, 0.4, "(0.25, 0.70, 0.85)"),
|
||||
("Highway_North_Charging", 30.0, 38.0, 56.0, 0.4, "(0.25, 0.70, 0.85)"),
|
||||
("Aisle_B1_Wide_Aisle", 34.0, 20.0, 0.5, 28.0, "(0.95, 0.65, 0.15)"),
|
||||
("Aisle_B2_Wide_Aisle", 40.0, 20.0, 0.5, 28.0, "(0.95, 0.65, 0.15)"),
|
||||
]
|
||||
|
||||
for name, cx, cy, sx, sy, col in corridors:
|
||||
wx, wy, wz = self.mapper.graph_to_world(cx, cy, 0.01)
|
||||
lines.extend([
|
||||
f' def Xform "{name}"',
|
||||
" {",
|
||||
f" double3 xformOp:translate = ({wx:.2f}, {wy:.2f}, {wz:.3f})",
|
||||
f" double3 xformOp:scale = ({sx / 2.0:.3f}, {sy / 2.0:.3f}, 0.005)",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]',
|
||||
"",
|
||||
' def Cube "LaneVisualizer"',
|
||||
" {",
|
||||
f" color3f[] primvars:displayColor = [{col}]",
|
||||
" float[] primvars:displayRoughness = [0.8]",
|
||||
" }",
|
||||
" }",
|
||||
])
|
||||
|
||||
lines.append(" }")
|
||||
return "\n".join(lines)
|
||||
@@ -0,0 +1,458 @@
|
||||
"""3D Warehouse Builder integrating realistic OpenUSD assets.
|
||||
|
||||
Constructs industrial-grade OpenUSD stages by referencing modular 3D assets for racks,
|
||||
shelving, pallets, inventory cartons, stations, charging bays, safety barriers, and architecture,
|
||||
preserving exact topological graph coordinates and warehouse specifications.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
|
||||
from warehouse_twin.domain.robot import Robot
|
||||
from warehouse_twin.domain.warehouse import WarehouseModel
|
||||
from warehouse_twin.visualization.asset_loader import AssetManifest, USDAssetLoader
|
||||
from warehouse_twin.visualization.coordinate_mapper import CoordinateMapper
|
||||
from warehouse_twin.visualization.materials import MaterialManager
|
||||
from warehouse_twin.visualization.route_visualizer import RouteVisualizer
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Warehouse3DBuilder:
|
||||
"""Builds a realistic 3D warehouse scene populated with modular referenced USD assets."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
model: WarehouseModel,
|
||||
manifest: AssetManifest,
|
||||
robots: Optional[List[Robot]] = None,
|
||||
include_inventory_pallets: bool = True,
|
||||
include_safety_barriers: bool = True,
|
||||
include_routes: bool = True,
|
||||
coordinate_mapper: Optional[CoordinateMapper] = None,
|
||||
) -> None:
|
||||
"""Initialize warehouse 3D builder with domain models and asset manifest."""
|
||||
self.model = model
|
||||
self.manifest = manifest
|
||||
self.robots = robots or []
|
||||
self.include_inventory_pallets = include_inventory_pallets
|
||||
self.include_safety_barriers = include_safety_barriers
|
||||
self.include_routes = include_routes
|
||||
self.mapper = coordinate_mapper or CoordinateMapper()
|
||||
self.asset_loader = USDAssetLoader(self.manifest)
|
||||
self.material_mgr = MaterialManager()
|
||||
self.route_viz = RouteVisualizer(self.mapper)
|
||||
|
||||
@classmethod
|
||||
def from_config_bundle(
|
||||
cls,
|
||||
bundle: Any,
|
||||
manifest_path: Optional[Path | str] = None,
|
||||
include_inventory_pallets: bool = True,
|
||||
include_safety_barriers: bool = True,
|
||||
include_routes: bool = True,
|
||||
) -> Warehouse3DBuilder:
|
||||
"""Construct builder from ConfigBundle and optional manifest path."""
|
||||
from warehouse_twin.domain.robot import RobotTypeSpec
|
||||
|
||||
model = WarehouseModel.from_config_dict(bundle.warehouse)
|
||||
|
||||
# Robot specs & entities
|
||||
type_specs: Dict[str, RobotTypeSpec] = {}
|
||||
for t_id, t_data in bundle.robots.get("robot_types", {}).items():
|
||||
type_specs[t_id] = RobotTypeSpec.from_dict(t_id, t_data)
|
||||
|
||||
robots: List[Robot] = []
|
||||
for r_data in bundle.robots.get("fleet", []):
|
||||
robots.append(Robot.from_fleet_dict(r_data, type_specs))
|
||||
|
||||
# Manifest lookup
|
||||
if manifest_path is None:
|
||||
manifest_file = Path("config/asset_manifest.json")
|
||||
else:
|
||||
manifest_file = Path(manifest_path)
|
||||
|
||||
manifest = AssetManifest(manifest_file)
|
||||
return cls(
|
||||
model=model,
|
||||
manifest=manifest,
|
||||
robots=robots,
|
||||
include_inventory_pallets=include_inventory_pallets,
|
||||
include_safety_barriers=include_safety_barriers,
|
||||
include_routes=include_routes,
|
||||
)
|
||||
|
||||
def generate_usda_scene(self, scene_directory: Path) -> str:
|
||||
"""Construct valid ASCII OpenUSD stage content referencing modular 3D assets."""
|
||||
self.asset_loader.clear()
|
||||
dims = self.model.dimensions
|
||||
w, d, h = dims.width, dims.depth, dims.height
|
||||
|
||||
lines: List[str] = [
|
||||
"#usda 1.0",
|
||||
"(",
|
||||
' defaultPrim = "World"',
|
||||
" metersPerUnit = 1.0",
|
||||
' upAxis = "Z"',
|
||||
' doc = "Warehouse Robot Fleet Digital Twin - Realistic 3D Asset Stage"',
|
||||
")",
|
||||
"",
|
||||
'def Xform "World"',
|
||||
"{",
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Environment Lighting & Sunlight Framing",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def DistantLight "SunLight"',
|
||||
" {",
|
||||
" float inputs:intensity = 3800.0",
|
||||
" color3f inputs:color = (0.98, 0.96, 0.92)",
|
||||
" float inputs:angle = 1.2",
|
||||
" double3 xformOp:rotateXYZ = (-48.0, 32.0, 0.0)",
|
||||
' uniform token[] xformOpOrder = ["xformOp:rotateXYZ"]',
|
||||
" }",
|
||||
"",
|
||||
' def DomeLight "SkyLight"',
|
||||
" {",
|
||||
" float inputs:intensity = 950.0",
|
||||
" color3f inputs:color = (0.86, 0.91, 0.98)",
|
||||
" }",
|
||||
"",
|
||||
]
|
||||
|
||||
# Materials scope
|
||||
lines.append(self.material_mgr.generate_materials_scope())
|
||||
lines.append("")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Warehouse Architecture Scope (Referencing building_shell.usda)
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Industrial Building Architecture Shell",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Warehouse"',
|
||||
" {",
|
||||
' def Scope "Architecture"',
|
||||
" {",
|
||||
])
|
||||
|
||||
shell_inst = self.asset_loader.create_reference(
|
||||
prim_path="/World/Warehouse/Architecture/BuildingShell",
|
||||
asset_id="building_shell",
|
||||
translation=self.mapper.graph_to_world(0.0, 0.0, 0.0),
|
||||
)
|
||||
lines.append(f" {shell_inst.generate_usda_reference(scene_directory)}")
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Operational Zones Scope
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Operational Zones Demarcations",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Zones"',
|
||||
" {",
|
||||
])
|
||||
|
||||
zone_colors = {
|
||||
"zone_a": "(0.15, 0.45, 0.85)", # Vibrant blue
|
||||
"zone_b": "(0.85, 0.55, 0.12)", # Warning amber
|
||||
"zone_c": "(0.12, 0.68, 0.38)", # Production green
|
||||
}
|
||||
|
||||
for z_id, zone in self.model.zones.items():
|
||||
area = zone.area
|
||||
zx = (area.x_min + area.x_max) / 2.0
|
||||
zy = (area.y_min + area.y_max) / 2.0
|
||||
sx = (area.x_max - area.x_min) / 2.0
|
||||
sy = (area.y_max - area.y_min) / 2.0
|
||||
wx, wy, wz = self.mapper.graph_to_world(zx, zy, 0.005)
|
||||
color = zone_colors.get(z_id, "(0.5, 0.5, 0.5)")
|
||||
|
||||
lines.extend([
|
||||
f' def Cube "{z_id}"',
|
||||
" {",
|
||||
f" double3 xformOp:translate = ({wx:.2f}, {wy:.2f}, {wz:.3f})",
|
||||
f" double3 xformOp:scale = ({sx:.2f}, {sy:.2f}, 0.005)",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:scale"]',
|
||||
f" color3f[] primvars:displayColor = [{color}]",
|
||||
" float[] primvars:displayOpacity = [0.22]",
|
||||
" }",
|
||||
])
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Storage Racks Scope (Referencing pallet_rack_heavy or shelving_unit_light)
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Storage Racks & Shelving Units",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Racks"',
|
||||
" {",
|
||||
])
|
||||
|
||||
for loc_id, loc in self.model.storage_locations.items():
|
||||
# Zone A uses light shelving, Zone B and C use heavy pallet racks
|
||||
is_light_zone = loc.zone == "zone_a"
|
||||
asset_id = "shelving_unit_light" if is_light_zone else "pallet_rack_heavy"
|
||||
|
||||
tx = self.mapper.get_rack_transform(loc)
|
||||
prim_path = f"/World/Warehouse/Racks/{loc_id}"
|
||||
|
||||
rack_inst = self.asset_loader.create_reference(
|
||||
prim_path=prim_path,
|
||||
asset_id=asset_id,
|
||||
translation=tx.translation,
|
||||
rotation_xyz=tx.rotation_xyz,
|
||||
)
|
||||
lines.append(f" {rack_inst.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Inventory Pallets & Cartons Scope
|
||||
# -------------------------------------------------------------------------
|
||||
if self.include_inventory_pallets:
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Multi-Level Inventory Pallets & Carton Stacks",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Inventory"',
|
||||
" {",
|
||||
])
|
||||
|
||||
for loc_id, loc in self.model.storage_locations.items():
|
||||
is_light_zone = loc.zone == "zone_a"
|
||||
rack_tx = self.mapper.get_rack_transform(loc)
|
||||
|
||||
if is_light_zone:
|
||||
# Place cartons on 2 shelf levels
|
||||
p_tx1 = self.mapper.get_pallet_shelf_transform(rack_tx, level_index=0, level_elevation_meters=0.32)
|
||||
p1 = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/Inventory/{loc_id}_Cartons_L1",
|
||||
asset_id="pallet_with_cartons",
|
||||
translation=p_tx1.translation,
|
||||
scale=(0.7, 0.7, 0.7),
|
||||
)
|
||||
lines.append(f" {p1.generate_usda_reference(scene_directory)}")
|
||||
else:
|
||||
# Heavy pallets on lower and middle rack tiers
|
||||
p_tx1 = self.mapper.get_pallet_shelf_transform(rack_tx, level_index=0, level_elevation_meters=0.55)
|
||||
p1 = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/Inventory/{loc_id}_Pallet_L1",
|
||||
asset_id="pallet_with_cartons",
|
||||
translation=p_tx1.translation,
|
||||
)
|
||||
lines.append(f" {p1.generate_usda_reference(scene_directory)}")
|
||||
|
||||
p_tx2 = self.mapper.get_pallet_shelf_transform(rack_tx, level_index=1, level_elevation_meters=0.55)
|
||||
p2 = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/Inventory/{loc_id}_Pallet_L2",
|
||||
asset_id="euro_pallet",
|
||||
translation=p_tx2.translation,
|
||||
)
|
||||
lines.append(f" {p2.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Operational Stations Scope
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Loading, Picking, and Assembly Stations",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Stations"',
|
||||
" {",
|
||||
])
|
||||
|
||||
for st_id, st in self.model.stations.items():
|
||||
st_val = st.station_type.value
|
||||
if "inbound" in st_val or "outbound" in st_val:
|
||||
asset_id = "dock_inbound"
|
||||
rot_z = 90.0 if st.position.x < 10.0 else 0.0
|
||||
else:
|
||||
asset_id = "picking_station"
|
||||
rot_z = 0.0
|
||||
|
||||
tx = self.mapper.get_station_transform(st, rotation_z=rot_z)
|
||||
st_inst = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/Stations/{st_id}",
|
||||
asset_id=asset_id,
|
||||
translation=tx.translation,
|
||||
rotation_xyz=tx.rotation_xyz,
|
||||
)
|
||||
lines.append(f" {st_inst.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Autonomous Mobile Robot Charging Stations Scope
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # AMR Automated Charging Bays",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "ChargingStations"',
|
||||
" {",
|
||||
])
|
||||
|
||||
for bay_id, bay in self.model.charging_stations.items():
|
||||
tx = self.mapper.get_charging_bay_transform(bay, rotation_z=180.0)
|
||||
bay_inst = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/ChargingStations/{bay_id}",
|
||||
asset_id="charging_station",
|
||||
translation=tx.translation,
|
||||
rotation_xyz=tx.rotation_xyz,
|
||||
)
|
||||
lines.append(f" {bay_inst.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Safety Barriers Scope
|
||||
# -------------------------------------------------------------------------
|
||||
if self.include_safety_barriers:
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Industrial Safety Guardrails & Perimeter Barriers",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "SafetyBarriers"',
|
||||
" {",
|
||||
])
|
||||
|
||||
barrier_positions = [
|
||||
("Barrier_Dock_1", (2.0, 15.0, 0.0), 90.0),
|
||||
("Barrier_Dock_2", (2.0, 25.0, 0.0), 90.0),
|
||||
("Barrier_Charging_Corner", (10.0, 36.0, 0.0), 0.0),
|
||||
("Barrier_Transfer_AB", (28.0, 5.0, 0.0), 0.0),
|
||||
("Barrier_Transfer_BC", (46.0, 5.0, 0.0), 0.0),
|
||||
]
|
||||
|
||||
for b_name, b_pos, b_rot in barrier_positions:
|
||||
wx, wy, wz = self.mapper.graph_to_world(*b_pos)
|
||||
bar_inst = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Warehouse/SafetyBarriers/{b_name}",
|
||||
asset_id="safety_barrier",
|
||||
translation=(wx, wy, wz),
|
||||
rotation_xyz=(0.0, 0.0, b_rot),
|
||||
)
|
||||
lines.append(f" {bar_inst.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
])
|
||||
|
||||
lines.extend([
|
||||
" }", # End Scope Warehouse
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Navigation Routes Scope
|
||||
# -------------------------------------------------------------------------
|
||||
if self.include_routes:
|
||||
lines.append(self.route_viz.generate_routes_scope())
|
||||
lines.append("")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Camera Presets Scope
|
||||
# -------------------------------------------------------------------------
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Preset Omniverse Cameras",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Cameras"',
|
||||
" {",
|
||||
' def Camera "OverviewCamera"',
|
||||
" {",
|
||||
" float focalLength = 24.0",
|
||||
" float focusDistance = 45.0",
|
||||
" double3 xformOp:translate = (30.0, -18.0, 28.0)",
|
||||
" double3 xformOp:rotateXYZ = (52.0, 0.0, 0.0)",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ"]',
|
||||
" }",
|
||||
' def Camera "TopDownCamera"',
|
||||
" {",
|
||||
" float focalLength = 35.0",
|
||||
" double3 xformOp:translate = (30.0, 20.0, 65.0)",
|
||||
" double3 xformOp:rotateXYZ = (0.0, 0.0, 0.0)",
|
||||
' uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ"]',
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
])
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Autonomous Mobile Robots (AMR) Fleet Scope
|
||||
# -------------------------------------------------------------------------
|
||||
if self.robots:
|
||||
lines.extend([
|
||||
" # -------------------------------------------------------------------------",
|
||||
" # Autonomous Mobile Robot (AMR) Fleet (Referencing 3D Robot Assets)",
|
||||
" # -------------------------------------------------------------------------",
|
||||
' def Scope "Robots"',
|
||||
" {",
|
||||
])
|
||||
|
||||
for robot in self.robots:
|
||||
is_heavy = "heavy" in robot.robot_type
|
||||
asset_id = "amr_heavy" if is_heavy else "amr_light"
|
||||
tx = self.mapper.get_robot_transform(
|
||||
x=robot.position.x,
|
||||
y=robot.position.y,
|
||||
yaw_degrees=robot.yaw_degrees,
|
||||
)
|
||||
|
||||
robot_inst = self.asset_loader.create_reference(
|
||||
prim_path=f"/World/Robots/{robot.robot_id}",
|
||||
asset_id=asset_id,
|
||||
translation=tx.translation,
|
||||
rotation_xyz=tx.rotation_xyz,
|
||||
)
|
||||
lines.append(f" {robot_inst.generate_usda_reference(scene_directory)}")
|
||||
|
||||
lines.extend([
|
||||
" }",
|
||||
])
|
||||
|
||||
lines.extend([
|
||||
"}", # End def Xform World
|
||||
"",
|
||||
])
|
||||
|
||||
return "\n".join(lines)
|
||||
|
||||
def export_usda(self, filepath: Path | str) -> Path:
|
||||
"""Export realistic 3D warehouse scene to specified USDA file path."""
|
||||
target_path = Path(filepath).resolve()
|
||||
target_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
content = self.generate_usda_scene(target_path.parent)
|
||||
target_path.write_text(content, encoding="utf-8")
|
||||
logger.info(f"Exported realistic 3D warehouse scene to {target_path}")
|
||||
return target_path
|
||||
@@ -0,0 +1,74 @@
|
||||
"""Unit tests for Phase 2: 3D Asset Validation and Manifest Integrity."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def manifest_path(project_root: Path) -> Path:
|
||||
return project_root / "config" / "asset_manifest.json"
|
||||
|
||||
|
||||
def test_asset_manifest_structure_and_completeness(manifest_path: Path):
|
||||
"""Verify that asset_manifest.json exists, is valid JSON, and contains required assets."""
|
||||
assert manifest_path.exists(), f"Asset manifest missing at {manifest_path}"
|
||||
|
||||
with open(manifest_path, "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
|
||||
assert data["version"] == "1.0.0"
|
||||
assert data["meters_per_unit"] == 1.0
|
||||
assert data["up_axis"] == "Z"
|
||||
assert "assets" in data
|
||||
|
||||
assets = data["assets"]
|
||||
required_keys = [
|
||||
"pallet_rack_heavy",
|
||||
"shelving_unit_light",
|
||||
"euro_pallet",
|
||||
"pallet_with_cartons",
|
||||
"amr_light",
|
||||
"amr_heavy",
|
||||
"dock_inbound",
|
||||
"picking_station",
|
||||
"charging_station",
|
||||
"safety_barrier",
|
||||
"building_shell",
|
||||
]
|
||||
|
||||
for key in required_keys:
|
||||
assert key in assets, f"Required asset '{key}' missing from manifest"
|
||||
entry = assets[key]
|
||||
assert "path" in entry
|
||||
assert "dimensions" in entry
|
||||
assert len(entry["dimensions"]) == 3
|
||||
assert "role" in entry
|
||||
|
||||
|
||||
def test_manifest_assets_exist_on_disk(project_root: Path, manifest_path: Path):
|
||||
"""Verify that every asset referenced in the manifest physically exists and is non-empty."""
|
||||
with open(manifest_path, "r", encoding="utf-8") as f:
|
||||
data = json.load(f)
|
||||
|
||||
for asset_id, entry in data["assets"].items():
|
||||
rel_path = entry["path"]
|
||||
file_path = project_root / rel_path
|
||||
assert file_path.exists(), f"Asset file for '{asset_id}' does not exist at {file_path}"
|
||||
assert file_path.stat().st_size > 100, f"Asset file for '{asset_id}' is empty or too small"
|
||||
|
||||
|
||||
def test_rack_and_robot_usda_syntax(project_root: Path):
|
||||
"""Verify OpenUSD syntax conventions for rack and robot models (Phase 2 validation)."""
|
||||
rack_file = project_root / "assets" / "racks" / "pallet_rack_heavy.usda"
|
||||
robot_file = project_root / "assets" / "robots" / "amr_light.usda"
|
||||
|
||||
for fpath in (rack_file, robot_file):
|
||||
text = fpath.read_text(encoding="utf-8")
|
||||
assert text.startswith("#usda 1.0"), f"{fpath} missing #usda 1.0 header"
|
||||
assert 'metersPerUnit = 1.0' in text
|
||||
assert 'upAxis = "Z"' in text
|
||||
assert "def Xform" in text
|
||||
assert "color3f[] primvars:displayColor" in text
|
||||
@@ -0,0 +1,188 @@
|
||||
"""Unit tests for realistic 3D asset integration, warehouse builder, and robot animator."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
import pytest
|
||||
|
||||
from warehouse_twin.config.loader import ConfigLoader
|
||||
from warehouse_twin.visualization.asset_loader import AssetManifest, USDAssetLoader
|
||||
from warehouse_twin.visualization.coordinate_mapper import CoordinateMapper
|
||||
from warehouse_twin.visualization.materials import MaterialManager
|
||||
from warehouse_twin.visualization.robot_animator import Robot3DAnimator
|
||||
from warehouse_twin.visualization.route_visualizer import RouteVisualizer
|
||||
from warehouse_twin.visualization.trajectory_player import TrajectoryData
|
||||
from warehouse_twin.visualization.warehouse_builder import Warehouse3DBuilder
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_bundle(project_config_dir: Path):
|
||||
loader = ConfigLoader(project_config_dir)
|
||||
return loader.load_all()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def manifest_file(project_root: Path) -> Path:
|
||||
return project_root / "config" / "asset_manifest.json"
|
||||
|
||||
|
||||
def test_coordinate_mapper_bidirectional():
|
||||
"""Verify coordinate mapper maps between graph space and USD world space correctly."""
|
||||
mapper = CoordinateMapper(origin=(10.0, 5.0, 0.0), floor_elevation=0.2, scale_factor=1.0)
|
||||
wx, wy, wz = mapper.graph_to_world(5.0, 15.0, 0.0)
|
||||
assert wx == 15.0
|
||||
assert wy == 20.0
|
||||
assert wz == 0.2
|
||||
|
||||
gx, gy, gz = mapper.world_to_graph(wx, wy, wz)
|
||||
assert gx == 5.0
|
||||
assert gy == 15.0
|
||||
assert gz == 0.0
|
||||
|
||||
|
||||
def test_asset_loader_creates_valid_references(manifest_file: Path, tmp_path: Path):
|
||||
"""Verify USDAssetLoader correctly generates OpenUSD ASCII reference syntax."""
|
||||
manifest = AssetManifest(manifest_file)
|
||||
loader = USDAssetLoader(manifest)
|
||||
|
||||
instance = loader.create_reference(
|
||||
prim_path="/World/Warehouse/Racks/rack_a_01",
|
||||
asset_id="pallet_rack_heavy",
|
||||
translation=(8.0, 10.0, 0.0),
|
||||
rotation_xyz=(0.0, 0.0, 0.0),
|
||||
)
|
||||
|
||||
assert instance.prim_path == "/World/Warehouse/Racks/rack_a_01"
|
||||
assert "/World/Warehouse/Racks/rack_a_01" in loader.registered_prim_paths
|
||||
|
||||
snippet = instance.generate_usda_reference(scene_directory=tmp_path)
|
||||
assert 'def Xform "rack_a_01"' in snippet
|
||||
assert "references = @" in snippet
|
||||
assert "double3 xformOp:translate = (8.000, 10.000, 0.000)" in snippet
|
||||
|
||||
|
||||
def test_warehouse_builder_generates_valid_scene(sample_bundle, manifest_file: Path, tmp_path: Path):
|
||||
"""Verify Warehouse3DBuilder generates complete scene with modular referenced 3D assets."""
|
||||
builder = Warehouse3DBuilder.from_config_bundle(sample_bundle, manifest_path=manifest_file)
|
||||
scene_file = tmp_path / "warehouse_realistic.usda"
|
||||
saved = builder.export_usda(scene_file)
|
||||
|
||||
assert saved.exists()
|
||||
content = saved.read_text(encoding="utf-8")
|
||||
|
||||
# Header and stage configuration
|
||||
assert content.startswith("#usda 1.0")
|
||||
assert 'metersPerUnit = 1.0' in content
|
||||
assert 'upAxis = "Z"' in content
|
||||
|
||||
# Environment lighting
|
||||
assert 'def DistantLight "SunLight"' in content
|
||||
assert 'def DomeLight "SkyLight"' in content
|
||||
|
||||
# Materials scope
|
||||
assert 'def Scope "Materials"' in content
|
||||
assert 'def Material "ConcreteFloor"' in content
|
||||
assert 'def Material "SafetyYellow"' in content
|
||||
|
||||
# Architecture referencing building_shell.usda
|
||||
assert 'def Scope "Architecture"' in content
|
||||
assert 'def Xform "BuildingShell"' in content
|
||||
assert "building_shell.usda" in content
|
||||
|
||||
# Zones
|
||||
assert 'def Scope "Zones"' in content
|
||||
assert 'def Cube "zone_a"' in content
|
||||
assert 'def Cube "zone_b"' in content
|
||||
assert 'def Cube "zone_c"' in content
|
||||
|
||||
# Racks & Shelving units
|
||||
assert 'def Scope "Racks"' in content
|
||||
assert 'def Xform "rack_a_01"' in content
|
||||
assert 'def Xform "rack_b_01"' in content
|
||||
assert "shelving_unit_light.usda" in content
|
||||
assert "pallet_rack_heavy.usda" in content
|
||||
|
||||
# Multi-tier inventory pallets & cartons
|
||||
assert 'def Scope "Inventory"' in content
|
||||
assert "pallet_with_cartons.usda" in content
|
||||
assert "euro_pallet.usda" in content
|
||||
|
||||
# Stations
|
||||
assert 'def Scope "Stations"' in content
|
||||
assert 'def Xform "dock_inbound_1"' in content
|
||||
assert 'def Xform "picking_station_a1"' in content
|
||||
assert "dock_inbound.usda" in content
|
||||
assert "picking_station.usda" in content
|
||||
|
||||
# Charging Bays
|
||||
assert 'def Scope "ChargingStations"' in content
|
||||
assert 'def Xform "charge_bay_1"' in content
|
||||
assert "charging_station.usda" in content
|
||||
|
||||
# Safety Barriers & Navigation Routes
|
||||
assert 'def Scope "SafetyBarriers"' in content
|
||||
assert 'def Scope "Routes"' in content
|
||||
|
||||
# Cameras
|
||||
assert 'def Camera "OverviewCamera"' in content
|
||||
assert 'def Camera "TopDownCamera"' in content
|
||||
|
||||
# Fleet references
|
||||
assert 'def Scope "Robots"' in content
|
||||
assert 'def Xform "amr_light_01"' in content
|
||||
assert 'def Xform "amr_heavy_01"' in content
|
||||
assert "amr_light.usda" in content
|
||||
assert "amr_heavy.usda" in content
|
||||
|
||||
|
||||
def test_robot_animator_single_and_multi_robot(sample_bundle, manifest_file: Path, tmp_path: Path):
|
||||
"""Verify Robot3DAnimator generates time-sampled animation tracks for single and full fleet."""
|
||||
mock_trajectory = {
|
||||
"metadata": {"simulation_duration": 10.0},
|
||||
"robots": {
|
||||
"amr_light_01": [
|
||||
{"t": 0.0, "pos": [2.0, 36.0, 0.0], "yaw_deg": 0.0, "state": "IDLE", "battery_percent": 100.0, "is_loaded": False},
|
||||
{"t": 5.0, "pos": [12.0, 36.0, 0.0], "yaw_deg": 0.0, "state": "LOADED_TRANSIT", "battery_percent": 98.0, "is_loaded": True},
|
||||
{"t": 10.0, "pos": [20.0, 36.0, 0.0], "yaw_deg": 90.0, "state": "DROPPING", "battery_percent": 96.0, "is_loaded": True},
|
||||
],
|
||||
"amr_heavy_01": [
|
||||
{"t": 0.0, "pos": [6.0, 36.0, 0.0], "yaw_deg": 0.0, "state": "IDLE", "battery_percent": 100.0, "is_loaded": False},
|
||||
{"t": 10.0, "pos": [15.0, 20.0, 0.0], "yaw_deg": 180.0, "state": "CHARGING", "battery_percent": 82.0, "is_loaded": False},
|
||||
],
|
||||
},
|
||||
}
|
||||
traj_data = TrajectoryData.from_dict(mock_trajectory)
|
||||
|
||||
animator = Robot3DAnimator.from_config_and_trajectory(
|
||||
bundle=sample_bundle,
|
||||
trajectory_data=traj_data,
|
||||
manifest_path=manifest_file,
|
||||
sample_step_seconds=2.0,
|
||||
timecodes_per_second=24.0,
|
||||
)
|
||||
|
||||
# Test single robot animation (Phase 5)
|
||||
single_file = tmp_path / "single_robot_animated.usda"
|
||||
saved_single = animator.export_usda(single_file, target_robot_ids=["amr_light_01"])
|
||||
assert saved_single.exists()
|
||||
single_content = saved_single.read_text(encoding="utf-8")
|
||||
|
||||
assert 'def Xform "amr_light_01"' in single_content
|
||||
assert "amr_light.usda" in single_content
|
||||
assert "amr_heavy_01" not in single_content # Only target robot
|
||||
assert "double3 xformOp:translate.timeSamples = {" in single_content
|
||||
assert "double3 xformOp:rotateXYZ.timeSamples = {" in single_content
|
||||
assert 'def Xform "CargoAttachment"' in single_content
|
||||
assert "pallet_with_cartons.usda" in single_content
|
||||
|
||||
# Test full fleet animation (Phase 6)
|
||||
fleet_file = tmp_path / "fleet_animated.usda"
|
||||
saved_fleet = animator.export_usda(fleet_file)
|
||||
assert saved_fleet.exists()
|
||||
fleet_content = saved_fleet.read_text(encoding="utf-8")
|
||||
|
||||
assert 'def Xform "amr_light_01"' in fleet_content
|
||||
assert 'def Xform "amr_heavy_01"' in fleet_content
|
||||
assert "amr_light.usda" in fleet_content
|
||||
assert "amr_heavy.usda" in fleet_content
|
||||
Reference in New Issue
Block a user