ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::io::AzureKinectSensor Class Reference

#include <AzureKinectSensor.h>

Inheritance diagram for cloudViewer::io::AzureKinectSensor:
Collaboration diagram for cloudViewer::io::AzureKinectSensor:

Public Member Functions

 AzureKinectSensor (const AzureKinectSensorConfig &sensor_config)
 Default Constructor. More...
 
 ~AzureKinectSensor ()
 
bool Connect (size_t sensor_index) override
 
void Disconnect ()
 
std::shared_ptr< geometry::RGBDImageCaptureFrame (bool enable_align_depth_to_color) const override
 
- Public Member Functions inherited from cloudViewer::io::RGBDSensor
 RGBDSensor ()
 
virtual ~RGBDSensor ()
 

Static Public Member Functions

static bool PrintFirmware (_k4a_device_t *device)
 
static bool ListDevices ()
 List available Azure Kinect devices. More...
 
static std::shared_ptr< geometry::RGBDImageDecompressCapture (_k4a_capture_t *capture, _k4a_transformation_t *transformation)
 

Protected Member Functions

_k4a_capture_t * CaptureRawFrame () const
 

Protected Attributes

AzureKinectSensorConfig sensor_config_
 
_k4a_transformation_t * transform_depth_to_color_
 
_k4a_device_t * device_
 
int timeout_
 

Detailed Description

AzureKinect sensor.

Definition at line 34 of file AzureKinectSensor.h.

Constructor & Destructor Documentation

◆ AzureKinectSensor()

cloudViewer::io::AzureKinectSensor::AzureKinectSensor ( const AzureKinectSensorConfig sensor_config)

Default Constructor.

Definition at line 23 of file AzureKinectSensor.cpp.

◆ ~AzureKinectSensor()

cloudViewer::io::AzureKinectSensor::~AzureKinectSensor ( )

Definition at line 27 of file AzureKinectSensor.cpp.

References Disconnect().

Member Function Documentation

◆ CaptureFrame()

std::shared_ptr< geometry::RGBDImage > cloudViewer::io::AzureKinectSensor::CaptureFrame ( bool  enable_align_depth_to_color) const
overridevirtual

Capture one frame, return an RGBDImage. If enable_align_depth_to_color is true, the depth image will be warped to align with the color image; otherwise the raw depth image output will be saved. Setting enable_align_depth_to_color to false is useful when capturing at high resolution with high frame rates.

Implements cloudViewer::io::RGBDSensor.

Definition at line 132 of file AzureKinectSensor.cpp.

References CaptureRawFrame(), DecompressCapture(), cloudViewer::io::k4a_plugin::k4a_capture_release(), and transform_depth_to_color_.

Referenced by cloudViewer::io::pybind_sensor().

◆ CaptureRawFrame()

k4a_capture_t cloudViewer::io::AzureKinectSensor::CaptureRawFrame ( ) const
protected

◆ Connect()

◆ DecompressCapture()

◆ Disconnect()

void cloudViewer::io::AzureKinectSensor::Disconnect ( )

◆ ListDevices()

bool cloudViewer::io::AzureKinectSensor::ListDevices ( )
static

◆ PrintFirmware()

bool cloudViewer::io::AzureKinectSensor::PrintFirmware ( _k4a_device_t *  device)
static

Member Data Documentation

◆ device_

_k4a_device_t* cloudViewer::io::AzureKinectSensor::device_
protected

◆ sensor_config_

AzureKinectSensorConfig cloudViewer::io::AzureKinectSensor::sensor_config_
protected

◆ timeout_

int cloudViewer::io::AzureKinectSensor::timeout_
protected

Definition at line 57 of file AzureKinectSensor.h.

Referenced by CaptureRawFrame(), and Connect().

◆ transform_depth_to_color_

_k4a_transformation_t* cloudViewer::io::AzureKinectSensor::transform_depth_to_color_
protected

The documentation for this class was generated from the following files: