1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Generic derived signals — named scalar/vector/boolean/categorical values.
//!
//! Signals are domain-agnostic. Stage authors define the names and semantics.
//! Multiple stages may emit different signals per frame.
use MonotonicTs;
/// A generic named signal produced by a perception stage.
///
/// Signals carry a name, a value, and the timestamp at which they were computed.
/// The name is a `&'static str` — signal names are fixed at compile time in
/// the stage implementation.
///
/// # Examples
///
/// ```
/// use nv_perception::{DerivedSignal, SignalValue};
/// use nv_core::MonotonicTs;
///
/// let signal = DerivedSignal {
/// name: "scene_complexity",
/// value: SignalValue::Scalar(0.73),
/// ts: MonotonicTs::from_nanos(1_000_000),
/// };
/// ```
/// The value of a derived signal.