[−][src]Struct kinect::Device
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]
&self
) -> Result<SynchronizationJackStatus, KinectError>
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]
&self,
device_config: &DeviceConfiguration
) -> Result<(), DeviceStartCamerasError>
Start the cameras.
pub fn start_cameras_default_config(
&self
) -> Result<(), DeviceStartCamerasError>
[src]
&self
) -> Result<(), DeviceStartCamerasError>
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]
&self,
timeout_ms: i32
) -> Result<Capture, DeviceGetCaptureError>
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]
&self,
capture_buffer: &mut k4a_capture_t,
timeout_ms: i32
) -> Result<(), DeviceGetCaptureError>
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]
&self,
depth_mode: k4a_depth_mode_t,
color_resolution: k4a_color_resolution_t
) -> Result<Calibration, DeviceGetCalibrationError>
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
Auto Trait Implementations
impl RefUnwindSafe for Device
[src]
impl !Sync for Device
[src]
impl Unpin for Device
[src]
impl UnwindSafe for Device
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,