feat(phase2): implement AMR robot state machine, task lifecycles, inventory catalog, and Phase 2 OpenUSD scene
This commit is contained in:
@@ -251,3 +251,26 @@ def test_export_usda_scene(project_config_dir: Path, tmp_path: Path):
|
||||
assert 'def Xform "picking_station_a1"' in content
|
||||
assert 'def Xform "charge_bay_1"' in content
|
||||
assert 'def Xform "rack_a_01"' in content
|
||||
|
||||
|
||||
def test_export_usda_with_robots(project_config_dir: Path, tmp_path: Path):
|
||||
"""Verify OpenUSD scene generation includes AMR fleet entities when provided."""
|
||||
from warehouse_twin.interfaces.usd_generator import WarehouseUSDGenerator
|
||||
|
||||
loader = ConfigLoader(project_config_dir)
|
||||
bundle = loader.load_all()
|
||||
|
||||
generator = WarehouseUSDGenerator.from_config_bundle(bundle)
|
||||
usda_path = tmp_path / "test_warehouse_phase2.usda"
|
||||
saved = generator.export_usda(usda_path)
|
||||
|
||||
assert saved.exists()
|
||||
content = saved.read_text(encoding="utf-8")
|
||||
|
||||
assert 'def Scope "Robots"' in content
|
||||
assert 'def Xform "amr_light_01"' in content
|
||||
assert 'def Xform "amr_light_02"' in content
|
||||
assert 'def Xform "amr_heavy_01"' in content
|
||||
assert 'def Xform "amr_heavy_02"' in content
|
||||
assert 'def Cube "StatusDome"' in content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user