pub struct StageCapabilities {
pub consumes_detections: bool,
pub consumes_tracks: bool,
pub consumes_temporal: bool,
pub produces_detections: bool,
pub produces_tracks: bool,
pub produces_signals: bool,
pub produces_scene_features: bool,
}Expand description
Declares what artifact types a stage produces and consumes.
Used by StagePipeline::validate() to
detect unsatisfied dependencies (e.g., a tracker that consumes detections
placed before the detector that produces them).
Stages report capabilities via Stage::capabilities(). The default
implementation returns None, meaning the stage opts out of validation.
§Validated fields
The validator checks:
consumes_detections/produces_detectionsconsumes_tracks/produces_tracks
The remaining fields (consumes_temporal, produces_signals,
produces_scene_features) are informational — available
for external tooling but not enforced by the built-in validator.
§Example
use nv_perception::StageCapabilities;
let caps = StageCapabilities::new()
.consumes_detections()
.produces_tracks();Fields§
§consumes_detections: boolStage reads detections from the artifact accumulator.
consumes_tracks: boolStage reads tracks from the artifact accumulator.
consumes_temporal: boolStage reads temporal state.
produces_detections: boolStage produces detections.
produces_tracks: boolStage produces tracks.
produces_signals: boolStage produces signals.
produces_scene_features: boolStage produces scene features.
Implementations§
Source§impl StageCapabilities
impl StageCapabilities
Sourcepub fn consumes_detections(self) -> Self
pub fn consumes_detections(self) -> Self
Mark this stage as consuming detections.
Sourcepub fn consumes_tracks(self) -> Self
pub fn consumes_tracks(self) -> Self
Mark this stage as consuming tracks.
Sourcepub fn consumes_temporal(self) -> Self
pub fn consumes_temporal(self) -> Self
Mark this stage as consuming temporal state.
Sourcepub fn produces_detections(self) -> Self
pub fn produces_detections(self) -> Self
Mark this stage as producing detections.
Sourcepub fn produces_tracks(self) -> Self
pub fn produces_tracks(self) -> Self
Mark this stage as producing tracks.
Sourcepub fn produces_signals(self) -> Self
pub fn produces_signals(self) -> Self
Mark this stage as producing signals.
Sourcepub fn produces_scene_features(self) -> Self
pub fn produces_scene_features(self) -> Self
Mark this stage as producing scene features.
Trait Implementations§
Source§impl Clone for StageCapabilities
impl Clone for StageCapabilities
Source§fn clone(&self) -> StageCapabilities
fn clone(&self) -> StageCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more