PreferenceTrajectoryAdapter¶
- class standard_e2e.caching.adapters.PreferenceTrajectoryAdapter[source]¶
Bases:
AbstractAdapterAdapter for preference trajectory data.
- property consumes_attrs: set[StandardFrameDataField]¶
StandardFrameDatafields this adapter reads.Used by source-dataset processors to skip building modalities that no adapter consumes (lazy-load). For example, an
HDMapBEVAdapterreturns{StandardFrameDataField.HD_MAP}; a processor whose adapter chain registers no HD-map adapter can then skip the (often expensive)_build_hd_mapstep entirely.Returning an empty set means “this adapter does not gate any modality build” — appropriate for adapters that read optional
aux_datakeys (e.g. preference trajectories) which the processor populates unconditionally and cheaply.
- property metadata: dict[str, Any]¶
Per-frame metadata this adapter contributes to
aux_data.Override in subclasses to surface adapter-side configuration that a downstream consumer needs to interpret the modality output (e.g. the ordered channel list of a BEV rasterizer). The default is an empty dict; the source dataset processor merges these into each frame’s
aux_dataso the .npz remains self-describing.
- transform(standard_frame_data)¶
Validate input frame and dispatch to subclass implementation.
- Return type:
- Parameters:
standard_frame_data (StandardFrameData)