Fawkes API  Fawkes Development Version
firevision::FvFreenectDevice Class Reference

#include <>>

Inheritance diagram for firevision::FvFreenectDevice:

Public Member Functions

 FvFreenectDevice (freenect_context *ctx, int index)
 Constructor. More...
 
 ~FvFreenectDevice ()
 Destructor. More...
 
void RGBCallback (freenect_pixel *rgb, uint32_t timestamp)
 Callback function for the freenect driver. More...
 
void DepthCallback (void *depth, uint32_t timestamp)
 Callback function for the freenect driver. More...
 
unsigned char * rgb_buffer ()
 Access the RGB buffer. More...
 
uint16_t * depth_buffer ()
 Access the depth buffer. More...
 

Detailed Description

Implementation of the FreenectDevice interface of the driver.

Author
Daniel Beck

Definition at line 41 of file kinect.h.

Constructor & Destructor Documentation

◆ FvFreenectDevice()

firevision::FvFreenectDevice::FvFreenectDevice ( freenect_context *  ctx,
int  index 
)

Constructor.

Parameters
ctxthe freenet context
indexthe index of the new device

Definition at line 59 of file kinect.cpp.

◆ ~FvFreenectDevice()

firevision::FvFreenectDevice::~FvFreenectDevice ( )

Destructor.

Definition at line 66 of file kinect.cpp.

Member Function Documentation

◆ depth_buffer()

uint16_t * firevision::FvFreenectDevice::depth_buffer ( )

Access the depth buffer.

Returns
pointer to the depth buffer

Definition at line 111 of file kinect.cpp.

Referenced by firevision::KinectCamera::capture().

◆ DepthCallback()

void firevision::FvFreenectDevice::DepthCallback ( void *  depth,
uint32_t  timestamp 
)

Callback function for the freenect driver.

This function is called with a pointer to the depth image and the timestamp of the frame.

Parameters
depthpointer to the depth image
timestamptimestamp of the image

Definition at line 92 of file kinect.cpp.

◆ rgb_buffer()

unsigned char * firevision::FvFreenectDevice::rgb_buffer ( )

Access the RGB buffer.

Returns
pointer to the RGB buffer

Definition at line 102 of file kinect.cpp.

Referenced by firevision::KinectCamera::colorspace().

◆ RGBCallback()

void firevision::FvFreenectDevice::RGBCallback ( freenect_pixel *  rgb,
uint32_t  timestamp 
)

Callback function for the freenect driver.

This function is called with a pointer to the RGB image and the timestamp of the frame.

Parameters
rgbpointer to the RGB image
timestamptimestamp of the image

Definition at line 79 of file kinect.cpp.


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