unisim.backend.isaacsim.raw_usd_cache¶
Content-addressed cold-path cache for IsaacSim raw MJCF-to-USD artifacts.
Functions
|
Hash one cold-path input without loading the whole file into memory. |
|
Fingerprint the immutable converter output associated with a raw entry. |
Resolve the persistent cache root; an explicit disabled value opts out. |
|
Resolve the derived-role cache root; an explicit disabled value opts out. |
Classes
All inputs that distinguish one raw conversion entry. |
|
Publish and read complete raw converter output directories atomically. |
|
One immutable file in a published raw artifact. |
|
A validated, immutable complete cache entry. |
|
Outcome of one cache materialization request. |
|
Publish immutable role-derived USD using the complete-entry protocol. |
- class unisim.backend.isaacsim.raw_usd_cache.RawUSDArtifactRequest[source]¶
Bases:
objectAll inputs that distinguish one raw conversion entry.
- Parameters:
- class unisim.backend.isaacsim.raw_usd_cache.RawUSDCache[source]¶
Bases:
objectPublish and read complete raw converter output directories atomically.
- Parameters:
root (
Path)
- load(identity)[source]¶
Return one validated entry, or
Nonefor any miss/corruption.- Parameters:
identity (
str)- Return type:
- materialize(request, convert)[source]¶
Return a validated entry, converting and publishing only on a miss.
- Parameters:
request (
RawUSDArtifactRequest)
- Return type:
- copy_artifact(record, destination)[source]¶
Copy one validated immutable artifact for mutable downstream baking.
- Parameters:
record (
RawUSDCacheRecord)destination (
Path)
- Return type:
- class unisim.backend.isaacsim.raw_usd_cache.RawUSDCacheFile[source]¶
Bases:
objectOne immutable file in a published raw artifact.
- class unisim.backend.isaacsim.raw_usd_cache.RawUSDCacheRecord[source]¶
Bases:
objectA validated, immutable complete cache entry.
- Parameters:
-
files:
tuple[RawUSDCacheFile,...]¶
- __init__(identity, source_digest, parameters, runtime_versions, usd_relative_path, files, entry_path, artifact_path, usd_path)¶
- class unisim.backend.isaacsim.raw_usd_cache.RawUSDCacheResult[source]¶
Bases:
objectOutcome of one cache materialization request.
- Parameters:
record (
RawUSDCacheRecord)hit (
bool)materialize_ms (
float)
-
record:
RawUSDCacheRecord¶
- __init__(record, hit, materialize_ms)¶
- Parameters:
record (
RawUSDCacheRecord)hit (
bool)materialize_ms (
float)
- class unisim.backend.isaacsim.raw_usd_cache.RoleUSDCache[source]¶
Bases:
RawUSDCachePublish immutable role-derived USD using the complete-entry protocol.
A role request’s identity already includes its raw artifact identity and fingerprint plus collision/visual/mirror/bake parameters. A miss copies and bakes the raw artifact inside staging; a hit is inventory-validated and must never be mutated by native materialization or role inspection.
- Parameters:
root (
Path)
- unisim.backend.isaacsim.raw_usd_cache.file_sha256(path)[source]¶
Hash one cold-path input without loading the whole file into memory.
- unisim.backend.isaacsim.raw_usd_cache.raw_artifact_fingerprint(record)[source]¶
Fingerprint the immutable converter output associated with a raw entry.
- Parameters:
record (
RawUSDCacheRecord)- Return type: