pub struct RgbdNode { /* private fields */ }Implementations§
Source§impl RgbdNode
impl RgbdNode
pub fn build(&self) -> Result<()>
Sourcepub fn build_ex(
&self,
autocreate: bool,
mode: PresetMode,
size: (i32, i32),
fps: Option<f32>,
) -> Result<()>
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.
pub fn set_depth_unit(&self, unit: DepthUnit)
Trait Implementations§
Source§impl DeviceNode for RgbdNode
impl DeviceNode for RgbdNode
Auto Trait Implementations§
impl Freeze for RgbdNode
impl RefUnwindSafe for RgbdNode
impl Send for RgbdNode
impl Sync for RgbdNode
impl Unpin for RgbdNode
impl UnwindSafe for RgbdNode
Blanket Implementations§
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