Class KinectGrabber

Inheritance Relationships

Base Type

  • public Freenect::FreenectDevice

Class Documentation

class KinectGrabber : public Freenect::FreenectDevice

Public Functions

KinectGrabber(freenect_context *_ctx, int _index)
virtual ~KinectGrabber()
void getDepthImage(std::vector<short> &img)

Returns the currently present point cloud data.

void getColorImage(std::vector<uint8_t> &img)

Protected Functions

virtual void VideoCallback(void *data, uint32_t timestamp)
virtual void DepthCallback(void *data, uint32_t timestamp)

Protected Attributes

PointBufferPtr m_buffer

PointBufferPtr with current data.

boost::mutex m_depthMutex

Mutex for save depth buffer access.

boost::mutex m_colorMutex

Mutex for save color buffer access.

std::vector<short> m_depthImage

The raw depth image.

std::vector<uint8_t> m_colorImage

The raw color image.

bool m_haveData