Fawkes API  Fawkes Development Version
firevision::FvFreenectDevice Class Reference

Implementation of the FreenectDevice interface of the driver. More...

#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 38 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 57 of file kinect.cpp.

◆ ~FvFreenectDevice()

firevision::FvFreenectDevice::~FvFreenectDevice ( )

Destructor.

Definition at line 65 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 110 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 91 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 101 of file kinect.cpp.

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

◆ 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 78 of file kinect.cpp.


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