RgbdNode

Struct RgbdNode 

Source
pub struct RgbdNode { /* private fields */ }

Implementations§

Source§

impl RgbdNode

Source

pub fn as_node(&self) -> &Node

View this node as a generic erased pipeline node.

Source§

impl RgbdNode

Source

pub fn inColor(&self) -> Result<Input>

Source

pub fn inDepth(&self) -> Result<Input>

Source

pub fn out(&self) -> Result<Output>

Source§

impl RgbdNode

Source

pub fn build(&self) -> Result<()>

Source

pub fn build_ex( &self, autocreate: bool, mode: PresetMode, size: (i32, i32), fps: Option<f32>, ) -> Result<()>

Build the RGBD node with explicit configuration.

This maps to the native overload: dai::node::RGBD::build(autocreate, mode, size, fps).

Some devices/firmwares produce depth frames at sizes that don’t match the requested RGB frames. Using this builder allows the host node to be configured with the expected size (and optionally FPS), preventing runtime “Color and depth frame sizes do not match” errors.

Source

pub fn set_depth_unit(&self, unit: DepthUnit)

Trait Implementations§

Source§

impl DeviceNode for RgbdNode

Source§

fn create_in_pipeline(pipeline: &Pipeline) -> Result<Self>

Create a new instance of this device node within the given pipeline Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CreateInPipeline for T
where T: DeviceNode,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.