[][src]Struct kinect::Device

pub struct Device {
    pub device_pointer: k4a_device_t,
}

A Kinect Device Handle

Fields

device_pointer: k4a_device_t

Implementations

impl Device[src]

pub fn get_installed_count() -> u32[src]

Get the number of installed devices

pub fn open(device_index: u32) -> Result<Self, DeviceOpenError>[src]

Open a device with the given index

pub fn get_serial_number(&self) -> Result<String, KinectError>[src]

Fetch the device serial number.

pub fn get_synchronization_jack_status(
    &self
) -> Result<SynchronizationJackStatus, KinectError>
[src]

Get the device synchronization jack statuses. Each device has an 'in' jack and an 'out' jack.

pub fn start_cameras(
    &self,
    device_config: &DeviceConfiguration
) -> Result<(), DeviceStartCamerasError>
[src]

Start the cameras.

pub fn start_cameras_default_config(
    &self
) -> Result<(), DeviceStartCamerasError>
[src]

Start the cameras.

pub fn stop_cameras(&self)[src]

Stops the color and depth camera capture.

The streaming of individual sensors stops as a result of this call. Once called, k4a_device_start_cameras() may be called again to resume sensor streaming. This function may be called while another thread is blocking in k4a_device_get_capture(). Calling this function while another thread is in that function will result in that function returning a failure.

pub fn get_capture(
    &self,
    timeout_ms: i32
) -> Result<Capture, DeviceGetCaptureError>
[src]

Get capture and return a new buffer.

pub fn get_capture_buffered(
    &self,
    capture_buffer: &mut k4a_capture_t,
    timeout_ms: i32
) -> Result<(), DeviceGetCaptureError>
[src]

Get capture, reusing an existing buffer.

pub fn get_calibration(
    &self,
    depth_mode: k4a_depth_mode_t,
    color_resolution: k4a_color_resolution_t
) -> Result<Calibration, DeviceGetCalibrationError>
[src]

Get the camera calibration for the entire Azure Kinect device.

The calibration represents the data needed to transform between the camera views and may be different for each operating depth_mode and color_resolution the device is configured to operate in. The calibration output is used as input to all calibration and transformation functions.

Trait Implementations

impl Debug for Device[src]

impl Drop for Device[src]

impl Send for Device[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.