pub struct Frame {
pub samples_mm: Vec<u16>,
pub encoding: Encoding,
pub invalid_sample_policy: InvalidSamplePolicy,
pub width: Option<u32>,
pub height: Option<u32>,
pub intrinsics: Option<Intrinsics>,
pub distortion: Option<Distortion>,
pub exposure: Option<ExposureTiming>,
pub measured_at_ns: Option<u64>,
pub calibration: Option<CalibrationIdentity>,
}Expand description
One depth frame: per-pixel millimetre samples plus optional calibration and timing metadata.
Fields§
§samples_mm: Vec<u16>§encoding: Encoding§invalid_sample_policy: InvalidSamplePolicy§width: Option<u32>§height: Option<u32>§intrinsics: Option<Intrinsics>§distortion: Option<Distortion>§exposure: Option<ExposureTiming>§measured_at_ns: Option<u64>§calibration: Option<CalibrationIdentity>Trait Implementations§
Source§impl ContractBody for Frame
impl ContractBody for Frame
Source§const FAMILY: &'static str = "component::depth::Frame"
const FAMILY: &'static str = "component::depth::Frame"
Canonical contract family id: the
::-joined node path plus the body type
name, with dynamic variables excluded, e.g. "drive::State" or
"component::motor::Command".Source§const TOPIC: &'static str = "component/{instance}/depth/{capability}/frame"
const TOPIC: &'static str = "component/{instance}/depth/{capability}/frame"
Versionless topic key: the
/-joined node path plus the topic leaf, with
each dynamic node contributing a {var} placeholder, e.g. "drive/state"
or "component/{instance}/motor/{capability}/command". The runtime key is
produced by the api-local topic builder, which fills the placeholders.Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more