Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
firevision::FvFreenectDevice Class Reference

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

#include <>>

List of all members.

Public Member Functions

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

Detailed Description

Implementation of the FreenectDevice interface of the driver.

Author:
Daniel Beck

Definition at line 38 of file kinect.h.


Constructor & Destructor Documentation

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.

firevision::FvFreenectDevice::~FvFreenectDevice ( )

Destructor.

Definition at line 65 of file kinect.cpp.


Member Function Documentation

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().

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.

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().

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: